I’m trying to establish a producer consumer design where there are several producers, each a different timer, generating data, and sending it to a consumer which publishes it on a single bus.
I don’t see any kind of queue data structure available in Mongoose, and I’m wondering if the event system can be used in this way. Perhaps each timer can create an event and a single event handler can handle the events by publishing their data. Is this an appropriate use for events?
Is there a batter system available?