5. About Us
Peter: Documentation guy and specification author
4
Tuesday, March 3, 2009
6. About Us
Peter: Documentation guy and specification author
Remko: Developer for Psi client and other projects
4
Tuesday, March 3, 2009
7. About Us
Peter: Documentation guy and specification author
Remko: Developer for Psi client and other projects
Co-authors (with Kevin Smith) of XMPP: The
Definitive Guide (O'Reilly, 2009)
4
Tuesday, March 3, 2009
13. What is XMPP?
eXtensible Messaging and Presence Protocol
6
Tuesday, March 3, 2009
14. What is XMPP?
eXtensible Messaging and Presence Protocol
Jabber
6
Tuesday, March 3, 2009
15. What is XMPP?
eXtensible Messaging and Presence Protocol
Jabber
Real time messaging system
6
Tuesday, March 3, 2009
16. What is XMPP?
eXtensible Messaging and Presence Protocol
Jabber
Real time messaging system
Routes small snippets of XML
6
Tuesday, March 3, 2009
17. What is XMPP?
eXtensible Messaging and Presence Protocol
Jabber
Real time messaging system
Routes small snippets of XML
Alice Sister
alice@wdland.lit sister@rlworld.lit
6
Tuesday, March 3, 2009
18. What is XMPP?
eXtensible Messaging and Presence Protocol
Jabber
Real time messaging system
Routes small snippets of XML
wdland.lit rlworld.lit
server server
Alice Sister
alice@wdland.lit sister@rlworld.lit
6
Tuesday, March 3, 2009
19. What is XMPP?
eXtensible Messaging and Presence Protocol
Jabber
Real time messaging system
Routes small snippets of XML
wdland.lit rlworld.lit
server server
Alice Sister
alice@wdland.lit sister@rlworld.lit
6
Tuesday, March 3, 2009
20. What is XMPP?
eXtensible Messaging and Presence Protocol
Jabber
Real time messaging system
Routes small snippets of XML
wdland.lit rlworld.lit
server server
<message to=’sister@rlworld.lit’>
<body>Hi there!</body>
</message>
Alice Sister
alice@wdland.lit sister@rlworld.lit
6
Tuesday, March 3, 2009
21. What is XMPP?
eXtensible Messaging and Presence Protocol
Jabber
Real time messaging system
Routes small snippets of XML
wdland.lit rlworld.lit
server server
<message to=’sister@rlworld.lit’>
<body>Hi there!</body>
</message>
Alice Sister
alice@wdland.lit sister@rlworld.lit
6
Tuesday, March 3, 2009
22. What is XMPP?
eXtensible Messaging and Presence Protocol
Jabber
Real time messaging system
Routes small snippets of XML
wdland.lit rlworld.lit
...
server server
<message to=’sister@rlworld.lit’>
<body>Hi there!</body>
</message>
Alice Sister
alice@wdland.lit sister@rlworld.lit
6
Tuesday, March 3, 2009
23. What is XMPP?
eXtensible Messaging and Presence Protocol
Jabber
Real time messaging system
Routes small snippets of XML
wdland.lit rlworld.lit
...
server server
<message to=’sister@rlworld.lit’> <message from=’alice@wland.lit’>
<body>Hi there!</body> <body>Hi there!</body>
</message> </message>
Alice Sister
alice@wdland.lit sister@rlworld.lit
6
Tuesday, March 3, 2009
24. What can you do with XMPP?
7
Tuesday, March 3, 2009
25. What can you do with XMPP?
Instant Messaging
7
Tuesday, March 3, 2009
26. What can you do with XMPP?
Real-time Social Networking
8
Tuesday, March 3, 2009
27. What can you do with XMPP?
Gaming
9
Tuesday, March 3, 2009
28. What can you do with XMPP?
Voice & Video
10
Tuesday, March 3, 2009
29. What can you do with XMPP?
Mobile apps / Geolocation
11
Tuesday, March 3, 2009
30. What can you do with XMPP?
<insert your idea here>
12
Tuesday, March 3, 2009
32. XMPP ...
... is an open standard (RFC 3920 + 3921, XSF
Extensions)
13
Tuesday, March 3, 2009
33. XMPP ...
... is an open standard (RFC 3920 + 3921, XSF
Extensions)
... is decentralized (federated)
13
Tuesday, March 3, 2009
34. XMPP ...
... is an open standard (RFC 3920 + 3921, XSF
Extensions)
... is decentralized (federated)
... has strong security (TLS)
13
Tuesday, March 3, 2009
35. XMPP ...
... is an open standard (RFC 3920 + 3921, XSF
Extensions)
... is decentralized (federated)
... has strong security (TLS)
... has lots of open-source projects (but other
licensing allowed)
13
Tuesday, March 3, 2009
36. XMPP ...
... is an open standard (RFC 3920 + 3921, XSF
Extensions)
... is decentralized (federated)
... has strong security (TLS)
... has lots of open-source projects (but other
licensing allowed)
... has an active, open community
13
Tuesday, March 3, 2009
38. What does XMPP provide?
Channel encryption and authentication
14
Tuesday, March 3, 2009
39. What does XMPP provide?
Channel encryption and authentication
Presence and contact lists
14
Tuesday, March 3, 2009
40. What does XMPP provide?
Channel encryption and authentication
Presence and contact lists
One-to-one and multi-party messaging
14
Tuesday, March 3, 2009
41. What does XMPP provide?
Channel encryption and authentication
Presence and contact lists
One-to-one and multi-party messaging
Alerts and notifications (PubSub)
14
Tuesday, March 3, 2009
42. What does XMPP provide?
Channel encryption and authentication
Presence and contact lists
One-to-one and multi-party messaging
Alerts and notifications (PubSub)
Service discovery and device capabilities
14
Tuesday, March 3, 2009
43. What does XMPP provide?
Channel encryption and authentication
Presence and contact lists
One-to-one and multi-party messaging
Alerts and notifications (PubSub)
Service discovery and device capabilities
Peer-to-peer media sessions (Jingle)
14
Tuesday, March 3, 2009
44. What does XMPP provide?
Channel encryption and authentication
Presence and contact lists
One-to-one and multi-party messaging
Alerts and notifications (PubSub)
Service discovery and device capabilities
Peer-to-peer media sessions (Jingle)
Data forms and remote commands
14
Tuesday, March 3, 2009
45. What does XMPP provide?
Channel encryption and authentication
Presence and contact lists
One-to-one and multi-party messaging
Alerts and notifications (PubSub)
Service discovery and device capabilities
Peer-to-peer media sessions (Jingle)
Data forms and remote commands
And more (lots of extensions)
14
Tuesday, March 3, 2009
47. History
Invented by Jeremie Miller as Jabber (1998)
15
Tuesday, March 3, 2009
48. History
Invented by Jeremie Miller as Jabber (1998)
First server + clients + libraries (1999-2000)
15
Tuesday, March 3, 2009
49. History
Invented by Jeremie Miller as Jabber (1998)
First server + clients + libraries (1999-2000)
More open source + commercial codebases
(2000+)
15
Tuesday, March 3, 2009
50. History
Invented by Jeremie Miller as Jabber (1998)
First server + clients + libraries (1999-2000)
More open source + commercial codebases
(2000+)
Core standardization in IETF as XMPP (2002-2004)
15
Tuesday, March 3, 2009
51. History
Invented by Jeremie Miller as Jabber (1998)
First server + clients + libraries (1999-2000)
More open source + commercial codebases
(2000+)
Core standardization in IETF as XMPP (2002-2004)
Development of extensions (2002+)
15
Tuesday, March 3, 2009
52. History
Invented by Jeremie Miller as Jabber (1998)
First server + clients + libraries (1999-2000)
More open source + commercial codebases
(2000+)
Core standardization in IETF as XMPP (2002-2004)
Development of extensions (2002+)
Serious adoption by Apple, Google, LiveJournal,
Nokia, Cisco, etc. (2005+)
15
Tuesday, March 3, 2009
53. History
Invented by Jeremie Miller as Jabber (1998)
First server + clients + libraries (1999-2000)
More open source + commercial codebases
(2000+)
Core standardization in IETF as XMPP (2002-2004)
Development of extensions (2002+)
Serious adoption by Apple, Google, LiveJournal,
Nokia, Cisco, etc. (2005+)
Continuing work on improved security and more
application types
15
Tuesday, March 3, 2009
74. Architecture
Client-server
20
Tuesday, March 3, 2009
75. Architecture
Client-server
Client developers can focus on user experience
20
Tuesday, March 3, 2009
76. Architecture
Client-server
Client developers can focus on user experience
Server developers can focus on relaibility & scalability
20
Tuesday, March 3, 2009
77. Architecture
Client-server
Client developers can focus on user experience
Server developers can focus on relaibility & scalability
Decentralized
20
Tuesday, March 3, 2009
78. Architecture
Client-server
Client developers can focus on user experience
Server developers can focus on relaibility & scalability
Decentralized
Robust (no single point of failure)
20
Tuesday, March 3, 2009
79. Architecture
Client-server
Client developers can focus on user experience
Server developers can focus on relaibility & scalability
Decentralized
Robust (no single point of failure)
Easier to manage
20
Tuesday, March 3, 2009
80. Architecture
Client-server
Client developers can focus on user experience
Server developers can focus on relaibility & scalability
Decentralized
Robust (no single point of failure)
Easier to manage
No multiple hops
20
Tuesday, March 3, 2009
81. Architecture
Client-server
Client developers can focus on user experience
Server developers can focus on relaibility & scalability
Decentralized
Robust (no single point of failure)
Easier to manage
No multiple hops
Harder to spoof
20
Tuesday, March 3, 2009
82. Addresses
Jabber ID (JID)
21
Tuesday, March 3, 2009
83. Addresses
Jabber ID (JID)
Domain
wonderland.lit
21
Tuesday, March 3, 2009
84. Addresses
Jabber ID (JID)
User Domain
alice@ wonderland.lit
21
Tuesday, March 3, 2009
85. Addresses
Jabber ID (JID)
User Domain
alice@ wonderland.lit
Bare JID
21
Tuesday, March 3, 2009
86. Addresses
Jabber ID (JID)
User Domain
alice@ wonderland.lit
21
Tuesday, March 3, 2009
87. Addresses
Jabber ID (JID)
User Domain Resource
alice@ wonderland.lit /TeaParty
21
Tuesday, March 3, 2009
88. Addresses
Jabber ID (JID)
User Domain Resource
alice@ wonderland.lit /TeaParty
Full JID
21
Tuesday, March 3, 2009
108. Presence Stanzas
<presence from=quot;alice@wonderland.lit/pdaquot;>
<show>xa</show>
<status>down the rabbit hole!</status>
</presence>
25
Tuesday, March 3, 2009
109. Presence Stanzas
<presence from=quot;alice@wonderland.lit/pdaquot;>
<show>xa</show>
<status>down the rabbit hole!</status>
</presence>
Advertise network availability (online/offline)
25
Tuesday, March 3, 2009
110. Presence Stanzas
<presence from=quot;alice@wonderland.lit/pdaquot;>
<show>xa</show>
<status>down the rabbit hole!</status>
</presence>
Advertise network availability (online/offline)
‘Show’ Statuses: Away, Do Not Disturb,
Extended Away, Free for chat
25
Tuesday, March 3, 2009
111. Presence Stanzas
<presence from=quot;alice@wonderland.lit/pdaquot;>
<show>xa</show>
<status>down the rabbit hole!</status>
</presence>
Advertise network availability (online/offline)
‘Show’ Statuses: Away, Do Not Disturb,
Extended Away, Free for chat
Status messages
25
Tuesday, March 3, 2009
112. Presence Stanzas
<presence from=quot;alice@wonderland.lit/pdaquot;>
<show>xa</show>
<status>down the rabbit hole!</status>
</presence>
Advertise network availability (online/offline)
‘Show’ Statuses: Away, Do Not Disturb,
Extended Away, Free for chat
Status messages
Typically used for contact lists/rosters
25
Tuesday, March 3, 2009
113. Presence Stanzas
<presence from=quot;alice@wonderland.lit/pdaquot;>
<show>xa</show>
<status>down the rabbit hole!</status>
</presence>
Advertise network availability (online/offline)
‘Show’ Statuses: Away, Do Not Disturb,
Extended Away, Free for chat
Status messages
Typically used for contact lists/rosters
25
Tuesday, March 3, 2009
114. Presence Stanzas
<presence from=quot;alice@wonderland.lit/pdaquot;>
<show>xa</show>
<status>down the rabbit hole!</status>
</presence>
Advertise network availability (online/offline)
‘Show’ Statuses: Away, Do Not Disturb,
Extended Away, Free for chat
Status messages
Typically used for contact lists/rosters
Presence subscriptions
25
Tuesday, March 3, 2009
129. IQ Stanzas
<iq type=quot;getquot;>
<query xmlns=quot;jabber:iq:rosterquot;/>
</iq>
28
Tuesday, March 3, 2009
130. IQ Stanzas
<iq type=quot;getquot;>
<query xmlns=quot;jabber:iq:rosterquot;/>
</iq>
Types:
28
Tuesday, March 3, 2009
131. IQ Stanzas
<iq type=quot;getquot;>
<query xmlns=quot;jabber:iq:rosterquot;/>
</iq>
Types:
get: Ask for information (HTTP GET)
28
Tuesday, March 3, 2009
132. IQ Stanzas
<iq type=quot;getquot;>
<query xmlns=quot;jabber:iq:rosterquot;/>
</iq>
Types:
get: Ask for information (HTTP GET)
set: Provide information (HTTP POST/PUT)
28
Tuesday, March 3, 2009
133. IQ Stanzas
<iq type=quot;getquot;>
<query xmlns=quot;jabber:iq:rosterquot;/>
</iq>
Types:
get: Ask for information (HTTP GET)
set: Provide information (HTTP POST/PUT)
result: Returns requested information / acknowledge set
28
Tuesday, March 3, 2009
134. IQ Stanzas
<iq type=quot;getquot;>
<query xmlns=quot;jabber:iq:rosterquot;/>
</iq>
Types:
get: Ask for information (HTTP GET)
set: Provide information (HTTP POST/PUT)
result: Returns requested information / acknowledge set
error
28
Tuesday, March 3, 2009
136. Extensibility
Any XML child element can be used as a payload
29
Tuesday, March 3, 2009
137. Extensibility
Any XML child element can be used as a payload
e.g. XHTML bodies, Atom feeds, XML-RPC, ...
29
Tuesday, March 3, 2009
138. Extensibility
Any XML child element can be used as a payload
e.g. XHTML bodies, Atom feeds, XML-RPC, ...
Namespaces to scope payloads
<iq type=quot;getquot;>
<query xmlns=quot;jabber:iq:rosterquot;/>
</iq>
29
Tuesday, March 3, 2009
139. Extensibility
Any XML child element can be used as a payload
e.g. XHTML bodies, Atom feeds, XML-RPC, ...
Namespaces to scope payloads
<iq type=quot;getquot;>
<query xmlns=quot;jabber:iq:rosterquot;/>
</iq>
Extensions typically developed @ XMPP Standards
Foundation's
29
Tuesday, March 3, 2009
140. Extensibility
Any XML child element can be used as a payload
e.g. XHTML bodies, Atom feeds, XML-RPC, ...
Namespaces to scope payloads
<iq type=quot;getquot;>
<query xmlns=quot;jabber:iq:rosterquot;/>
</iq>
Extensions typically developed @ XMPP Standards
Foundation's
Open, developer-friendly standards process
29
Tuesday, March 3, 2009
141. Extensibility
Any XML child element can be used as a payload
e.g. XHTML bodies, Atom feeds, XML-RPC, ...
Namespaces to scope payloads
<iq type=quot;getquot;>
<query xmlns=quot;jabber:iq:rosterquot;/>
</iq>
Extensions typically developed @ XMPP Standards
Foundation's
Open, developer-friendly standards process
Can write your own quot;privatequot; extensions for custom
functionality
29
Tuesday, March 3, 2009
144. Asynchronicity
Web
Send request to server
30
Tuesday, March 3, 2009
145. Asynchronicity
Web
Send request to server
Wait for response
30
Tuesday, March 3, 2009
146. Asynchronicity
Web
Send request to server
Wait for response
Short-lived connections
30
Tuesday, March 3, 2009
147. Asynchronicity
Web
Send request to server
Wait for response
Short-lived connections
Jabber
30
Tuesday, March 3, 2009
148. Asynchronicity
Web
Send request to server
Wait for response
Short-lived connections
Jabber
Long lived connection
30
Tuesday, March 3, 2009
149. Asynchronicity
Web
Send request to server
Wait for response
Short-lived connections
Jabber
Long lived connection
Events are sent out / come in asynchronously
30
Tuesday, March 3, 2009
150. Asynchronicity
Web
Send request to server
Wait for response
Short-lived connections
Jabber
Long lived connection
Events are sent out / come in asynchronously
Different mindsets!
30
Tuesday, March 3, 2009
155. Echo bot
Bots
Unmanned clients
Connect to an XMPP server, and wait for commands / send
events
32
Tuesday, March 3, 2009
156. Echo bot
Bots
Unmanned clients
Connect to an XMPP server, and wait for commands / send
events
Echo bot
32
Tuesday, March 3, 2009
157. Echo bot
Bots
Unmanned clients
Connect to an XMPP server, and wait for commands / send
events
Echo bot
Echoes back every message that it receives
32
Tuesday, March 3, 2009
160. Writing the Echo Bot
Select a language to work in
34
Tuesday, March 3, 2009
161. Writing the Echo Bot
Select a language to work in
e.g. Python
34
Tuesday, March 3, 2009
162. Writing the Echo Bot
Select a language to work in
e.g. Python
Select an XMPP library to do the low-level XMPP
work
34
Tuesday, March 3, 2009
163. Writing the Echo Bot
Select a language to work in
e.g. Python
Select an XMPP library to do the low-level XMPP
work
e.g. SleekXMPP
34
Tuesday, March 3, 2009
164. Writing the Echo Bot
Select a language to work in
e.g. Python
Select an XMPP library to do the low-level XMPP
work
e.g. SleekXMPP
Start coding
34
Tuesday, March 3, 2009
175. Multi-User Chat
Conversation with multiple users
38
Tuesday, March 3, 2009
176. Multi-User Chat
Conversation with multiple users
Shared roster (with presence from all participating
users)
38
Tuesday, March 3, 2009
177. Multi-User Chat
Conversation with multiple users
Shared roster (with presence from all participating
users)
Crowd control
38
Tuesday, March 3, 2009
178. Multi-User Chat
Conversation with multiple users
Shared roster (with presence from all participating
users)
Crowd control
Privacy
38
Tuesday, March 3, 2009
179. Multi-User Chat
Conversation with multiple users
Shared roster (with presence from all participating
users)
Crowd control
Privacy
Configurable
38
Tuesday, March 3, 2009
196. PubSub
Protocol to subscribe and publish any kind of
information
41
Tuesday, March 3, 2009
197. PubSub
Protocol to subscribe and publish any kind of
information
Avoids needless polling for new information
41
Tuesday, March 3, 2009
198. PubSub
Protocol to subscribe and publish any kind of
information
Avoids needless polling for new information
Doesn’t scale with the number of users / requests
41
Tuesday, March 3, 2009
199. PubSub
Protocol to subscribe and publish any kind of
information
Avoids needless polling for new information
Doesn’t scale with the number of users / requests
Extensible: Payload can be any type
41
Tuesday, March 3, 2009
200. PubSub
Protocol to subscribe and publish any kind of
information
Avoids needless polling for new information
Doesn’t scale with the number of users / requests
Extensible: Payload can be any type
Configurable
41
Tuesday, March 3, 2009
205. Extended Presence
Publish extra information about yourself
45
Tuesday, March 3, 2009
206. Extended Presence
Publish extra information about yourself
What music are you currently listening to?
45
Tuesday, March 3, 2009
207. Extended Presence
Publish extra information about yourself
What music are you currently listening to?
Where are you right now?
45
Tuesday, March 3, 2009
208. Extended Presence
Publish extra information about yourself
What music are you currently listening to?
Where are you right now?
What are you doing?
45
Tuesday, March 3, 2009
209. Extended Presence
Publish extra information about yourself
What music are you currently listening to?
Where are you right now?
What are you doing?
Used to be added to regular presence
45
Tuesday, March 3, 2009
210. Extended Presence
Publish extra information about yourself
What music are you currently listening to?
Where are you right now?
What are you doing?
Used to be added to regular presence
Doesn’t scale
45
Tuesday, March 3, 2009
211. Extended Presence
Publish extra information about yourself
What music are you currently listening to?
Where are you right now?
What are you doing?
Used to be added to regular presence
Doesn’t scale
‘Spams’ people with unwanted information
45
Tuesday, March 3, 2009
212. Extended Presence
Publish extra information about yourself
What music are you currently listening to?
Where are you right now?
What are you doing?
Used to be added to regular presence
Doesn’t scale
‘Spams’ people with unwanted information
Implemented on top of PubSub
45
Tuesday, March 3, 2009
217. Jingle
Voice, Video, Multimedia, P2P
XMPP is not optimized to send data streams
48
Tuesday, March 3, 2009
218. Jingle
Voice, Video, Multimedia, P2P
XMPP is not optimized to send data streams
Use XMPP (Jingle) to set up a direct connection
between points
48
Tuesday, March 3, 2009
219. Jingle
Voice, Video, Multimedia, P2P
XMPP is not optimized to send data streams
Use XMPP (Jingle) to set up a direct connection
between points
Negotiate what (Audio/Video) and how (UDP, TCP) you are
going to send it
48
Tuesday, March 3, 2009
220. Jingle
Voice, Video, Multimedia, P2P
XMPP is not optimized to send data streams
Use XMPP (Jingle) to set up a direct connection
between points
Negotiate what (Audio/Video) and how (UDP, TCP) you are
going to send it
Use streaming protocols (RTP,...) to stream the data
over the negotiated direct connection
48
Tuesday, March 3, 2009
221. Jingle
Voice, Video, Multimedia, P2P
XMPP is not optimized to send data streams
Use XMPP (Jingle) to set up a direct connection
between points
Negotiate what (Audio/Video) and how (UDP, TCP) you are
going to send it
Use streaming protocols (RTP,...) to stream the data
over the negotiated direct connection
(Renegotiation during data session)
48
Tuesday, March 3, 2009
222. Jingle
Voice, Video, Multimedia, P2P
XMPP is not optimized to send data streams
Use XMPP (Jingle) to set up a direct connection
between points
Negotiate what (Audio/Video) and how (UDP, TCP) you are
going to send it
Use streaming protocols (RTP,...) to stream the data
over the negotiated direct connection
(Renegotiation during data session)
NAT traversal using standard technologies
48
Tuesday, March 3, 2009
223. Jingle
Voice, Video, Multimedia, P2P
XMPP is not optimized to send data streams
Use XMPP (Jingle) to set up a direct connection
between points
Negotiate what (Audio/Video) and how (UDP, TCP) you are
going to send it
Use streaming protocols (RTP,...) to stream the data
over the negotiated direct connection
(Renegotiation during data session)
NAT traversal using standard technologies
TURN, STUN, ICE 48
Tuesday, March 3, 2009
225. File Transfer
Various ways of transferring files
49
Tuesday, March 3, 2009
226. File Transfer
Various ways of transferring files
Tiny pieces of data are sent in one stanza
49
Tuesday, March 3, 2009
227. File Transfer
Various ways of transferring files
Tiny pieces of data are sent in one stanza
Small pieces of data are sent in a set of consequent <iq/>
stanzas
49
Tuesday, March 3, 2009
228. File Transfer
Various ways of transferring files
Tiny pieces of data are sent in one stanza
Small pieces of data are sent in a set of consequent <iq/>
stanzas
Larger pieces of data are sent out of band
49
Tuesday, March 3, 2009
229. File Transfer
Various ways of transferring files
Tiny pieces of data are sent in one stanza
Small pieces of data are sent in a set of consequent <iq/>
stanzas
Larger pieces of data are sent out of band
Using SOCKS5
49
Tuesday, March 3, 2009
230. File Transfer
Various ways of transferring files
Tiny pieces of data are sent in one stanza
Small pieces of data are sent in a set of consequent <iq/>
stanzas
Larger pieces of data are sent out of band
Using SOCKS5
Using older Jingle-like protocol
49
Tuesday, March 3, 2009
231. File Transfer
Various ways of transferring files
Tiny pieces of data are sent in one stanza
Small pieces of data are sent in a set of consequent <iq/>
stanzas
Larger pieces of data are sent out of band
Using SOCKS5
Using older Jingle-like protocol
Being extended to use Jingle
49
Tuesday, March 3, 2009
233. BOSH
Regular XMPP opens one long-lived TCP
connection, and keeps it up
50
Tuesday, March 3, 2009
234. BOSH
Regular XMPP opens one long-lived TCP
connection, and keeps it up
Not always convenient
50
Tuesday, March 3, 2009
235. BOSH
Regular XMPP opens one long-lived TCP
connection, and keeps it up
Not always convenient
Long connections drain batteries on mobile phones
50
Tuesday, March 3, 2009
236. BOSH
Regular XMPP opens one long-lived TCP
connection, and keeps it up
Not always convenient
Long connections drain batteries on mobile phones
Web clients cannot keep state (open connections)
50
Tuesday, March 3, 2009
237. BOSH
Regular XMPP opens one long-lived TCP
connection, and keeps it up
Not always convenient
Long connections drain batteries on mobile phones
Web clients cannot keep state (open connections)
Bad network connectivity
50
Tuesday, March 3, 2009
238. BOSH
Regular XMPP opens one long-lived TCP
connection, and keeps it up
Not always convenient
Long connections drain batteries on mobile phones
Web clients cannot keep state (open connections)
Bad network connectivity
Bidirectional streams Over Synchronous HTTP
50
Tuesday, March 3, 2009
239. BOSH
Regular XMPP opens one long-lived TCP
connection, and keeps it up
Not always convenient
Long connections drain batteries on mobile phones
Web clients cannot keep state (open connections)
Bad network connectivity
Bidirectional streams Over Synchronous HTTP
XMPP over HTTP
50
Tuesday, March 3, 2009
240. BOSH
Regular XMPP opens one long-lived TCP
connection, and keeps it up
Not always convenient
Long connections drain batteries on mobile phones
Web clients cannot keep state (open connections)
Bad network connectivity
Bidirectional streams Over Synchronous HTTP
XMPP over HTTP
Cunning mechanism of not having to poll for new
messages
50
Tuesday, March 3, 2009
241. BOSH
Regular XMPP opens one long-lived TCP
connection, and keeps it up
Not always convenient
Long connections drain batteries on mobile phones
Web clients cannot keep state (open connections)
Bad network connectivity
Bidirectional streams Over Synchronous HTTP
XMPP over HTTP
Cunning mechanism of not having to poll for new
messages
Piggyback incoming messages on HTTP response
50
Tuesday, March 3, 2009
242. BOSH
POST /webclient HTTP/1.1
Host: bosh.wonderland.lit
Content-Type: text/xml; charset=utf-8
Content-Length: 205
<body rid=quot;90029205quot; sid=quot;3m1ts1htd1squot;
xmlns=quot;http://jabber.org/protocol/httpbindquot;>
<message to=quot;sister@realworld.litquot; xmlns=quot;jabber:clientquot;>
<body>Help, I fell down the rabbit hole!</body>
</message>
</body>
51
Tuesday, March 3, 2009
244. Serverless Messaging
Sometimes, a server is not available
52
Tuesday, March 3, 2009
245. Serverless Messaging
Sometimes, a server is not available
Remote location without internet
52
Tuesday, March 3, 2009
246. Serverless Messaging
Sometimes, a server is not available
Remote location without internet
Conference location with many unknown people you want to
communicate wit
52
Tuesday, March 3, 2009
247. Serverless Messaging
Sometimes, a server is not available
Remote location without internet
Conference location with many unknown people you want to
communicate wit
Serverless messaging
52
Tuesday, March 3, 2009
248. Serverless Messaging
Sometimes, a server is not available
Remote location without internet
Conference location with many unknown people you want to
communicate wit
Serverless messaging
Uses zero-configuration (Apple) to discover entities
on the local network
52
Tuesday, March 3, 2009
249. Serverless Messaging
Sometimes, a server is not available
Remote location without internet
Conference location with many unknown people you want to
communicate wit
Serverless messaging
Uses zero-configuration (Apple) to discover entities
on the local network
mDNS, DNS-SD
52
Tuesday, March 3, 2009
250. Serverless Messaging
Sometimes, a server is not available
Remote location without internet
Conference location with many unknown people you want to
communicate wit
Serverless messaging
Uses zero-configuration (Apple) to discover entities
on the local network
mDNS, DNS-SD
Open connection directly to other connection, and
send XMPP over that connection
52
Tuesday, March 3, 2009
251. Serverless Messaging
Sometimes, a server is not available
Remote location without internet
Conference location with many unknown people you want to
communicate wit
Serverless messaging
Uses zero-configuration (Apple) to discover entities
on the local network
mDNS, DNS-SD
Open connection directly to other connection, and
send XMPP over that connection
iChat’s Rendez-vous/Bonjour 52
Tuesday, March 3, 2009
261. Conclusion
The real-time Internet is coming
57
Tuesday, March 3, 2009
262. Conclusion
The real-time Internet is coming
Build competitive advantage using open
technologies
57
Tuesday, March 3, 2009
263. Conclusion
The real-time Internet is coming
Build competitive advantage using open
technologies
What problems can you solve with XMPP?
57
Tuesday, March 3, 2009
264. Conclusion
The real-time Internet is coming
Build competitive advantage using open
technologies
What problems can you solve with XMPP?
Join the conversation
57
Tuesday, March 3, 2009
265. Conclusion
The real-time Internet is coming
Build competitive advantage using open
technologies
What problems can you solve with XMPP?
Join the conversation
Happy Jabbering!
57
Tuesday, March 3, 2009
266. Conclusion
The real-time Internet is coming
Build competitive advantage using open
technologies
What problems can you solve with XMPP?
Join the conversation
Happy Jabbering!
More info inside
57
Tuesday, March 3, 2009