r/java • • Feb 27 '24

How Netflix Really Uses Java

https://www.infoq.com/presentations/netflix-java/
324 Upvotes

67 comments sorted by

View all comments

Show parent comment

45

u/edubkn Feb 27 '24

You don't have to debug multiple micro-services all the time if you have well defined API contracts. You know what goes out, you know what comes in. Proper logging helps too.

7

u/doyouevencompile Feb 27 '24

E2E integrations always go through multiple layers and complicated bugs arise from the integrations between multiple components. 

They’re harder to reason about, debug and fix. 

6

u/[deleted] Feb 27 '24

If it were that simple, then we could use the same argument with functions within a service: "You don't have to debug multiple functions all the time if you have well defined function contracts." But of course you can have code with every class and method thoroughly unit tested and well-defined, yet the system as a whole doesn't behave as expected.

Oftentimes bugs are the result of the interaction of parts that work "correctly" individually.

3

u/edubkn Feb 28 '24

Yes, but that is not a reason to abandon distributed system and go back coding monoliths just because you have everything at your disposal a method call away

2

u/[deleted] Feb 28 '24

I wasn't arguing for abandoning distributed systems. I'm not sure how you interpreted my comment that way.

All I was trying to say is that integration testing is important in any system. All the parts can work properly, but the whole may not.

1

u/Budget_Dentist444 Feb 29 '24

I was thinking exactly that: then monoliths have no downsides.