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

Project 1 Feedback #68

Open
sumedhsalvi opened this issue Feb 10, 2022 · 3 comments
Open

Project 1 Feedback #68

sumedhsalvi opened this issue Feb 10, 2022 · 3 comments

Comments

@sumedhsalvi
Copy link

Very well organized project with clear instructions on project setup. Great UI and all the microservices are working fine. Documentation is easy to understand. I was just curious about your gateway implementation. I am unable to understand the division of gateway into three services. I have referred to the code in the below link. As per my understanding, the gateway services should be generic and route to the appropriate backend microservice irrespective of payload and number of microservices attached. Let me know if I am missing something.
https://github.com/airavata-courses/scapsulators/blob/edc103afcd01e6823a82b8dfdc5eef375328c31b/gateway/gateway/routes/allRoute.js
I appreciate your views on this.

Otherwise Great Work by the Team.
Kudos!

@shubhpatr
Copy link
Contributor

Hey @sumedhsalvi,

Thanks for your feedback.

I did not understand your comment on gateway. The file you are referring to is the router files, in which the routes of the gateway api's are defined.

This does not mean that the gateway will not function if one of the micro-services is down or it depends on payload. The gateway will simply respond with error status and log if one of the micro-services is down and continue to serve other micro-services.

Let me know if I was able to clarify your doubt. Let me know if you meant something else.

@sumedhsalvi
Copy link
Author

Hey @shubhpatr

Thank you for your reply.

I mean to say If you add a new microservice then you need to manually modify the routing file and gateway API. The routing should be dynamics irrespective of the number of backend microservices.
Let me know whether my understanding is correct or not.

Thanks!

@shubhpatr
Copy link
Contributor

Hey @sumedhsalvi ,

Not sure I follow you clearly. Can you exactly give an example or possible alternative method?

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

2 participants