This entry will be slightly technical. I give it a rating of 2 out of 5 monospaced-font stars: **
I think XMPP has a huge number of applications just waiting to be discovered, and could be used for a unified system of data communication, publishing and delivery. I also think many game developers reinvent the wheel for chat systems in online games. I see two huge applications for Jabber in game development: as an in-game chat system and as a high-level inter-server communication channel and administration control interface.
Introduction
Jabber is an XML-based communication and presence1 protocol originally created to be an open-standards instant messaging network. (Google Talk is a Jabber chat service.) Jabber was later formalized into the XMPP protocol by the IETF.I think XMPP has a huge number of applications just waiting to be discovered, and could be used for a unified system of data communication, publishing and delivery. I also think many game developers reinvent the wheel for chat systems in online games. I see two huge applications for Jabber in game development: as an in-game chat system and as a high-level inter-server communication channel and administration control interface.
In-Game Chat and Beyond
Imagine that, as a player of an online game, you could chat easily with people not only on your own server cluster but on any server cluster for that game. Imagine that people outside the game could chat with people logged into the game. Imagine that, from your desktop IM client, you could see your in-game contact list, see who was logged into just the chat network, and who was actually logged in from inside the game. Now, imagine being a game developer and having to do very little work to implement that chat system.Using Jabber as a chat server for an online game, the developer would merely have to use some of the XMPP libraries already available as the back-end for their in-game chat interface. Exposing this client to connections from the outside internet would allow players to log in with standard Jabber clients. Server-to-server restrictions would have to apply, of course, to cut down on chat spam and other undesirable behavior.
Server-to-Server and Administration Channel
In a server cluster, different servers need to discover each other, accept administrative commands, and report their status to each other and to the administrator. All of this is possible with XMPP (as well as the XMPP Service Discovery protocol, described in JEP-0030). Servers could register themselves with a central (internal) Jabber server when they come online, and discover all other existing servers in that cluster (as well as what types of servers they are) using service discovery. Servers would then simply implement message handlers for different types of XMPP messages, depending on what their communication needs are. Administrative commands would be handled in the exact same fashion.1 Think of presence basically as an enumeration of possible status states for a particular entity. In instant-messaging applications, this is used as a user's status: available, away, idle, offline, etc. It seems simplistic, but the helpful thing about presence in a communication protocol is that it's event-based. If you come online, I get alerted - I don't have to continuously ask if you're around.

No comments:
Post a Comment