O'Reilly logo

Professional XMPP Programming with JavaScript® and jQuery by Jack Moffitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Deploying XMPP Applications

WHAT'S IN THIS CHAPTER?

  • Load balancing connection managers

  • Clustering XMPP servers

  • Distributing components

  • Reducing latency and serialization

  • Optimizing client side operations

Developing an application with XMPP is only the beginning. Once you have put the finishing touches on your latest creation, you'll likely want to share it with the world at large. Because the world is a big place, full of lots of potential users, you'll want to ensure that your application is deployed in such a way that it will scale and run as efficiently as possible.

You can scale your application in quite a few ways, both horizontally, spreading it across multiple machines, and vertically, optimizing the application and running it on better hardware. For example, many XMPP servers have a clustered operation mode, enabling more than one server to provide services under a single domain.

If your application has only modest amounts of users or traffic, feel free to skip this chapter. After all, you can always come back when your application becomes wildly popular.

GROWING HORIZONTALLY

Applications will often exceed the limit of resources available on a single machine. For some applications, this limit may be memory, and for others, the limit will be processor speed. Though adding more resources to the machine is an easy fix, there is a finite limit on how much can be added. Often it is better to scale horizontally by distributing the application over more than one physical machine. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required