nestjs-with-apollo-federation-gateway icon indicating copy to clipboard operation
nestjs-with-apollo-federation-gateway copied to clipboard

Validate user on a different microservices

Open kariuki-george opened this issue 2 years ago • 0 comments

Not an issue but rather an idea. You can send a request to auth service... Internal Graphql/http request are simple to implement but very expensive... Request-response TCP/HTTP/* @nestjs/microservice request from home service to auth service might be a better solution... Or rather, abstract the authentication into a library whereby auth takes place from the library using TCP/HTTP/* request-response microservices request and the logic can be reused in other microservices requiring auth

kariuki-george avatar Jul 10 '22 14:07 kariuki-george