Files
decentralized-ecosystem/protocols/xmpp.md
T
Jay Graber 80dbb091d7 Add xmpp
2020-06-09 21:53:13 -07:00

3.4 KiB

#XMPP

XMPP, the Extensible Messaging and Presence Protocol, is a protocol designed for instant messaging and generalized routing of XML data. It was originally developed in the Jabber open source community in 1999 to provide an alternative to closed instant messaging services.

XMPP uses a federated client-server architecture that is similar to email, but introduced several modifications to facilitate real-time communication.

XMPP is a large protocol, with many Extension Protocols that have been added over time. Due to the maturity of the protocol, it is well documented, with clearly written specs available for every component.

Identity

Every user has a unique XMPP address, called a JID (Jabber ID). A JID is a username followed by the homeserver, for example:

alice@example.com

Users can choose a global, memorable nickname, but these are not globally unique.

Networking/Message passing

XMPP is implemented in a distributed client-server architecture.

The basic protocol data unit in XMPP is an XML "stanza", a fragment of XML that is sent over a stream.

Data Storage/Message Persistence

An XMPP client may store data on the server. Whether it is accessible to others or not depends on the client implementation.

Default settings for a Jabber server store information including: saved contacts ("buddies"), offline messages, error logs, and perhaps chat messages and file uploads for a limited number of days.

Moderation/Reputation

Due to the federated nature of XMPP, moderation actions are only respected if they are supported by the client.

Some examples of moderation in XMPP: An experimental spec for groupchat moderation

Social/Discovery

Built-in information about network availability (“presence”) Presence subscriptions for two-way authorization Presence-enabled contact lists (“rosters”)

XMPP includes the ability for users to advertise their network availability or "presence." This is not strictly necessary for the exchange of data, but facilitates real-time interaction by indicating the the recipient is online and available.

Privacy/Access Control

Channel encryption using Transport Layer Security (TLS) Strong authentication using the Simple Authentication and Security Layer (SASL)

Monetization

User experience (if applies)

Interoperability

XMPP was designed with the goal of connecting users through multiple instant message systems. This was done through transports or gateways to other IM protocols, but also to protocols such as SMS and email.

In February 2010, the social-networking site Facebook opened up its chat feature to third-party applications via XMPP.[13] Some functionality was unavailable through XMPP, and support was dropped in April 2014.[14]

Similarly, in December 2011, Microsoft released an XMPP interface to its Microsoft Messenger service.[15] Skype, its de facto successor, also provides limited XMPP support.[16]

Scalability

A single ejabberd node with 2+ million concurrent users

Metrics

Implementations

A list of XMPP clients

Gtalk, Whatsapp

XMPP About XMPP Wikipedia