what is best way to orchestrate micro services in spring boot.
How to achieve orchestration with spring boot micro service? [closed]
Asked Answered
what exactly you mean by orchestration. elaborate –
Luciano
I mean http orchestration, i have multiple micro services. At client(angular) i need data from one or more services in a single HTTP call. There may be cases where one service request may depend on another like call to service. –
Calica
You have many options but I will list 3 of them that I would choose from:
- Directly call the other microservice using REST calls (hard code the URL in a property file or create a service for inter service communication).
- Setup microservice architecture with spring-cloud and netflix OSS
- Setup microservice architecture with spring-cloud and kubernetes
I already set up my architecture with spring-cloud and Netflix OSS , With this comb how can i achieve my requirements. I tried conductor but have setup issues. –
Calica
As an easy approach, use eureka to get a microservice by name (application-name) and query it in another microservice logic layer. –
Meathead
i am doing it right now it work fine, i use feign for service to service calls.But i have situation where i have to use it frequently which increase the code complexity. my doubt is whether orchestration is required for this process. –
Calica
It is very opinion-based and use-case related, there is no good or bad answer for that. –
Meathead
Thank you so much for your valuable feedback. –
Calica
© 2022 - 2024 — McMap. All rights reserved.