pnxtech / hydra-express

A module which wraps Hydra and ExpressJS into a library for building distributed applications - such as microservices
MIT License
184 stars 37 forks source link

Usage with Node Cluster #115

Closed gustavomassa closed 3 years ago

gustavomassa commented 6 years ago

Hi,

Thanks for sharing this awesome library!

I'm starting migrating our node cluster application to microservices. Our app uses express with node cluster, so we have 5+ workers running with express framework.

https://nodejs.org/api/cluster.html

  1. How should I use hydra-express with node cluster module?
  2. I want to use websocket as well, I did not find any examples of hydra with websocket, can hydra handle/route websocket request and server push notifications?

Thank you

cjus commented 6 years ago

@gustavomassa sorry for this super late reply - not sure how I missed this. Did you ever work out a solution? For examples on hydra / websockets see our hydra router: https://github.com/flywheelsports/hydra-router