3 ms·
I love the idea of an event bus, but all I use is C and embedded. The last time I considered it I backed away from it. Wish there was effort to establish a pat
by SV_BubbleTime 5y ago
I love the idea of an event bus, but all I use is C and embedded. The last time I considered it I backed away from it.
Wish there was effort to establish a pattern for this in C.
- gurjeet 5y agoI believe ZeroMQ has libraries/implementation suitable for embedded systems.
- SV_BubbleTime 5y agoChecked it out, no go. Replies extremely heavy on POSIX api and threads. All the cool functionality is with sockets. There is an inproc:// but it doesn’t do much. Lighter to just work it out using RTOS objects like queues and streams.
- kevin_thibedeau 5y agoYou can do this in C without all the enterprisey ceremony. All you need is a way to send messages to a queue and have them dispatched to registered listeners. The "message" can be nothing more than an encoded integer or something more complex. This lets you have a decoupled interface between interacting subsystems.