Jump to content

  • Log In with Google      Sign In   
  • Create Account


Gameserver intercommunication


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 eastbit   Members   -  Reputation: 107

Like
0Likes
Like

Posted 02 July 2013 - 07:35 AM

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?

Sponsor:

#2 hplus0603   Moderators   -  Reputation: 4966

Like
0Likes
Like

Posted 02 July 2013 - 09:12 AM

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 };

#3 eastbit   Members   -  Reputation: 107

Like
0Likes
Like

Posted 02 July 2013 - 01:31 PM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS