Project

General

Profile

DesignXMPP analysis » History » Version 3

Anonymous, 02/29/2012 11:27 AM

1 1
= XMPP library candidates analysis =
2
3
In this phase the existing XMPP libraries will be analyzed and one will be chosen to be used throughout the project.
4
5
== Library requirements ==
6
7
 * Written in Python (C/C++ could also be used, but a wrapper would need to be written)
8
 * Support for XMPP server (or component, details later)
9
 * Ability to use it with the current model used by SylkServer
10
  * Green threads
11
  * Callback based IO
12
13
== XMPP server vs XMPP component
14
15
The XMPP protocol was designed to be extended by entities called "components" which sit on the side of the server. A component is addressed with a DNS subdomain in the following form:
16
17
{{{
18
component.domain.tld
19
}}}
20
21
This mechanism is defined in [http://xmpp.org/extensions/xep-0114.html XEP-0114].
22
23 3
With this architecture in place deployment of additional features to an existing XMPP server doesn't require to modify it. The SIP-XMPP gateway can potentially be implemented as either a XMPP component or an standalone XMPP server.
24 1
25
== Library evaluation ==
26
27
The following aspects were considered when evaluating a given library:
28
29
 * Met requirements stated above
30 3
 * Is it actively maintained?
31 1
 * Example use cases
32
 * Deployments in real-world scenarios
33 3
 * Perceived complexity to integrate it with SylkServer architecture
34 1
 
35 2
=== SleekXMPP===
36
37
 * Plugin architecture, each XEP as a plugin
38
 * Client and server component support
39
 * Threaded model (thread based scheduler)
40
 * Active development
41 1
42
=== Wokkel ===
43 2
44 1
 * Plugin architecture, 'subprotocols' implementing different XEPs
45
 * Client and server component support
46 3
 * XMPP server-to-server support (s2s)
47 1
 * Designed to be used with Twisted (reactor model)
48 2
 * Active development
49
50
== Selected XMPP library ==
51
52 3
After analyzing candidate libraries '''Wokkel''' was the chosen one. Reasons:
53
54
 * Implemented on top of Twisted, which makes integration with SylkServer straightforward
55
 * Support for both component and XMPP server models, allowing for flexibility in implementation