Instant Vert.x [Instant]
|Print & eBook also available on:|
- 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 DetailsLanguage : 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 ContentsInstant 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?
- 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
Download the code and support files for this book.
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.
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 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.
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.
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