O'Reilly logo

Hands-On Enterprise Java Microservices with Eclipse MicroProfile by Scott Stark, Antoine Sabot-Durand, Pavol Loffay, Jeff Mesnil, Heiko W. Rupp, Cesar Saavedra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

MicroProfile reactive messaging architecture

An application using reactive messaging is composed of CDI beans that consume, produce, and process messages. The messages can be internal to the application, or can be sent and received via external message brokers, as illustrated in the following diagram:

This figure shows a Kafka topic publishing messages to a first bean, which does some processing and publishes it to a second bean, which does its own processing/filtering, and finally publishes the message as an AMQP topic.

As we will see when we look into MP-RM examples, application beans contain methods annotated with @Incoming and/or @Outgoing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required