Sign in to follow this  
eastbit

Gameserver intercommunication

Recommended Posts

eastbit    108
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?

Share this post


Link to post
Share on other sites
hplus0603    11347

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.

Share this post


Link to post
Share on other sites
eastbit    108

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this