---
title: "Complexity in Microservices"
date: 2016-03-02
description: "As you add microservices to your stack, the number of connections follows Metcalfe’s law. In the simplest case, there’s just a single connection between two services. As you reach five services, …"
---


As you add microservices to your stack, the number of connections follows [Metcalfe’s law](https://en.wikipedia.org/wiki/Metcalfe%27s_law). In the simplest case, there’s just a single connection between two services. As you reach five services, connections can happen in 10 different ways. A stack with twenty services has 190 possible connections. The complexity of managing, supporting, and understanding those connections is something you should consider as your stack grows.

{{< figure src="/media/2016/03/02/complexity_in_microservices.png" title="Complexity in Microservices" caption="The number of connections between microservices follows Metcalfe’s law: \\(n \cdot \frac{(n-1)}{2}\\)." >}}

Have you ever faced complexity in microservices yourself? Learn more about it with this presentation about [Asynchronous Microservices](http://www.slideshare.net/bpedro/asynchronous-microservices-in-nodejs).
