Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Is XMPP the 'Next Big Thing'

Posted by CmdrTaco on Mon Feb 04, 2008 08:49 AM
from the i-sure-wouldn't-complain dept.
Open Standard Lover writes "XMPP (eXtensible Messaging and Presence Protocol) has been getting a lot of attention during the last month and it seems that the protocol is finally taking off as a general purpose glue to build distributed web applications. It has been covered that AOL was experimenting with an XMPP gateway for its instant messaging platform. XMPP has been designed since the beginning as an open technology for generalized XML routing. However, the idea of an XMPP application server is taking shape and getting supporters. A recent example shows that ejabberd XMPP server can be used to develop a distributed Twitter-like system."
+ -
story

Related Stories

[+] AOL Adopting Jabber (XMPP) 171 comments
sander writes to tell us that AOL seems to have decided to make their AIM and ICQ services compatible with XMPP. A test server is up at xmpp.oscar.aol.com, and while it's still buggy most major Jabber clients seem to work.
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • by User 956 (568564) on Monday February 04 2008, @08:50AM (#22290042) Homepage
    XMPP has been designed since the beginning as an open technology for generalized XML routing. However, the idea of an XMPP application server is taking shape and getting supporters. A recent example shows that ejabberd XMPP server can be used to develop a distributed Twitter-like system.

    Minus two points for not managing to cram the phrases "AJAX" or "Web 2.0" into this writeup.
    • by samael (12612) * <Andrew@Ducker.org.uk> on Monday February 04 2008, @09:18AM (#22290236) Homepage
      Except that XMPP isn't a web technology.
      • by Rogerborg (306625) on Monday February 04 2008, @09:21AM (#22290260) Homepage
        Wash your mouth out with SOAP. Everything is a Web 2.0 technology.
      • by TheRaven64 (641858) on Monday February 04 2008, @09:33AM (#22290422) Homepage Journal
        Why not? The web is basically a way of sending XML to users. XMPP is a way of sending XML to users. AJAX is an ugly hack. It's fine for sending data from the client to the server, but to get updates from the server you need to keep polling. With XMPP, the server can push XML fragments to the client whenever it wants and some client-side JavaScript could then process them into the DOM. There was a proof of concept a few years ago (before AJAX was a buzzword) where someone integrated an XMPP client into a web browser and used it to deliver updates to the page.
        • The web is basically a way of sending XML to users.
          I thought the web was a way to let users find/retrieve arbitrary information.
        • AJAX is an ugly hack...[instead], the server can push XML fragments to the client whenever it wants and some client-side JavaScript could then process them into the DOM

          Umm... Isn't that just a different ugly hack?

        • Re: (Score:3, Insightful)

          A twitter-like system could be built on top of xmpp. In much the same way that a gmail-like system can be built on top of SMTP/POP. That doesn't mean that SMTP/POP are web-based.
          • Re: (Score:2, Interesting)

            Now, there you go, starting one of those Slashdot-special meta arguments about what the nature of this "web" thing is. Back in the day, "web" was everything HTML, mostly running on port 80. One could argue that "web" is anything meant for direct consumption by a user (y'know, like through a browser), but that's blown on several fronts. Mail has become part of the web. So, where are the edges of the web? Where does it stop? Where does it start?

            Remember, YMMV.
          • A twitter-like system could be built on top of xmpp. In much the same way that a gmail-like system can be built on top of SMTP/POP. That doesn't mean that SMTP/POP are web-based.

            I don't know if a twitter-like [slashdot.org] system would be a wise course of action for an instant messenger system let alone an instant messenger system using XMPP. Do you know what problems could arise from this? Text such as M$, Windoze, Micro$oft, or anything dealing with anti-Microsoft topics would pop-up in your message. This change could occur when you type in MS, Microsoft, Windows, or anything dealing with Microsoft; or just occur spontaneously. ;)

    • by Niten (201835) on Monday February 04 2008, @12:55PM (#22293992) Homepage

      Minus two points for not managing to cram the phrases "AJAX" or "Web 2.0" into this writeup.

      Huh?

      • AJAX = Any technique for combining the XmlHTTPRequest object (or sometimes just an iframe) with JavaScript and XML methodologies to create a more dynamic web page = buzzword
      • Web 2.0 = Anything with a smooth logo, whose name is missing some vowels, and that looks like it might possibly be using AJAX methodologies = buzzword
      • XMPP = A very specific set of protocols, currently being formalized by the IETF, that form the basis for an extensible messaging or presence system and happen to be based on XML = not a buzzword
  • by Sique (173459) on Monday February 04 2008, @08:53AM (#22290064) Homepage
    My next project is a field test of a XMPP based Single-Number-Service-System for Siemens phone system, the OpenScape 3.0 [siemens.com]. Seems that there is really some XMPP around right now.
  • by Anonymous Coward
    E-Mail wrapped in an XML overcoat.

    Is there NOTHING sacred that some lemon won't wrap in XML ???

    Oh, no, wait ... I must remember to file my patent application for XMJPG ... a JPG file wrapped in XML for instant dissemination of boring holiday snaps to people who I became "friends" with by virtue of the fact they happened to be in the same universe as me and also owned a PC.

    Brilliant !!
    • I for one see an LMPP coming (light-weight..) and then a JSOMPP..
    • by Enleth (947766) <enleth@enleth.com> on Monday February 04 2008, @10:18AM (#22291266) Homepage
      Have you ever actually SEEN this protocol in action, its specifications, functionality and security features? This is one of the few cases where XML is actually a proper, well-implemented technology suitable for the job. I've been using Jabber as my IM of choice for a few years already, and XMPP as a communication platform for a few non-IM projects and all I can say is that the people involved in its design got it right and created a really flexible, adaptable and secure technology.

      Yeah, I know, this is Slashdot, where people like to spew completely uninformed pseudo-opinions, but this one is just too obvious. Well, happy IMing on unencrypted, stone-age, propertiary networks that force-feed you with ads and censor your messages, if that's what you want.
      • Re: (Score:3, Insightful)

        Well, happy IMing on unencrypted, stone-age, propertiary networks that force-feed you with ads and censor your messages, if that's what you want.

        XML doesn't solve any of these problems (and they're not all problems.) There's no technical reason that any given messaging service couldn't use SSL, and XMPP is extensible, and an implementation of it can be made proprietary enough to require a client that will force-feed you ads. Any network can censor messages, assuming they can read them.

        Your post is overrated.

        Yeah, I know, this is Slashdot, where people like to spew completely uninformed pseudo-opinions, but this one is just too obvious.

        Oh, sorry, I guess you covered all of that.

  • Am I too late... (Score:5, Interesting)

    by abigsmurf (919188) on Monday February 04 2008, @09:05AM (#22290148)
    To try to standardise how this is pronounced? eg. "wizzywig", "scuzzy" etc.

    'Zemp' would be a nice easy way of saying this.
    • by Anonymous Coward on Monday February 04 2008, @09:08AM (#22290160)
      "ex-em-pee-pee"?
    • I prefer the slavic czemp.
      • To the Chinese (AFAIK), "X" is pronounced like the English "sh", making this "shmpp", sort of like the sound of a sack of flour hitting the floor. Mind you, IANACL (Chinese linguist), nor someone who regularly handles large sacks of flour.
    • Re:Am I too late... (Score:5, Informative)

      by Bogtha (906264) on Monday February 04 2008, @09:16AM (#22290224)

      A lot of people pronounce it "Jabber". The name "XMPP" arose when they were moving it through the IETF standardisation process.

      • I'm looking at you, Pidgin [pidgin.im]. The account setup list doesn't even hint that XMPP is AKA jabber. That's self destructive pedantry right there.
        • Re:Am I too late... (Score:5, Informative)

          by TheRaven64 (641858) on Monday February 04 2008, @09:35AM (#22290476) Homepage Journal
          Speaking as someone whose frustrated with having to implement two code paths in a Jabber client - one for the standard and one for the compatibility with Pidgin - I'd be very happy for Pidgin users to stop connecting to the XMPP network.
          • by mhall119 (1035984) on Monday February 04 2008, @09:59AM (#22290902) Homepage Journal
            Wouldn't it be easier to just make the fix in Pidgin and submit a patch?
              • Re:Am I too late... (Score:4, Interesting)

                by mhall119 (1035984) on Monday February 04 2008, @10:50AM (#22291906) Homepage Journal
                Yeah, I'm not sure why it was modded funny or overrated.

                If the guy can write an XMPP client, and knows exactly what is wrong with Pidgin's implementation in order to "fix" his client to support it, then he should be more than capable of providing a fix to Pidgin's code, so that he doesn't have to keep fixing his code, and the all of us Pidgin users can benefit as well.
              • What exactly is the problem with Pidgin's XMPP/Jabber support? I use Pidgin for my MSN, AIM, and GTalk accounts.. and all three of them seem to work identically and without issue O_o

                In case it didn't come across clearly, I actually am interested in knowing what it does so poorly with Jabber, since as an end-user I really can't say that I see what the issue is =(

                Aikon-

  • by webword (82711) on Monday February 04 2008, @09:13AM (#22290200) Homepage
    One thing often overlooked by people is that is kills vendor lock. There are several government agencies which use a proprietary messenging system for instant messenging. Once you introduce true XMPP-compliant products, this kills the stranglehold that some of these vendors have. I'm sure this is true outside the government too.
    • by rindeee (530084) on Monday February 04 2008, @09:36AM (#22290490)
      Bzzzt...wrong. All IM in Gov/DoD is IRC based but moving to Jabber. This is public knowledge (not even U/FOUO). Lot's of commercial development going on around this if you Google around a bit. Some really cool stuff in the pipeline, especially where XMPP is concerned.
      • Even more so, but I didn't see anything that specified anything about the data that the protocol moves around.

        If I encrypt everything in a proprietary method (or with a proprietary key) and layer that into XMPP, you can still be locked in.

        It's kind of like saying because it's stored in XML it's open...
        <document>
        h5847uhlib43o8fvacgos8
        5rw4978hefw9348fqw34fg
        f438gqwoluiaf4687wgoasd
        </document>

        There's my open document, so you can read it. (No, I didn't include a DTD, but just
  • Performance (Score:3, Interesting)

    by ronark (803478) on Monday February 04 2008, @09:19AM (#22290242)
    I poked around their web site and could not find anything about the performance of the protocol. We do a lot of XML based communications at work and even for simple messaging, we find that there is definitely a drop off in speed compared to less verbose techniques. Not just in terms of transmission speed, but a lot of time is spent in the XML parsers. Perhaps this is a by-product of using the XML classes in .NET, but that's the technology we're stuck with. If anyone has some simple benchmarks or tests of XMPP, that would be interesting to see.
    • Re: (Score:3, Informative)

      Actually, ejabberd is probably one of the highest performing XMPP server. It can supports tens of thousands of simultaneous connections on a single node and can work in a cluster. That's for a single domain, but with distribution as described in the protocol, each web site is his own domain. As you see, the scalability is handled. And on the raw message performance, it can handle hundreds if not thousands of messages per second in a cluster.
    • Re: (Score:2, Insightful)

      XML definitely has lots of overhead and not needed bytes. However, it is easily expandable, easily readable (by human too) and can support lots of different kind of needs. Because XMPP is meant to be the universal IM protocol, it needs to be easily expandable. Normal, byte based protocols are harder to expand for all kinds of needs and you have to spend more time learning them, all individually.
  • A brief explanation (Score:4, Informative)

    by samael (12612) * <Andrew@Ducker.org.uk> on Monday February 04 2008, @09:23AM (#22290274) Homepage
    XMPP is what Jabber is based on. Jabber, for those that don't know, is a chat protocol. It's used by Google Chat, Livejournal Chat, and vast numbers of other chat systems - all of which are interoperable, because built in to the underlying system is the idea of message passing from server to server.

    If someone connected to a gmail jabber server sends a message to andrewducker@livejournal.com then google chat automatically connects to the livejournal jabber server and passes the message over.

    You can see how this could be extended to allow federations of application servers to communicate. Heck, you could reimplement email over this without massive difficulty.
    • by vga_init (589198) on Monday February 04 2008, @09:56AM (#22290848) Journal

      Heck, you could reimplement email over this without massive difficulty.

      In reality I think it was one of the first things they implemented in Jabber. A lot of clients, especially the hardcore jabber clients, have different messaging modes: one mode composes a single message, another mode opens up a little chatbox. If you examine the former, you'll find that it's exactly like e-mail, although really it's just a jabber message. Everybody ends up using the chatbox because that's what jabber is for, and many popular clients (eg Pidgin) have only that.

      In terms of server and protocol, in my opinion Jabber is fully able to do e-mail. In fact, I'm sure Jabber servers already have e-mail gateways. You just need a client that operates in a manner that implements e-mail as we are used to; for example, most clients just pop up offline messages as soon as you connect, or mark them on your roster instead of presenting you with a stored list of messages that you can manipulate mailbox style.

      • Re: (Score:3, Interesting)

        hell, toss in some kind of sms gateway and things really start to be interesting.

        only thing about using xmpp as a mail "replacement", can it do attachments?

        no, im not talking about file transfers, im talking about attaching the file to the xmpp message and have it be stored on the server if the recipient is offline at the moment.

        thats the one strong suit of mail vs sms or im right now, that you can fire and forget a file rather then having to watch for a person being available to accept it.

        still, xmpp will
  • WTF? (Score:2, Interesting)

    "that ejabberd XMPP server can be used to develop a distributed Twitter-like system."

    What the hell does that mean?

    I don't know whether to apply the "alphabetsoup" tag or the "stopturningnounsintoverbs" tag.
    • New Here (Score:4, Funny)

      by Chrisq (894406) on Monday February 04 2008, @09:33AM (#22290432)
      You should never let people know hen you don't understand an abbreviation. To impress the geeks you should express an opinon even if you don't understand what the hell TFA is going on about. Examples

      Could an ejabbered XMMP server really be said to be Twitter-like?

      I don't think that Twitter-like systems are the way to go here.

      That's really cool, we could really use a Twitter-like enjabered XMMP server here. It will revolutionise computing!

      • That's really cool, we could really use a Twitter-like enjabered XMMP server here. It will revolutionise computing!
        Bonus points for spelling the acronym wrong.
    • "that ejabberd XMPP server can be used to develop a distributed Twitter-like system."

      What the hell does that mean?

      I don't know whether to apply the "alphabetsoup" tag or the "stopturningnounsintoverbs" tag.

      Where do you see a verb that used to be a noun?
      ejabberd is an XMPP-server (that apache HTTP server -> that ejabberd XMPP server)
      "can be used to develop" should be obvious
      "a distributed": in this case this means that the network does not have a central server; the administration is distributed among the different XMPP-servers
      "Twitter-like system": a system like twitter (twitter.com afaik).

      Reading comprehension isn't your strong point, n'est-ce pas?

      • I have a problem with this sentence, but I can't put my finger on why...

        "XMPP has been designed since the beginning as an open technology for generalized XML routing."

        The best reasoning I have is the use of "has been designed since" ... ? It just sounds wrong.
  • I'm interested in how this protocol can help glue together applications for better/easier/simpler distributed computing

    With all the cheap servers with multi-cores we have, it seems like we all have the ability today to do distributed computing on our own grid.

    This site (and corresponding book) Enterprise Integration Patterns [enterprise...tterns.com] was very enlightening to me as I thought more about messaging and less about imperative programming.

    New technologies like Terracotta [terracotta.org] (for Java) make distribution simple, too. Eve

  • Thanks Google (Score:5, Insightful)

    by tmalone (534172) on Monday February 04 2008, @09:36AM (#22290496)
    Say what you will about Google and privacy concerns, but this is one case of Google doing something good. If they hadn't used Jabber/XMPP for Google Chat, I doubt that we would be seeing this level of interest from others. Just about everybody that I chat with uses Google Chat now, and so, for the first time they all use Jabber capable clients. This is a very good thing. If Google goes out of business, or just becomes unpopular, the infrastructure will now be there to somewhat effortlessly transition to a new dominant IM system that is based on open standards, instead of going back to the days of MSN, AOL, Yahoo, and ICQ, all fighting each other and their users.
  • by Skippyboy (978787) on Monday February 04 2008, @10:03AM (#22290980) Journal
    Please, for the love of god, can we come up with more useless acronyms?
    Ugh!
  • XMPP is a PITA (Score:4, Interesting)

    by MasterC (70492) <cmlburnett@[ ]il.com ['gma' in gap]> on Monday February 04 2008, @10:09AM (#22291098) Homepage
    Perhaps it is just the library I've used [jajcus.net] to develop an XMPP client, but I found implementing a client a complete PITA. Most specifically I couldn't find *anything* that simply stated you have to do X, Y, and Z to "do" XMPP. It required a lot of trial-and-error (lots of XMPP packet dumping) with another XMPP client to "subscribe" to someone else (aka get on their buddy list), to notify everyone you're online, and to send messages. All of the RFCs and JEPs are neat if you know what you're doing, but otherwise it just confuses the hell out of you trying to figure out exactly what it takes to make even the most basic client.

    XMPP also requires you to keep a fair amount of state information. Stuff I seemingly would think should be kept by the server. I suppose by making the server really dumb (basically a router) you really put the eXtensible in XMPP but at the cost of a more complex client.

    On its surface XMPP looks great: an open-source IM protocol!! Once you, the newb, get into it it gets really ugly.

    Then again, maybe I made a poor choice in a python package or I just happened to not find that key page with google that basically explains my problem away (and that's all it is is acclimation, it's not terribly difficult once you "get it"). Not even the wikipedia page [wikipedia.org] explains inner-working details of XMPP. And FWIW, I was *trying* to do what this story was saying XMPP is going to be so great for: server glue for a distributed web-based application. Where I sit now with what [little] I know: I completely disagree until someone wraps it all up into a super-easy library (which shouldn't be too hard).
    • Re:XMPP is a PITA (Score:5, Informative)

      by Enleth (947766) <enleth@enleth.com> on Monday February 04 2008, @10:27AM (#22291458) Homepage
      That's just this library. For example, the Smack API for Java is literally five lines of actual code to connect, announce the presence, load the roster and send a message. PyXMPP is quite low-level for a Python network library. Try XMPPy, much easier to work with if you need Python.
    • Re: (Score:3, Informative)

      Didn't understand how to use the library? The problem is, there are a ton of XMPP libraries out there for every language (the one you used is for javascript) and there must be an unwritten agreement that it's no use for each library to re-explain the workings of XMPP...

      The best way, I'm afraid, is to read the RFCs [xmpp.org] (mostly 3920 and 3921. There are updated, clearer drafts, 3920bis and 3921bis, a link away from that page) and XEPs [xmpp.org] (XMPP Extension Proposal). There's also a book [oreilly.com], but I heard that it's a bit outd
    • Re: (Score:3, Informative)

      There are a lot of very crappy (IMHO) libraries that do nothing but wrap the XML and present it to you in some form, leaving it entirely up to you to do, well, everything else.

      If you are enough of a programmer to deal with Jabber, which means being comfortable with XML, this is by far the easiest bit of working with Jabber. All the tricky bits like connecting and stuff are the harder bits worth writing a library for.

      Look for a library that handles:
      • Connecting to a server, with encryption (SSL or STARTTLS up
    • Re: (Score:3, Informative)

      We use jabber.py [sourceforge.net]. It hasn't changed in years, but our needs are pretty simple and it meets all of them easily. For example

      import jabber

      node = jabber.Message()
      node.setSubject('Getting hungry')
      node.setBody('Hi there. Lunch?')

      server = jabber.Client('ourserver.example.com')
      server.connect()
      server.auth('me', 'mypassword', 'Python Jabber client')

      for dest in recipients: node.setTo(dest); server.send(node)
      server.disconnect()

      Honestly, I don't know how you could make that a whole lot simpler.

      • Re: (Score:3, Interesting)

        Honestly, I don't know how you could make that a whole lot simpler.

        Yeah, that's brilliantly simple. Except when you have no clue what you're doing.

        Look at the documentation provided by jabberpy. It's computer-generated pydoc with pseudo code on making a simple client. Did they have time to write an entire jabber library but couldn't taken the 45 seconds you did to write actual code instead of pseudo code?

        Now when you take your bare example and try to receive messages then your simplicity isn't there any