chapter two
This chapter covers:
- What verticles are
- How to write, configure, and deploy verticles
- The Vert.x threading model
- How to mix Vert.x and non-Vert.x threads
Put simply, a verticle is the fundamental processing unit in Vert.x. The role of a verticle is to encapsulate a technical functional unit for processing events, such as exposing an HTTP API and responding to requests, providing a repository interface on top of a database, or issuing requests to a third-party system. Much like components in other technologies like Enterprise Java Beans, verticles can be deployed, and they have a life cycle.
Asynchronous programming is key to building reactive applications, since they have to scale, and verticles are fundamental in Vert.x for structuring (asynchronous) event processing code and business logic.