You are previewing Instant Vert.x.
O'Reilly logo
Instant Vert.x

Book Description

A kick-start for rapid development of asynchronous network applications using the Vert.x framework

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results

  • Implement parallel programming, without the hassle of traditional concurrency models

  • Find easy asynchronous API for networking, filesystems, message passing, and clustering

  • Interact with solid Java libraries such as JDBC and JPA from your modules written in any supported language through the eventbus

In Detail

In traditional concurrent programming, it’s hard to achieve accuracy and even harder to achieve performance. vert.x has a revolutionary approach that takes care of all the thread orchestration, message passing, and shared data in the framework. Deadlocks?Synchronization? Thread pool management? These are now problems of the past.

Instant vert.x Starter is a practical, hands-on guide that provides you with a number of clear, step-by-step examples, which will help you to get the best out of the vert.x platform and asynchronous programming in general.

This book gives an overview of the advantages of asynchronous programming, especially the vert.x concurrency model. You will learn how to properly set up your environment with all the necessary tools to get you going with the authentic JVM-polyglot experience with vert.x. After basic examples in JavaScript, Ruby, Python, Groovy, Java, we’ll dig deeper into more real tasks using JavaScript.

With Instant vert.x, you will learn everything you need to know to be an independent web application developer, ready to create real-world web applications in no time.

Table of Contents

  1. Instant Vert.x
    1. Instant Vert.x
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
    6. PacktLib.PacktPub.com
      1. Why Subscribe?
      2. Free Access for Packt account holders
    7. 1. Instant Vert.x
      1. So, what is Vert.x?
        1. Event-driven vs. thread-based applications
        2. Scale out effortlessly
        3. A new paradigm for distributed applications
        4. In the footsteps of Node.js and on the shoulders of Java
        5. Why the Java platform?
      2. Installation
        1. Step 1 – installing Java Development Kit (JDK)
        2. Step 2 – Jython (optional)
        3. Step 3 – JRuby (optional)
        4. Step 4 – installing Vert.x
        5. And that's it
      3. Quick start – creating your first web server
        1. Step 1 – fresh start
        2. Step 2 – creating the HTTP server
        3. Step 3 – running a Vert.x program
        4. Step 4 – generating a simple response
        5. Step 5 – getting more idiomatic
        6. Step 6 – serving static files, the asynchronous way
      4. Quick start – IRC-style chat with TCP server and event bus
        1. Step 1 – fresh start
        2. Step 2 – creating the TCP server
        3. Step 3 – adding a connect handler
        4. Step 4 – adding a data handler
        5. Step 5 – adding the event bus magic
        6. Step 6 – Organizing a more complex project
      5. Top 8 features you need to know about
        1. HTTP servers, HTTP clients, and event bus
          1. REST client (webclient.js)
          2. The web server (webserver.js)
        2. Transport layer security (SSL) for HTTP
        3. Asynchronous requests with SockJS-based EventBus bridge
        4. EventBus Bridge: breaking out of the request-response model
        5. Using all the cores – multiple instances and shared data
        6. Cache max size and eviction policies
        7. Scaling out – clustering
        8. Creating a module
        9. Installing third-party modules
      6. People and places you should get to know
        1. The official channels
        2. A glance under the hood
        3. Derivative work