Skip to main content
NestJS + Graphql Apollo Federation + Websocket + Microservices + React + Proxies Forward
The Problems
Graphql Apollo Federation old version doesn't support websocket
Different manipulation of execution context types: http (like express), graphql (graphql apollo), rpc (websocket)
The Solution
Setup another instance of Graphql Module for websocket
The setup
Graphql Apollo Federation Gateway
Authentication Graphql Endpoint
Chatter Graphql Endpoint
SetupProxies for React Front End App
Guard types: JWT or GQL
Thinking
Use cookies to store JWT Token
Use only http authorization header only (HTTP.headers.authorization: Bearer akasd123a.asd13adkhjhgnsdfi4f.jweasdytn
How to debug microservices effectively?