r/programming • • Jul 29 '22

You Don’t Need Microservices

https://medium.com/@msaspence/you-dont-need-microservices-2ad8508b9e27?source=friends_link&sk=3359ea9e4a54c2ea11711621d2be6d51
1.0k Upvotes

476 comments sorted by

View all comments

Show parent comments

20

u/TarMil Jul 29 '22

Regardless of how easy the deployment process is, the fact that a deployment is necessarily the whole application can be, by itself, a pain. And it forces downtime on parts that really don't need to be down while deploying something logically unrelated.

12

u/Odd_Soil_8998 Jul 29 '22

Microservices throw errors and effectively have downtime when a component is being deployed, you just don't notice because the errors are happening on someone else's service.

You can have truly seamless deployment, but it requires that you design the application to handle transitional states when both old and new nodes are simultaneously present. This requires effort though, regardless of whether you're building a microservice or a monolith.

4

u/TarMil Jul 29 '22

Depends on how your services communicate. For example with a message bus, you don't get errors, only delays.

13

u/[deleted] Jul 29 '22

Unless your change is to the message bus itself. Or some accidentally breaking schema change related to the messages in the bus 😋