Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Which to Use ?
christian@redhat.com
@christianposta
ppatierno@redhat.com
@ppatierno
Send a message
Receive a message
Get my messages in order
Get them once and only once
Why dont we just pick the fastest
one and be done?
Safety guarantees Scalability
Recency Availability
Reliability Performance
JBoss AMQ
JBoss AMQ
Why ?
AMQP 1.0
is supported by AMQ 7 Broker
is THE protocol for AMQ 7 Interconnect
is supported by all AMQ 7 Clients
Maybe you have an application
with JMS/AMQP senders
but now you need a different way to consume
or a different feature (i.e. re-read stream)
Avoiding changes on the senders side
Bridging AMQP to Kafka
Senders
Kafka
Cluster
Sink endpoints Consumers
What about semantics
attach ([topic]) AMQP - Kafka [topic]
sende transfer () / disposition() / flow (credits) P0
r
attach ([topic]/group.id/[group.id])
P1
Attach a link on the Kafka [topic] address, specifying [group.id] for consumer only
QoS : settlement implies
waiting for Kafka acks from leaders/followers
and Kafka offsets commit
Flow : credits implies
sender can send on Kafka acks
paused/resumed Kafka consumer
and message structure ?
AMQ 7 Broker
Apache Kafka
Getting messages published by AMQP/JMS clients
Re-read the stream
from beginning
From a specific offset
AMQ
Filtering on messages
Using a selector on a message property
Request/reply :
Using store and forward
Using direct messaging
Demo : AMQP - Kafka
JMS/AMQP clients
AMQ 7 Interconnect
Apache Kafka
AMQP - Kafka Kafka Web UI App
Demo : filtering
JMS/AMQP receiver
AMQ 7 Interconnect
Filter : count % 2 = 0
AMQ 7 Broker
JMS/AMQP sender
count : <val>
Demo : request/reply
JMS server
Demo : material
linkedin.com/company/red-hat twitter.com/RedHatNews
youtube.com/user/RedHatVideos