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 ...

Get Real-time Web Application Development using Vert.x 2.0 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.