'Run an async process using Multi-threading v/s RabbitMQ in java
I want to run an asynchronous process i.e. to save a record in database.
We have two approaches:
- Either using Multi-Threading i.e. to run the process on new thread [ExecutorService].
- Or using RabbitMQ.
So my question here is which approach would be better and why in terms of performance and efficiency?
Just for information: Our application is running on multiple servers.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
