Skip to content Skip to sidebar Skip to footer

How To Do Simple, Reliable Network Messaging?

I'm using sockets for communication between various processes right now. Everything is running on the same machine, so there is no packet loss, and I also don't get read timeouts e

Solution 1:

TCP guarantees all pagackes are passed to destination [It does the re-send for you if it didn't]. So, if you use it - it will probably take more time [compared to single machine], but correctness of msg transmissions remains.

Solution 2:

You should check out ZeroMQ. It has a simpler interface than pure BSD sockets, it more portable and has excellent documentation.

Solution 3:

Checkout networkComms.net for an open source network communication library.

Solution 4:

It sounds like you need a message queue.

There are many, many solutions, of which just one is redis: http://redis.io

Post a Comment for "How To Do Simple, Reliable Network Messaging?"