vietnam-devs / coolstore-microservices

A full-stack .NET microservices build on Dapr and Tye
https://vietnam-devs.github.io/coolstore-microservices
MIT License
2.48k stars 581 forks source link

GraphQL acts on the API Gateway #41

Closed thangchung closed 5 years ago

thangchung commented 5 years ago

Currently, we host the GRPC inside out. Everything is seem fine, but this approach looks like has a lot of drawback such as 2 protocols (REST and gRPC) exposed, some of authentication and authorization functionalities are still processing... If we can have a way to work with GraphQL.NET on the server, and apollo-client for the front-end then it can be standardized with the normal use-case in many projects in the world. Just like below but for .NET ecosystem

References:

thangchung commented 5 years ago

https://github.com/pekkah/tanka-graphql https://github.com/pekkah/tanka-graphql-samples https://github.com/trojanowski/react-apollo-hooks

Jwt with playground: https://developer.okta.com/blog/2018/09/27/build-a-simple-api-service-with-express-and-graphql

Client tools:

thangchung commented 5 years ago

https://jeffhandley.com/2018-09-13/graphql-is-not-odata

thangchung commented 5 years ago

Apollo-client vs Redux

ref https://blog.apollographql.com/the-future-of-state-management-dd410864cae2

https://github.com/apollographql/apollo-link-state/tree/master/examples/todo-remote-schema https://www.robinwieruch.de/react-apollo-link-state-tutorial https://hackernoon.com/setting-up-apollo-link-state-for-multiple-stores-4cf54fdb1e00

thangchung commented 5 years ago