有没有一种方法可以在以下一系列活动之后更新客户端
1 upload file
2. read file
3. bulk insert
4. update client that job is completed.
我能够表演
1.upload file through through busboy.
2.read file node sync/async node.js file read.
3.bulk insert sequelize bulk insert.(data read through bluebird mapSeries).
4.(missing piece) since i insert around 200k records in single shot. it might take some time
因此我想放入一个作业队列,完成后通过socket.io或rabbitMQ通知客户端!任何建议,关于如何实现第四个指针的指针!