A node microservice made to forward events from a websocket to Azure Event Hub.
Used with demos of UrbanOS to show how data from our system can be ingested in realtime, and sent to any variety of places, like Azure Event Hub.
npm i
to install depsnpm run test
to run jest tests with coverage- The
EVENT_HUB_URL
env var must be set. This is where the service will attempt to send events to. No default.- For deployments this is set as a k8s secret
SOURCE_STREAMS_URL
env var must be set: This is where the service will connect to. Default for local development is listed in configuration.ts- For deployments this is set in the values.yml
deploy.sh
builds an image, pushes it, and deploys it to the cluster.
Made to be run manually from your local machine.
- Made code changes
- Up version in chart and values yaml
- New image and chart will be pushed up afterwards
A summary of messages received / successfully forwarded will be logged every 20
seconds. This logging interval is configurable in the configuration.ts
file.