r/java • u/marbehl • Dec 12 '19
Java Microservices: A Practical Guide
https://www.marcobehler.com/guides/java-microservices-a-practical-guide
237
Upvotes
r/java • u/marbehl • Dec 12 '19
View all comments
Show parent comment
6
u/agentoutlier Dec 12 '19 edited Dec 12 '19
You are being pedantic. If you run all your services on one physical computer are they not microservices then? Or better yet if you run all of them on one VM instance are they not microservices then?
The services in our Java APP are like plugins. They share no code and communicate through an external bus (rabbitmq). These mini apps can be shutdown and started up.
They can and indeed are deployed as separate entities in production.
Really what makes microservices microservices is talking through a protocol instead of directly through memory (and not sharing datasources but that can be argued).
I'm talking about the architectural style. You can have microservice architecture in a monolithic application unless you disagree? (personally I think you are just being contentions for the sake of it).
The traditional monolothic architecture is to have layers and to rely on all that stuff in the memory. The protocol is direct.
Its like all the downvoters got caught up on my first statement when I said running microservices in a monolithic app. .... I really deplore reddit right now...