Real-time Web Application Development using Vert.x 2.0

The real-time web is gaining momentum and this book provides the simplest way to jump on board. A beautifully clear tutorial on Vert.x, it helps you develop a real-time web application from the ground up.

Real-time Web Application Development using Vert.x 2.0

Starting
Tero Parviainen

The real-time web is gaining momentum and this book provides the simplest way to jump on board. A beautifully clear tutorial on Vert.x, it helps you develop a real-time web application from the ground up.
$23.99
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook
$29.99 p/month

Find out more

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781782167952
Paperback122 pages

Book Description

Vert.x is a platform for building highly networked and scalable applications on the Java Virtual Machine. Using just a few powerful building blocks, it provides a powerful framework that scales to a multitude of different usage scenarios. It is one of the few truly polyglot development platforms, providing seamless interoperability between components written in JavaScript, CoffeeScript, Java, Ruby, Python, and Groovy.

Real-time Web Application Development using Vert.x 2.0 will show you how to get up and running on the powerful Vert.x platform. Using a hands-on example of developing a mind map editor, this book shows you how to build a Vert.x application from the ground up, and on the way introduces all of the major building blocks of Vert.x, such as integrating with a database, polyglot development, and so on.

Real-time Web Application Development using Vert.x 2.0 will guide you step-by-step through building a Vert.x application so that you’ll be able to start building one of your own in no time. From initiation to scaling, you’ll develop a mind map editor application with real-time collaboration capabilities. As you go through the development process, you’ll get to know all the building blocks of Vert.x applications: Verticles, Worker Verticles, the Event Bus, and Modules. You’ll also see how Vert.x apps seamlessly reach into client devices by building a client application using the Vert.x Event Bus Bridge, Knockout.js, and D3.js.

Real-time Web Application Development using Vert.x 2.0 guides you through the whole Vert.x application development process, tying all of the important concepts together with a simple, realistic example application.

Table of Contents

Chapter 1: Getting Started with Vert.x
Installing Vert.x
Running Vert.x
Your first verticle – Hello world
A web server
Summary
Chapter 2: Developing a Vert.x Web Application
Adding a new verticle for mind map management
Implementing server-side mind map management
Bridging the event bus to clients
Adding the user interface
Verticles and concurrency
Summary
Chapter 3: Integrating with a Database
MongoDB
Installing MongoDB
Installing the Vert.x Mongo Persistor module
Implementing database integration for mind map management
Refactoring to remove duplication
Summary
Chapter 4: Real-time Communication
The mind map structure
Real-time interaction
The editor verticle
Deploying the editor verticle
The client
Testing the editor
Summary
Chapter 5: Polyglot Development and Modules
Vert.x modules and reuse
Creating a module
Deploying the module
Integrating the client
Summary
Chapter 6: Deploying and Scaling Vert.x
Deploying a Vert.x application
Scaling a Vert.x application
Summary

What You Will Learn

  • Set up a Vert.x development environment with ease
  • Organize application code into nice and tidy components using Verticles
  • Build browser-based clients for Vert.x apps using HTML5 and technologies like Knockout.js and D3.js
  • Integrate your Vert.x app with MongoDB to make your data persistent
  • Use the Vert.x Event Bus to add real-time collaboration features to your app
  • Seamlessly integrate components written in different programming languages so that you can use whatever language is the best fit for each problem
  • Organize your code into modules and distribute Vert.x libraries to your organization or to the open source community
  • Integrate Java libraries into your Vert.x application and tap into the vast Java library ecosystem
  • Scale your Vert.x application by tuning the deployment configuration of your Verticles

Authors

Table of Contents

Chapter 1: Getting Started with Vert.x
Installing Vert.x
Running Vert.x
Your first verticle – Hello world
A web server
Summary
Chapter 2: Developing a Vert.x Web Application
Adding a new verticle for mind map management
Implementing server-side mind map management
Bridging the event bus to clients
Adding the user interface
Verticles and concurrency
Summary
Chapter 3: Integrating with a Database
MongoDB
Installing MongoDB
Installing the Vert.x Mongo Persistor module
Implementing database integration for mind map management
Refactoring to remove duplication
Summary
Chapter 4: Real-time Communication
The mind map structure
Real-time interaction
The editor verticle
Deploying the editor verticle
The client
Testing the editor
Summary
Chapter 5: Polyglot Development and Modules
Vert.x modules and reuse
Creating a module
Deploying the module
Integrating the client
Summary
Chapter 6: Deploying and Scaling Vert.x
Deploying a Vert.x application
Scaling a Vert.x application
Summary

Book Details

ISBN 139781782167952
Paperback122 pages
Read More

Read More Reviews