Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looking for an example to use hateoas with microservices #19

Open
cyril-gambis opened this issue Mar 25, 2019 · 0 comments
Open

Looking for an example to use hateoas with microservices #19

cyril-gambis opened this issue Mar 25, 2019 · 0 comments

Comments

@cyril-gambis
Copy link

Hi,

I discovered these examples in a Feign ticket: this one. They are great!

Is there also an example that describe how, from a "Best Practice" view, to make several HATEOAS services communicate with each other ?
I currently use Feign to do that, but as @gregturn answered, this is probably not the best way, since Feign uses hard coded URLs and breaks some of the HATEOAS purposes.

So, for instance, if a user wants to book a meeting with a teacher, and if the service that manage the booking must communicate with a schedule-service (which knows about the teacher availabilites) and a teacher-service (which knows about teacher properties), how can it request these other services?
Of course, I understand that we can use RestTemplate to issue these requests; I am just wondering if there is an existing example that could guide us as the best way to do this, as good as the api-evolution example and the hypermedia example.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant