Application bottlenecks
Any part of an application can be a bottleneck. At first, you may have issues with the infrastructure used by microservices, such as databases or message brokers. Scaling these parts is a complex concept, but here we will only touch upon the bottlenecks of microservices.
When you create a microservice, you may encounter problems with the quantity of requests it can handle. It depends on multiple factors. You can use a concept such as the actors model to spread a load across threads and event loops.
If you have issues with CPU performance, you can create a separate worker that handles CPU-intensive tasks and schedules tasks with message brokers to achieve loose coupling, because you can add more workers at any time ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access