Ably configuration plan
Backend
For those kafka topics mapped to ably
customer
channel; need to usecustomerId
askafka message key
. For those kafka topics mapped to ablyaccount
channel; need to useaccountId
askafka message key
.use
topic
as event typerequestId
and other metadata can be pass inkafka message header
Frontend
pass customerId in
_prepareAbly
map event type, example
customer_events_constants.dart
flow in FE side:
Infrastructure
need to add 3rd party plugin for message transformation.
Since official confluent message transformation does not support insert field from header, we use additional plugin.
For this usecase, we want to addrequestId
from kafka message header to message field.
plugin: https://github.com/jcustenborder/kafka-connect-transform-common
Related articles
Ably Kafka Connector
Setup Ably connector with distributed mode