O'Reilly logo

Real-time Web Application Development using Vert.x 2.0 by Tero Parviainen

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

Scaling a Vert.x application

Vert.x is a very efficient framework, and because of the asynchronous nature of Vert.x code, performance bottlenecks are much more likely to crop up in databases or other dependent systems. When you do need to scale the Vert.x application itself, the following techniques are available.

Verticle counts

In Chapter 5, Polyglot Development and Modules, when deploying the svg2png worker verticle, we deployed three instances of it. This is similar to setting up three concurrent worker threads for processing a task in a more traditional system. At most three instances of the same job can be running concurrently.

The same scaling technique is also available for non-worker verticles. For any verticle, we can specify the number ...

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