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

Calling REST multiple services #96

Open
patolax opened this issue May 20, 2022 · 1 comment
Open

Calling REST multiple services #96

patolax opened this issue May 20, 2022 · 1 comment
Labels
question Further information is requested

Comments

@patolax
Copy link

patolax commented May 20, 2022

I have a microservice architecture with several REST services and dedicated databases for each service. I want to create a report that consist of data from multiple services. Can this lib be used for this case.
Scenario
Car service list all cars and order history list all orders for each car. Report shown below should list all recent 10 order against all the cars in the cars db.

image
image

Question:

  1. In the scheme how do I resolve orders? is it best to call the orders rest endpoint directly or use the database repository as the source.
  2. can this approach handle 10,000 cars and history?
  3. Is there an example of similar implementation I can use?
@sungam3r
Copy link
Member

The short answer ia YES.

  1. You can call any code in your resolvers, including, of course, the code that makes the calls to some databases.
  2. Why not? It depends of your needs and database performance.
  3. In this repository - NO, but you can ask on StackOverflow or search in Google since your questions are very general.

@sungam3r sungam3r added the question Further information is requested label May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants