be reactive and micro with a microprofile stack€¦ · reactive rest client (jax-rs) server-sent...
TRANSCRIPT
![Page 1: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/1.jpg)
BEREACTIVEANDMICROWITHAMICROPROFILE
STACK
OndrejMihályi@omihalyi
![Page 2: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/2.jpg)
WHATDOWEWANT?
@OMihalyi
![Page 3: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/3.jpg)
thereshouldbeaPROBLEMtosolve
WHYDOWEWANTIT?
@OMihalyi
![Page 4: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/4.jpg)
BETTERUSEREXPERIENCE
updateswhenready,reducedwaitingerrorsraisedASAPuserscanreactfasteravoidsunnecessaryuserretries
@OMihalyi
![Page 5: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/5.jpg)
HANDLEHIGHLOADS
utilizeresourcesatmaximum(CPU)threadsaren'twastedbyblockingavoidblockingofnewrequests
@OMihalyi
![Page 6: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/6.jpg)
HANDLEMASSIVELOADS
scaletomorenodesmessagingtodistributetheload
@OMihalyi
![Page 7: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/7.jpg)
DON'TFORGETABOUTFAILURES
failfastandavoidwastemakesurefailuresarehandledfailureshappenalotmoreindistributedsystems
@OMihalyi
![Page 8: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/8.jpg)
WHATISMICROPROFILE?
open-sourcespecificationforJavamicroservices( )microprofile.io
@OMihalyi
![Page 9: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/9.jpg)
REACTIVESUPPORTINMICROPROFILE
AsynchronousREST(JAX-RS)CDIeventseasyFaultToleranceMonitoringviaMetrics
@OMihalyi
![Page 10: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/10.jpg)
WE'LLADDWHAT'SMISSING
RxJavahandlecallbacksanddatastreams
asynchronousFaultTolerance
React.jseasyupdatesonevents
@OMihalyi
![Page 11: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/11.jpg)
OURDEMOAPPLICATION
@OMihalyi
![Page 12: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/12.jpg)
DEMOSource:https://github.com/OndrejM-demonstrations/Reactive-and-Micro-
with-MicroProfile-and-Payara
@OMihalyi
![Page 13: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/13.jpg)
WE'LLADDMORE
JavaEE8reactiveRESTclient(JAX-RS)Server-SentEvents
KafkaJCAconnectorHazelcast
distributedcacheandotherstructuresNoSQLdistributeddatastore
@OMihalyi
![Page 14: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/14.jpg)
DEMO
@OMihalyi
![Page 15: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/15.jpg)
PAYARASERVER
MicroProfile,JavaEE,Hazelcast,CloudJCAConnectors,CDIeventbusdynamicclustering(suitableforcloud)fastdevelopmentadminconsolemonitoring
@OMihalyi
![Page 16: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/16.jpg)
PAYARAMICRO
APIsasinServer(exceptSOAP,remoteEJB)mostoffeaturesoftheServerexecutableJAR,<70MBeasiertoinstallandrunapps
commandline,mavenplugin
builduberJAR
@OMihalyi
![Page 17: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/17.jpg)
WHATTOAVOID
relyingonrequestscoperelyingonthreadlocalusingsynchronousCDIinterceptorsDon'tjumptoreactivebeforeneeded
@OMihalyi
![Page 18: BE REACTIVE AND MICRO WITH A MICROPROFILE STACK€¦ · reactive REST client (JAX-RS) Server-Sent Events Kafka JCA connector Hazelcast distributed cache and other structures NoSQL](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb926309efd964010324fd5/html5/thumbnails/18.jpg)
QUESTIONS?
Thankyou!
@OMihalyi