graphql-dotnet / graphql-dotnet/examples

Calling REST multiple services

Open
#96 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
C#
Stars
268
Forks
188
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/29444156/169433077-a48d1c1d-99ff-4ced-ad90-42b4e73750df.png)
![image](https://user-images.githubusercontent.com/29444156/169433121-9387d9a8-432d-47d2-80d1-9cdcca949e27.png)

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.