48

从构建分布式秒杀系统聊聊WebSocket推送通知-小柒2012

 6 years ago
source link: http://blog.51cto.com/itstyle/2146899
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
前言秒杀架构到后期,我们采用了消息队列的形式实现抢购逻辑,那么之前抛出过这样一个问题:消息队列异步处理完每个用户请求后,如何通知给相应用户秒杀成功?场景映射首先,我们举一个生活中比较常见的例子:我们去银行办理业务,一般会选择相关业务打印一个排号纸,然后就可以坐在小板凳上玩着手机,等待被小喇叭报号。当小喇叭喊到你所持有的号码,就可以拿着排号纸去柜台办理自己的业务。这里,假设当我们取排号纸的时候,银行

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK