Spring RESTful web services - High volume data processing

瘦欲@ 提交于 2019-12-03 08:57:30

You are on the right track with your three suggested options. The answer to your question is unfortunately, it depends.

Any of the above approaches could work for you. I personally prefer Spring Batch as I find the programming model simple and intuitive.

Spring Batch Processing Guide


Another approach would be to use Messaging to parallelize the processing of rows:

  1. Controller receives CSV file containing large amount of data
  2. Split the data into smaller pieces and send to a temporary Message Queue
  3. Multiple Worker Nodes receive Messages and process them
  4. Monitor the size of the temporary Queue and update the user accordingly (% completed)

In short, your knowledge of your own domain will ultimately guide you towards the best solution for your business.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!