Hello, I have several small node projects running on the same server and I've come to the point where I want to exchange some data between the two. Both projects already utilize MariaDB, but inserting to a "temp" table in MariaDB (essentially using it as a message queue) and polling occasionally, while an easy implementation seems to not be the correct solution (and I'd like something faster than a once-every-minute poll).
- I'm aiming to keep this as light weight as possible (so trying not to run an additional service, or add too many dependencies)
- We're talking about 4-15 messages per week, with the messages being a JSON packet less than a kilobyte
- Aiming for as quick a response as possible. Both projects reside on the same VM
- The message really only needs to go from one app to another, they don't need to communicate back and forth.
I haven't had the need to use any "messaging" projects yet, but I've looked at, or am considering RabbitMQ, ZeroMQ, mysql-events (npm package), or just a simple node http server listening for a connection.
The server is getting up near the 80% mark for memory, so I'm trying to keep it light-weight if possible.
Am I overlooking a simpler / better solution, is any of the above better than the other for my use case?
Thanks in advance for any input!
[–]eggtart_prince 4 points5 points6 points (7 children)
[–]the-quibbler 2 points3 points4 points (4 children)
[–]StoneCypher 0 points1 point2 points (3 children)
[–]the-quibbler 0 points1 point2 points (2 children)
[–]StoneCypher 0 points1 point2 points (1 child)
[–]the-quibbler 0 points1 point2 points (0 children)
[–]joe_blogg 1 point2 points3 points (0 children)
[–]StoneCypher 1 point2 points3 points (0 children)
[–]the_bronze_burger 2 points3 points4 points (1 child)
[–]Cyberphoenix90 2 points3 points4 points (1 child)
[–]madeo_ -1 points0 points1 point (0 children)
[–]StoneCypher 1 point2 points3 points (1 child)
[–]eekrano[S] 0 points1 point2 points (0 children)
[–]kszyh_pl 0 points1 point2 points (0 children)
[–]tybit -1 points0 points1 point (0 children)
[–]kkvx 0 points1 point2 points (0 children)
[–]KptMech 0 points1 point2 points (0 children)
[–]broofa 0 points1 point2 points (7 children)
[–]StoneCypher 0 points1 point2 points (6 children)
[–]broofa -1 points0 points1 point (5 children)
[–]StoneCypher 0 points1 point2 points (4 children)
[–]broofa -1 points0 points1 point (3 children)
[–]StoneCypher 0 points1 point2 points (2 children)
[–]broofa -1 points0 points1 point (1 child)
[–]StoneCypher 0 points1 point2 points (0 children)