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

Be Reactive and Micro with a MicroProfile Stack...

Be Reactive and Micro with a MicroProfile Stack (at Devoxx)

MicroProfile, RxJava, React.js - what else do you need to build lightweight but robust reactive systems efficiently with opensource tools? Maybe something for effective data processing and distributed persistence? You can have it too with Kafka and Hazelcast. Now let’s have a look at how to assemble all together in almost no time, using Payara Micro. You’ll learn how to use a couple of simple tools to build a highly efficient, scalable and robust system that can be evolved continuously to meet rapidly changing needs and increasing loads.

Ondro Mihályi

November 15, 2018
Tweet

More Decks by Ondro Mihályi

Other Decks in Programming

Transcript

  1. GOALS TO SOLVE Better user experience save resources/costs keep up

    with massive loads handle/recover from FAILURES @OMihalyi
  2. REACTIVE SUPPORT IN MICROPROFILE 2.0 Reactive REST & SSE (JAX-RS)

    Async CDI events Monitoring via Metrics @OMihalyi
  3. HOW MICROPROFILE FITS THE PIPELINE REACTIVE JAX-RS subscribe to REST

    requests and responses publish REST responses SERVER-SENT EVENTS (JAX-RS) - publish via HTTP ASYNC CDI EVENTS - publish to other components MONITORING via Metrics - publish metrics to external systems @OMihalyi
  4. WHAT'S MISSING? PROCESSING streams of messages connect suscribers to publishers

    PUBLISH and SUBSRIBE to message queues/topics connect decoupled publishers to subscribers @OMihalyi
  5. MORE TO COME IN MICROPROFILE PROCESSING streams of messages Reactive

    operators PUBLISH and SUBSRIBE to message queues/topics Reactive Messaging Bonus: Asynch. Fault Tolerance interceptors @OMihalyi
  6. WE'LL ADD MORE FROM JAVA EE 8 Message-Driven Beans via

    PUBLISH and SUBSRIBE to message queues/topics Kafka JCA connector @OMihalyi
  7. WE'LL FILL WHAT'S MISSING RxJava (Reactive Streams) PROCESSING streams of

    messages asynchronous Fault Tolerance React.js turn message stream into UI update @OMihalyi
  8. AND RUN WITH PAYARA MICRO JAVA EE and MICROPROFILE together

    executable JAR, <70 MB easy to run apps with no installation command line, maven plugin build uber JAR https://payara.fish @OMihalyi
  9. THANK YOU! Ondro Mihalyi ( ) Working for Payara MicroProfile

    project member Eclipse Foundation and JCP member Czech JUG leader ondro.inginea.eu @OMihalyi