Real-time Web Application Development using Vert.x 2.0


Real-time Web Application Development using Vert.x 2.0
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
$20.39
save 15%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
$39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Get started with developing applications for the real-time web
  • From concept to deployment, learn the full development workflow of a real-time web application
  • Utilize the Java skills you already have while stepping up to the next level
  • Learn all the major building blocks of the Vert.x platform
  • Follow a hands-on tutorial with a running example

Book Details

Language : English
Paperback : 122 pages [ 235mm x 191mm ]
Release Date : September 2013
ISBN : 1782167951
ISBN 13 : 9781782167952
Author(s) : Tero Parviainen
Topics and Technologies : All Books, Application Development, Web Development, Open Source

Table of Contents

Preface
Chapter 1: Getting Started with Vert.x
Chapter 2: Developing a Vert.x Web Application
Chapter 3: Integrating with a Database
Chapter 4: Real-time Communication
Chapter 5: Polyglot Development and Modules
Chapter 6: Deploying and Scaling Vert.x
Index
  • Chapter 1: Getting Started with Vert.x
    • Installing Vert.x
      • Prerequisite – Java
        • Checking your version of Java
        • Obtaining Java
      • Obtaining a Vert.x distribution
      • OS X and Linux
      • Windows
    • Running Vert.x
      • Embedding 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
        • Listing mind maps
        • Saving a mind map
        • Deleting a mind map
        • The resulting code
      • Bridging the event bus to clients
        • The server
        • The client
        • Testing the bridge
      • Adding the user interface
        • Listing the mind maps
        • Creating a mind map
        • Deleting a mind map
      • 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
          • Requiring the Vert.x console
          • Listing mind maps
          • Finding a specific mind map
          • Saving a mind map
          • Deleting a mind map
        • Refactoring to remove duplication
        • Summary
        • Chapter 4: Real-time Communication
          • The mind map structure
          • Real-time interaction
            • Events
            • Commands
          • The editor verticle
            • The helper functions
            • The add node command handler
            • The rename node command handler
            • The delete node command handler
          • Deploying the editor verticle
          • The client
            • The mind map editor file
            • Updating the HTML
            • Opening the editor
            • Sending the commands
            • Handling events
            • Sharing the findNodeByKey function
            • Initializing the visualization
            • Rendering the visualization
            • Calling the render function
            • Styling the visualization
          • Testing the editor
          • Summary
            • Chapter 6: Deploying and Scaling Vert.x
              • Deploying a Vert.x application
                • Setting up an Ubuntu box
                • Setting up a user
                • Installing Java on the server
                • Installing MongoDB on the server
                • Setting up privileged ports
                • Installing Vert.x on the server
                • Making the application port configurable
                • Setting up the application on the server
                • Testing the setup
                • Setting up an upstart service
                • Deploying new versions
              • Scaling a Vert.x application
                • Verticle counts
                • Memory
                  • Clustering Vert.x
              • Summary

              Tero Parviainen

              Tero Parviainen has been building software professionally for about 12 years, mostly for the web and most of it with Java, Ruby, JavaScript, and Clojure. From large enterprise back-office systems to consumer mobile applications, he has worked in a variety of different environments. He currently works as an independent software maker, focusing mainly on software development contracting and training for several customers. He can be found on Twitter and GitHub as @teropa.
              Sorry, we don't have any reviews for this title yet.

              Code Downloads

              Download the code and support files for this book.


              Submit Errata

              Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

              Sample chapters

              You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

              Frequently bought together

              Real-time Web Application Development using Vert.x 2.0 +    Hadoop Beginner's Guide =
              50% Off
              the second eBook
              Price for both: £23.65

              Buy both these recommended eBooks together and get 50% off the cheapest eBook.

              What you will learn from this book

              • 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

              In Detail

              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.

              Approach

              A quick, clear, and concise tutorial-guide-based approach that helps you to develop a web application based on Vert.x.

              Who this book is for

              Real-time Web Application Development using Vert.x 2.0 is written for web developers who want to take the next step and dive into real-time web application development.This book uses JavaScript (and some Java) to introduce the Vert.x platform, so basic JavaScript knowledge is expected. If you’re planning to write your applications using some of the other Vert.x languages, all the techniques and concepts will translate to them directly. All you need to do is refer to the Vert.x API reference documentation to see the particular APIs for your language.

              Code Download and Errata
              Packt Anytime, Anywhere
              Register Books
              Print Upgrades
              eBook Downloads
              Video Support
              Contact Us
              Awards Voting Nominations Previous Winners
              Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
              Resources
              Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software