Vertx – reactive toolkit
-
Upload
avi-saidian -
Category
Software
-
view
355 -
download
1
Transcript of Vertx – reactive toolkit
Get Reactive
Responsive Resilient Elastic Message Driven
asynchronous message-passing – loose couple location transparency Non-blocking – only consume resources while active
Vert.x – Reactive ToolkitAvi Saidian @HPE
Overview
Created by Tim Fox (VMWare) at 2011 Joined the Eclipse Foundation at 2013 June 24 2015 released version 3.0 October 8 – 3.1 is out
Reactive Frameworks
ReactiveX - http://reactivex.io/ Typesafe Akka Dropwizard Vertx Netflix OSS Others…
Key Features
Polyglot Java Javascript Ruby Groovy
Key Features
Verticles Basic execution unit Actor like model Always run in the same thread Can have many instances Classloader isolated Communicate over messaging BUS
Demo
Hello Polyglot JS:
Key Features
Event Bus Point To Point Publish/Subscribe Request/Reply Pass Strings, Buffer,
Primitives and JSON Support Custom
Types (codec)
Key Features
Ecosystem Lightweight vert.x core Web Data access (mongodb, redis, JDBS) Security (basic auth, jdbc auth, jwt, shiro) Reactive (based on RxJava)
Code ExamplesMy server code:
Code ExamplesMy JDBC code:
New In Vert.x 3.1
Vertx-sync - perform async operations in a synchronous way, but without blocking kernel threads.
Vertx-stomp - implementation of a Simple (or Streaming) Text Orientated Messaging Protocol
Vertx-shell - a command line interface for the Vert.x runtime
Next Release 3.2 – end of 2015.
Demo Time
High Availability Server Load Balancing RealTime event bus
Live Vertx Project
Mobile Apps Sentiment Analysis (MASA) Project: Async Collection Of Data
Get Comments Detect Language Persistency
Async Processing of Comments Sentiment Score Classify Informative Score Persistency
2 Data Flows
Start
Crawler
Get
Data
Identify Language
PersistSen
timent Score
Classify
Informative Scor
e
Update
Questions?
References
http://vertx.io/docs/ http://vertx.io/blog/ Source:
https://github.com/eclipse/vert.x https://github.com/vert-x3/vertx-examples/ https://github.com/vert-x3/
http://www.infoq.com/articles/vertx-3-tim-fox
Backup: Vert.x on Docker
There are vertx containers on Docker HUB: Vertx/vertx3 Vertx-exec