danmt / microservices-basics

This project intention is to show microservices basic concepts in NestJs
173 stars 29 forks source link

gateway decorator explaination #34

Open nhhockeyplayer opened 2 years ago

nhhockeyplayer commented 2 years ago

Thanks Dan for creating this.

A polymorphic generic context object would be in order to delegate downstream.

Can you elaborate on what the GateWay decorator is for nest and why you did not use that on this demo?

Best K

nhhockeyplayer commented 2 years ago

guess I got confused with @WebSocketGateway()

I would guess thats for websockets for video going over any socket or blobs or anything really if you could elaborate on the possibilities that would be helpful I dont know what the possibilities are with a websocket gateway or why they even chose to call it a gateway maybe they should have just called it a socket

so your demo breaks the services apart and have nothing to do with any gateway decorator I guess

Im going to create a micro-gate like your demo and sub things off downstream

would @WebSocketGateway() be of any integration within your demo somehow? or could your demo been done using @WebSocketGateway()? any light is appreciated

thanks

nhhockeyplayer commented 2 years ago

these guys are blocking me I cannot even build with nest anymore

https://github.com/nestjs/nest/issues/8775