Hi experts,
May i know how do the microservices of an application communicate with each other? I saw some examples on internet, it uses some rest clients like RestTemplate/WebCLient/Feign.
It seems these rest-clients are just for practice purpose while real microservices based applications use something else like RabbitMQ etc. May I know your opinion on this?
I would also like to know:
When every microservice has its separate db then how does the linking between the tables of separate DBs like one-to-many, many-to-many work?
Every microservice owns its data and its domain logic. If you are using a synchronous request->response comunication, HTTP or ReST are the most common protocols, if you are communicating within your microservices cluster, other formats might be more useful. If you have a @OneToMany relationship between microservices, your layout probably has room for improvement. Try to avoid "distributed monoliths".
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss