DesignXMPP analysis

Version 9 (Adrian Georgescu, 03/03/2012 10:01 am)

1 8 Adrian Georgescu
= Software Library Candidates Analysis =
2 1
3 6
[[TOC(DesignXMPP, DesignXMPP_analysis, DesignXMPP_arch, DesignXMPP_im, depth=2)]]
4 4
5 1
In this phase the existing XMPP libraries will be analyzed and one will be chosen to be used throughout the project.
6 1
7 8 Adrian Georgescu
== Requirements ==
8 1
9 1
 * Written in Python (C/C++ could also be used, but a wrapper would need to be written)
10 7 Adrian Georgescu
 * Support for XMPP server and/or component
11 1
 * Ability to use it with the current model used by SylkServer
12 1
  * Green threads
13 1
  * Callback based IO
14 1
15 1
== XMPP server vs XMPP component
16 1
17 1
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:
18 1
19 1
{{{
20 1
component.domain.tld
21 1
}}}
22 1
23 1
This mechanism is defined in [http://xmpp.org/extensions/xep-0114.html XEP-0114].
24 1
25 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.
26 1
27 7 Adrian Georgescu
== Library Evaluation ==
28 1
29 1
The following aspects were considered when evaluating a given library:
30 1
31 1
 * Met requirements stated above
32 3
 * Is it actively maintained?
33 1
 * Example use cases
34 1
 * Deployments in real-world scenarios
35 3
 * Perceived complexity to integrate it with SylkServer architecture
36 9 Adrian Georgescu
37 9 Adrian Georgescu
List on xmpp.org http://xmpp.org/xmpp-software/libraries/
38 1
 
39 2
=== SleekXMPP===
40 2
41 9 Adrian Georgescu
http://github.com/fritzy/SleekXMPP
42 9 Adrian Georgescu
43 9 Adrian Georgescu
 
44 2
 * Plugin architecture, each XEP as a plugin
45 2
 * Client and server component support
46 2
 * Threaded model (thread based scheduler)
47 2
 * Active development
48 1
49 1
=== Wokkel ===
50 2
51 9 Adrian Georgescu
http://wokkel.ik.nu/
52 9 Adrian Georgescu
53 1
 * Plugin architecture, 'subprotocols' implementing different XEPs
54 1
 * Client and server component support
55 3
 * XMPP server-to-server support (s2s)
56 1
 * Designed to be used with Twisted (reactor model)
57 2
 * Active development
58 2
59 2
== Selected XMPP library ==
60 2
61 7 Adrian Georgescu
After analyzing candidate libraries '''Wokkel''' was the chosen one for the following reasons:
62 3
63 3
 * Implemented on top of Twisted, which makes integration with SylkServer straightforward
64 3
 * Support for both component and XMPP server models, allowing for flexibility in implementation
65 9 Adrian Georgescu
66 9 Adrian Georgescu
== Selected SIP Library ==
67 9 Adrian Georgescu
68 9 Adrian Georgescu
SIP SIMPLE SDK http://sipsimpleclient.com