Gameserver intercommunication

Started by
1 comment, last by eastbit 10 years, 9 months ago
Hello there,
I'm currently working on a project which consists of multiple server instances on one machine (or server wide). Since all of them need to work together they need to be able to share messages in real-time. Now I'm gambling about which method would be efficient and easy. Certainly I could create a new protocol and communicate using pipes, unix-sockets or tcp-sockets. But I want to use something like a standardised message-system. For example: it would be nice to access the servers using any small applications like python scripts (so their should be librarys for different languages).


I thought about using amqp or dbus but first I want to hear some opinions from experienced devs.
So, could anyone give me some hints about how I could/should do the intercommunication?
Advertisement

Why wouldn't pipes or TCP sockets work from Python scripts or other languages?

Anyway, for local communications, ZeroMQ is a pretty good choice. As long as you can control who gets to send messages using firewalls, it's reliable, fast, and available in many languages. It is, however, not a good choice for accepting traffic from untrusted remote senders.

Another option you can look into is Apache Thrift.

enum Bool { True, False, FileNotFound };

Why wouldn't pipes or TCP sockets work from Python scripts or other languages?

They would have worked from any language but I didn't want to build my own protocol libs for multiple languages.

ZeroMQ looks really cool. I'll work into it.

Thanks

This topic is closed to new replies.

Advertisement