By WalkingTree   August 28, 2020

Microservices Performance (1)

Microservices usually make everything faster, but the reality is that sometimes there are performance problems.The first step is to find performance issues. Application performance monitoring tools identify issues during development and production. Testing tools look at how microservices function and profiling tools assess performance issues, such as memory leaks and threading issues. 

Let’s take a look at some of the common performance problems and how you can solve them:

N+1 Problems – N+1 Problem or N+1 Query occurs when a service requests a list from a database that returns a reference to a number of rows or objects (N), then individually requests each of those N items. This problem can be easily solved by changing a fetch type.

Performance Antipatterns – Performance antipatterns usually center around inefficient queries that compound at load or scale. These performance antipatterns can result in poor performance or even failure. 

Synchronous Requests – Calling a service synchronously in a wrong situation can cause significant performance errors. To solve this issue, use asynchronous requests whereby a service can make a request to another service and return immediately while that request is fulfilled. 

Application Ceilings – Even properly configured and optimized services can have performance ceilings. This problem can be solved by looking at autoscaling, and dynamically adjust to incoming request load by adding and removing containers as necessary. 

Read on to know more about Microservices performance problems and how to solve them.


Privacy Preferences
When you visit our website, it may store information through your browser from specific services, usually in form of cookies. Here you can change your privacy preferences. Please note that blocking some types of cookies may impact your experience on our website and the services we offer.