Messages come in, messages go out
The dispatch program is designed to front all externally driven changes to the Sparks platform.
What is an externally driven change? A user who wants to do something. They (or more precisely our website) issues a command that arrives at the dispatcher. The dispatcher then:
At the return stage the user (well software) only knows that we accepted the message. Any actual changes happen further down.
The following variables are required:
FIREBASE_DATABASE_URL: the database urlKINESIS_STREAM: name of kinesis stream
To run it you need a firebase and a firebase credentials.json file:
npm installnpm start