Jump to content
  • Advertisement
Sign in to follow this  
iwitggwg

whether chat service need a single connection

This topic is 2032 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

i'm trying to designing the chat service in a mmo server shard. the chat service is a solo server. but i'm wondering whether there should be always only one connection between client and the shard, and any request including the chat request from the client will go through this only connection, then the shard will dispath the request to corresponding service, or the client should establish another single connection with the chat service and all chat requests will go through this single connection?
if i need a single connection, what's the usual way to authorize the connection?

Share this post


Link to post
Share on other sites
Advertisement
You can use a single connection, or multiple connections -- really up to you. It's probably easier to have one connection to each destination server, rather than have servers required to forward messages to other servers. Except if you use a scalable mesh system, like an Erlang cluster, say.

Authorization is easiest done by using TLS for the connection, and then sending the user name and password in the beginning of the connection. Because you're using TLS, that's secure against intermediate snooping. (But not secure against malware on the user's computer -- nothing really is.)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!