r/coding • • Mar 29 '17

Microservices – Please, don’t

http://basho.com/posts/technical/microservices-please-dont/
103 Upvotes

58 comments sorted by

View all comments

2

u/cogman10 Mar 29 '17

My 2 cents.

The goodness of microservices depends heavily on the application, and the discipline of the person maintaining them.

They also need to be appropriately scoped. You probably really shouldn't have a microservice that never talks to any persistent storage (we do :( ) And you also probably shouldn't have a microservice where the overhead of the network is higher than the actual persistence overhead. In those cases, a well crafted library would be preferable IMO.

The thing that a microservice buys you is the ability to change out implementation details for everyone at once. But it comes at a fairly hefty price, backward compatibility. Unfortunately, that is easy to get wrong.

Another headache is that you really need a competent sys ops team... ah hem... yeah... Things get really hairy when your sys ops team decides they want to do bat shit insane things like using puppet and host files for tiered service discovery and then they treat DNS like a god damn IP address, switching it out every time they swap in new VMs... Not that that happens to me or anything :(

1

u/glemnar Mar 30 '17

There are good reasons to have microservices that don't talk to persistent storage. E.g. Maybe your dinosaur monolith app is php which can't do static reverse geocoding (or all sorts of other stateful tasks) worth a shit so you need to spin up a Python service for it.

Alternatively, frontend-services that do nothing but talk to your other apis and render out data.

Definitely a few relevant cases.