Search code examples
hibernatecloudmicroservices

Acceptable microservice-microservice communication time/latency?


How long is the maximum acceptable time for the communication between two microservices? my microservices A and B perform

GET from client -> A -> B -> A -> Response to client

and it takes about 820ms. Is it too high? How can I reduce the processing time inside a microservice? I use spring and hibernate inside microservices


Solution

  • There is no maximum acceptance time, it really depends on your case what exactly this request does.

    But, from my experience, If your services do some CRUD operations with entities and some regular business logic, then 820ms is too much. You should, probably, find the bottleneck, usually its IO operation, like Database queries.

    I would say If some request communication takes more than 200-300 ms than this a good point to look inside and investigate where the is the bottleneck.