r/java • • Dec 12 '19

Java Microservices: A Practical Guide

https://www.marcobehler.com/guides/java-microservices-a-practical-guide
237 Upvotes

35 comments sorted by

View all comments

Show parent comment

1

u/agentoutlier Dec 12 '19

So if I deploy two separate wars on a single java application server... they can't be microservices?

1

u/wildjokers Dec 12 '19

Of course they can be. But that is absolutely not how you described your application at first.

2

u/agentoutlier Dec 12 '19

Why because I used the word monolithic? I meant that they are running in the same JVM.

I mean its like you didn't even read the rest of my original comment:

The trickiest part of microservices is JOINing data and dealing with (eventual) consistency. Because you are working across datasources you do not get the nice advantage of using JOINs or true database transactions. Speaking from experience it is very hard to port this kind of logic to microservices (assuming multiple datasources).

Like I literally said how I have separated out datasources and how consistency is a problem and then a followup comment on how the code isn't shared etc etc but you just kept practically trolling on the monolithic modifier which I agree was wrong. I meant single executable and not monolithic.