December 2019
Intermediate to advanced
346 pages
9h 8m
English
Microservice runs on multiple threads and there is a single long-lived process. With the same database, we can take advantage of connection pooling and also limit the number of connections as and when needed. The problem with the single process is that all the threads will use a shared resource and can have resource contention issues.
The pro of the multiple threads-single process approach is that it improves the performance of stateless services, whereas its con is that there can be synchronization issues when sharing a resource.
Read now
Unlock full access