Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Java2 days -_be_reactive_and_micro_with_a_microprofile_stack

86 views

Published on

Be reactive and micro with a MicroProfile stack
https://www.payara.fish/

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Java2 days -_be_reactive_and_micro_with_a_microprofile_stack

  1. 1. BE REACTIVE AND MICRO WITH A MICROPROFILE STACK Ondro Mihályi @OMIHALYI
  2. 2. WHAT IS MICROPROFILE? open-source specification for Java microservices ( )microprofile.io @OMIHALYI
  3. 3. GOALS TO SOLVE Better user experience save resources/costs keep up with massive loads handle/recover from FAILURES @OMIHALYI
  4. 4. @OMIHALYI
  5. 5. REACTIVE IN A NUTSHELL Traditional - single thread @OMIHALYI
  6. 6. REACTIVE IN A NUTSHELL Reactive - not bound to a thread @OMIHALYI
  7. 7. REACTIVE IN A NUTSHELL Reactive - not bound to a thread @OMIHALYI
  8. 8. REACTIVE PIPELINE → incoming request → subscribe → process → publish (data/error) @OMIHALYI
  9. 9. REACTIVE SUPPORT IN MICROPROFILE 2.0 Reactive REST & SSE (JAX-RS) Async CDI events Monitoring via Metrics @OMIHALYI
  10. 10. JAX-RS @OMIHALYI
  11. 11. 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
  12. 12. WHAT'S MISSING? PROCESSING streams of messages connect suscribers to publishers PUBLISH and SUBSRIBE to message queues/topics connect decoupled publishers to subscribers @OMIHALYI
  13. 13. 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 release candidate draft API @OMIHALYI
  14. 14. WE'LL ADD MORE FROM JAVA EE 8 Message-Driven Beans via PUBLISH and SUBSRIBE to message queues/topics Kafka JCA connector @OMIHALYI
  15. 15. 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
  16. 16. 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
  17. 17. OUR DEMO APPLICATION @OMIHALYI
  18. 18. DEMO Source: https://github.com/OndrejM-demonstrations/Reactive-and-Micro- with-MicroProfile-and-Payara @OMIHALYI
  19. 19. FURTHER RESOURCES JCA Cloud Connectors: MicroProfile Reactive Operators: https://github.com/payara/Cloud- Connectors https://github.com/eclipse/microprofile- reactive-streams @OMIHALYI
  20. 20. THANK YOU! Ondro Mihalyi ( ) Working for Payara MicroProfile project member Eclipse Foundation and JCP member Czech JUG leader ondro.inginea.eu @OMIHALYI

×