https://dzone.com/articles/development-environments-for-microservices

How do you set up a productive development environment for microservices? While the tooling and infrastructure for building traditional web applications have been highly optimized over time, the same cannot be said for microservices.

In particular, setting up a productive development environment for microservices can be considerably more complex than a traditional web application:

These external dependencies add complexity to creating and maintaining a development environment. How do you set up your service so you can code and test it productively when your service depends on other resources and services?

This article discusses the various approaches to setting up a development environment, and the tradeoffs.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e8e6007a-2f77-4873-8bf8-1da0ae7367e0/5044826-dev-env-msv.png

Option #1: Spin Up the Full System Locally

Using tools like Minikube or Docker Compose, you can spin up multiple services locally. For resources like databases you use Docker images that match them:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5614d5db-8043-4c51-925d-5b93844e58fa/5044831-dev-env-1.png

If you’re unable to use containers, Daniel Bryant outlines a number of other approaches for developing microservices locally with various tradeoffs.

Pros:

Cons: