---
title: "Latency in Microservices"
date: 2016-02-24
description: "Generally speaking, you can define latency as the time delay between the cause and the effect of some change in the system being observed. In a point to point communication, you calculate latency as …"
---


Generally speaking, you can define [latency](https://en.wikipedia.org/wiki/Latency_%28engineering%29) as the _time delay between the cause and the effect of some change in the system being observed_. In a point to point communication, you calculate latency as the time it takes to get a response from the system. When you involve many services in a single _workflow_ then the latency is the sum of all the response times.

{{< figure src="/media/2016/02/24/latency_in_microservices.png" title="Latency in Microservices" caption="Latency is the sum of all response times: \\(L=\sum_0^n t_n\\)." >}}

How can you avoid latency in microservices? Learn more about it with this presentation about [Asynchronous Microservices](http://www.slideshare.net/bpedro/asynchronous-microservices-in-nodejs).
