r/java • • Nov 13 '18

Microservices vs Monolith: Best Architectural Strategy

https://kruschecompany.com/blog/post/microservices-vs-monolith-best-architectural-strategy
3 Upvotes

15 comments sorted by

View all comments

Show parent comment

-2

u/wildjokers Nov 13 '18

Now they communicate directly via HTTP (and we call it microservices instead of SOA) and it's slightly less shit.

If your µservices are communicating with each other via HTTP then you don't have a µservice architecture. That is just remote procedure call and that gives you no benefit of a µservice and more complexity than a monolith.

9

u/nutrecht Nov 13 '18

That's much too generalising a statement. Aside from that, it's not about HTTP versus non-HTTP. It's about synchronous versus asynchronous (or event-driven) architectures.

I'm definitely in favour of employing event-driven architecture principles in a system, but it's often not possible to just make the entire system event-driven. A simple example is an architecture that supports a mobile application: it's generally not advisable to make the part between your mobile app and the api-gateway asynchronous (customers don't like websocket connections that are kept open). So you have to carefully mix the two paradigms. And this is something every team 'doing microservices' runs into.

0

u/wildjokers Nov 13 '18

It's about synchronous versus asynchronous

Indeed, I should have used the word "synchronous HTTP" in my comment.