• Advertisement
Sign in to follow this  

Gameserver intercommunication

This topic is 1662 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Advertisement