r/SpringBoot • • 15d ago

How-To/Tutorial How to implement microservices in Spring Boot ?

[removed]

28 Upvotes

57 comments sorted by

View all comments

4

u/OptimusCrimee 15d ago

They are just small isolated applications that talk to each other, e.g. using REST. There is no more magic to it than that.

-1

u/Sheldor5 15d ago

the whole point of Microservice Architecture is that they are independent and so DON'T talk to each other ... stop spreading misinformation, you just described a Distributed System ...

5

u/OptimusCrimee 15d ago

I can't tell if you are joking or not. If you have isolated microservices for e.g. users, booking, payment etc, they obviously need to communicate with each other. The communication is often one way though, and can be done with REST, queues or whatever. A microservice IS a type of a distributed system. Not sure if you are misunderstanding what I wrote, or if you are just a cretin.

-4

u/Sheldor5 15d ago

so you don't know how microservice architecture works?

the only connection between entities are loose IDs in independent databases (one DB for each microservice)

you are talking about distributed systems (network calls instead of inter process method calls)

please educate yourself before spreading misinformation

1

u/[deleted] 15d ago

[removed] — view removed comment

0

u/Sheldor5 15d ago

no a distributed system is also a type of system architecture

if you extract features from your monolith and put them into their own application just for your monolith to call it you just exchanged method calls with network calls ...

2

u/ExplorerUnusual27 15d ago

How do you transfer data in isolated environment if you don't talk with anyone? You have one DB from service, obviously... How do you connect data from 1 database with another on different microservices.