我目前正在为电子商务门户开发订单管理系统。
后端是java中的rest are服务,而前端是角js。
java中的rest服务在下订单时执行许多任务( /updated )。
在db中按顺序存储/更新顺序和项
通知第三方物流规则本订单
向客户发送电子邮件通知
向客户发送短信通知等
我们已经使用阻塞队列为另一个特性实现了一个异步队列。
1. use the same queue(current size is 200 and is in memory) and post to it
2. create a new queue inside the rest webserv