Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Go Reactive with Vert.x

Go Reactive with Vert.x

Digging into the microservices world? Considering reactive programming? Then you should learn more about Vert.x, a lightweight, fast, modular, high-performance, and unopinionated toolkit for building reactive applications on the JVM. Come to this session to see how we can use Vert.x to solve common business use cases for enterprises and how to deploy Vert.x applications packaged as containers in OpenShift.

Eder Ignatowicz

October 11, 2016
Tweet

More Decks by Eder Ignatowicz

Other Decks in Programming

Transcript

  1. Join developers.redhat.com 20 public class HelloWorldVerticle extends AbstractVerticle { …

    @Override public void start( Future<Void> fut ) { vertx.setPeriodic( 1000, l -> { vertx.eventBus() .publish( "hello-bus", new JsonObject( Json.encodePrettily( new Message( "HelloWorld Message: " + new Date() ))));} ); vertx.eventBus() .consumer( "hello-bus", m -> { JsonObject json = ( JsonObject ) m.body(); logger.info( "Receiving " + json.getString( "id" ) + " : " + json.getString( "name" ) );} ); } }
  2. System 1 … System n OpenShift R E S T

    A P I Vert.x Cluster R E S T C L I E N T Distributed Event Bus system.process.in Processor Verticle system.process.in system.process.out.x system.process.out.no_system Audit Verticle system.process.out.x system.process.out.no_system External System processing JS Bridge Verticle system.process.out.x system.process.in system.process.out.x system.process.in Log Verticle system.process.in
  3. System 1 … System n R E S T A

    P I Vert.x Cluster R E S T C L I E N T Distributed Event Bus system.process.in OpenShift
  4. System 1 … System n R E S T A

    P I Vert.x Cluster R E S T C L I E N T Distributed Event Bus system.process.in Processor Verticle system.process.in system.process.out.x system.process.out.no_system OpenShift
  5. System 1 … System n R E S T A

    P I Vert.x Cluster R E S T C L I E N T Distributed Event Bus system.process.in Processor Verticle system.process.in system.process.out.x system.process.out.no_system Audit Verticle system.process.out.x system.process.out.no_system External System processing OpenShift
  6. System 1 … System n R E S T A

    P I Vert.x Cluster R E S T C L I E N T Distributed Event Bus system.process.in Processor Verticle system.process.in system.process.out.x system.process.out.no_system Audit Verticle system.process.out.x system.process.out.no_system External System processing JS Bridge Verticle system.process.out.x system.process.in system.process.out.x system.process.in OpenShift
  7. System 1 … System n R E S T A

    P I Vert.x Cluster R E S T C L I E N T Distributed Event Bus system.process.in Processor Verticle system.process.in system.process.out.x system.process.out.no_system Audit Verticle system.process.out.x system.process.out.no_system External System processing JS Bridge Verticle system.process.out.x system.process.in system.process.out.x system.process.in Log Verticle system.process.in OpenShift