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

Do these services talk to each other ? #10

Open
peterfebin opened this issue Jul 28, 2017 · 2 comments
Open

Do these services talk to each other ? #10

peterfebin opened this issue Jul 28, 2017 · 2 comments

Comments

@peterfebin
Copy link

No description provided.

@umermansoor
Copy link
Owner

The user service talks to the booking and movie services.
https://github.com/umermansoor/microservices/blob/master/services/user.py

@amitkc00
Copy link

Line 52 of user service
users_bookings = requests.get("http://127.0.0.1:5003/bookings/{}".format(username))

user service here makes a GET request (same as external user making one) to booking service. This is a crucial learning as part of Microservices design. Services talking to each other is just a fancy way of saying one service making a REST request (in this case) or RPC request to another. It is this channel of communication which makes this design modular and independent. It was an ah-ha moment for me too when I realized this looking at this line. So I understand where you might be coming from. :)

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

3 participants