-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
We need to create a new server in the mush supervision tree that manages event data.
Blocks #39
Tasks:
- Examine simple pubsub options for Erlang apps
-
not fully applicablegen_event -
gen_server - @rvirding's chat_demo <-- good stuff! This is basically "use
gen_server" with lots of the thinking already done 😄 -
https://github.com/uwiger/gproctoo much -
https://github.com/cabol/erlbustoo much and maybe not stable enough ... -
https://github.com/cabol/westtoo much
-
- Implement a server based upon @rvirding's chat_demo (linked above)
- just support running within a single node / release
- provide an API for:
- processes to subscribe to events
- processes to receive events
- processes to unsubscribe from events
- integrate within existing supervision tree for
hxgm30.mushorhxgm30.store
- Listen for DB changes
- Parse the results
- Perform actions based upon these (update game state? send messages to users? iow, utilize pubsub)
Reactions are currently unavailable