DesignXMPP analysis » History » Version 5
Anonymous, 03/01/2012 02:16 PM
| 1 | 1 | = XMPP library candidates analysis = |
|
|---|---|---|---|
| 2 | |||
| 3 | 5 | [[TOC(DesignXMPP, DesignXMPP_analysis, 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 | |||
| 7 | == Library requirements == |
||
| 8 | |||
| 9 | * Written in Python (C/C++ could also be used, but a wrapper would need to be written) |
||
| 10 | * Support for XMPP server (or component, details later) |
||
| 11 | * Ability to use it with the current model used by SylkServer |
||
| 12 | * Green threads |
||
| 13 | * Callback based IO |
||
| 14 | |||
| 15 | == XMPP server vs XMPP component |
||
| 16 | |||
| 17 | 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 | |||
| 19 | {{{ |
||
| 20 | component.domain.tld |
||
| 21 | }}} |
||
| 22 | |||
| 23 | This mechanism is defined in [http://xmpp.org/extensions/xep-0114.html XEP-0114]. |
||
| 24 | |||
| 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 | == Library evaluation == |
||
| 28 | |||
| 29 | The following aspects were considered when evaluating a given library: |
||
| 30 | |||
| 31 | * Met requirements stated above |
||
| 32 | 3 | * Is it actively maintained? |
|
| 33 | 1 | * Example use cases |
|
| 34 | * Deployments in real-world scenarios |
||
| 35 | 3 | * Perceived complexity to integrate it with SylkServer architecture |
|
| 36 | 1 | ||
| 37 | 2 | === SleekXMPP=== |
|
| 38 | |||
| 39 | * Plugin architecture, each XEP as a plugin |
||
| 40 | * Client and server component support |
||
| 41 | * Threaded model (thread based scheduler) |
||
| 42 | * Active development |
||
| 43 | 1 | ||
| 44 | === Wokkel === |
||
| 45 | 2 | ||
| 46 | 1 | * Plugin architecture, 'subprotocols' implementing different XEPs |
|
| 47 | * Client and server component support |
||
| 48 | 3 | * XMPP server-to-server support (s2s) |
|
| 49 | 1 | * Designed to be used with Twisted (reactor model) |
|
| 50 | 2 | * Active development |
|
| 51 | |||
| 52 | == Selected XMPP library == |
||
| 53 | |||
| 54 | 3 | After analyzing candidate libraries '''Wokkel''' was the chosen one. Reasons: |
|
| 55 | |||
| 56 | * Implemented on top of Twisted, which makes integration with SylkServer straightforward |
||
| 57 | * Support for both component and XMPP server models, allowing for flexibility in implementation |