Instant Vert.x [Instant]


This title is available as an eBook only
Instant Vert.x [Instant]
eBook: $14.99
Formats: PDF, PacktLib, ePub and Mobi formats
$12.74
save 15%!
Print & eBook also available on:
Learn in an Instant - Short, Fast, Focused
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

Book Details

Language : English
eBook : 54 pages
Release Date : August 2013
ISBN : 1783282916
ISBN 13 : 9781783282913
Author(s) : Simone Scarduzio
Topics and Technologies : All Books, Application Development, Instant, Java, Open Source, Web Development

Table of Contents

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

Simone Scarduzio

Simone Scarduzio is a backend software engineer at MPme, a mobile music startup based at the heart of "silicon roundabout" in London. His current quest is to make the MPme music search and recommendation engine as feature-rich and snappy as possible. At MPme, it is a functional requirement for the core services to respond with a very low latency, regardless of the traffic. If this constraint were not respected, the system would send irrelevant recommendations to the clients. In terms of systems architecture, this means everything needs to scale horizontally. That's why, any mobile client connecting to MPme, actually connects to a Vert.x application. The use of Vert.x at MPme is massive and growing: reverse TCP proxies, Web radio monitors, and internal and external REST APIs are an example of this. He has been involved in the Vert.x project since October 2012, as an early adopter. Countless development versions of Vert.x have crossed MPme servers in a continuous cycle of build, test, deploy, and feedback to the Vert.x team. Before MPme, he lived for 3 years in Finland. Here, he cut his teeth as a software developer working on distributed mobile messages-processing systems at Mavenir, for customers such as Vodafone, Telefonica, Airtel, Idea, and T-Mobile. The pleasure of discovery and exploration drives his relationship with all his main hobbies: technology, travelling, and food.
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.

Sorry, there are currently no downloads available for this title.

Frequently bought together

Instant Vert.x [Instant] +    Real-time Web Application Development using Vert.x 2.0 =
50% Off
the second eBook
Price for both: £17.25

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

What you will learn from this book

  • Create a simple yet efficient web server using RouteMatcher
  • Work out what language to use and when
  • Add a transport layer security (SSL) to TCP/HTTP servers and clients
  • Build an asynchronous REST client
  • Write a modern, cross-browser, event-driven web application
  • Discover the best way to cache content
  • Set up shared data
  • Set up a cluster of Vert.x nodes
  • Tweak cluster and shared data

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.

Approach

Get to grips with a new technology, understand what it is and what it can do for you, and then get to work with the most important features and tasks. This Instant book will get you started with Vert.x. You will learn everything you need to know to become an independent web application developer.

Who this book is for

This book is great for developers new to asynchronous programming. It’s assumed that you will have some experience in JavaScript and the use of terminal and HTML. Many of the same basic concepts of Node.js can be reused.

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