Answer the question
In order to leave comments, you need to log in
How to parallelize a process?
I came up with a problem for myself: there is a file with 100+K links, which are periodically updated, you need to send for each request, get a response and process it somehow: parse it. For the fastest solution to such a problem, I googled the thread pool, maybe there is a more beautiful way to solve such a problem?
Answer the question
In order to leave comments, you need to log in
there is a file with 100+K links, which are periodically updated
Use asynchronous requests, such as Go, where it is out of the box, or Python with asyncio, or any language that you know
There is Spring Batch for these purposes (for bulk processing) and some kind of queue broker, you can RabbitMq. Here is an example of spring batch integration
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question