The nature of distributed architecture requires the user to think through how apps and services may run across multiple cloud services and data centers. Apps are one thing, but running a database in these types of environments carries a different level of complexity.
In this example, we are going to create a more complicated service involving MongoDB and sharding. We will then show you how you can use effectors to scale this service out or in.
MongoDB offers some pretty advanced options for scaling, both horizontally and vertically. So, weâre going to look at how to create a sharded deployment (like that described in the figure above) with the Brooklyn plugin.