SlideShare a Scribd company logo
Microservices Integration Patterns with Kafka
Kasun Indrasiri
Director - Integration Architecture,
WSO2
Bay Area Apache Kafka Meetup
@ Lyft HQ, San Francisco
● Microservices Integration/composition?
● Microservices Composition Patterns
○ Active/Synchronous Composition
○ Reactive Composition
● Kafka for building Reactive Composition.
● Hybrid of active and reactive composition.
Overview
Rise of Cloud Native
Applications
Integrating
Microservices and
Cloud Native Apps
Integration is essential to build
any real world use case with
cloud native apps.
● APIs:
○ Commands - Actions, synchronous
○ Queries - Request for information, no state change, synchronous
● Events: Facts and notifications, asynchronous
● Streams: A sequence of events/data elements made available
over time
Microservices Integration/Composition
How services can interact over the network?
Active Composition/Orchestration Pattern
Synchronous/request-response communication
Consumer 1
API Service P API Service Q API Service R API Service S
Consumers
Consumer 2 Consumer 3
μ Service A
Proprietary
& Legacy
Systems
Web API /
SaaS
API Services/
Edge Services
Composite Service/
Integration Services
Core Services/
Atomic Services μ Service I
μ Service H
μ Service J
μ Service E
μ Service C
μ Service D
μ Service G
μ Service B
μ Service F
API
Management
● RESTful Services
● gRPC/HTTP2
● GraphQL
● WebSockets
● Thrift
Active Composition/Orchestration Pattern
Synchronous/request-response communication
Reactive Composition/Choreography Pattern
μ Service A μ Service B μ Service C
Event Bus
Application
Asynchronous event-driven communication
Produce Consume
Produce Consume
Produce Consume
Produce Consume
● Kafka
● AMQP
● JMS
Reactive Composition/Choreography Pattern
Asynchronous event-driven communication
Kafka in a nutshell
Source: “Microservices for Enterprise” https://goo.gl/p3rWF3
● Consumers from different
consumer groups subscribe
to the same topic.
● Consumers of a given CG
can only consume from one
partition.
Reactive Composition with Kafka
Publisher-subscriber
Source: “Microservices for Enterprise” https://goo.gl/p3rWF3
● Single consumer group and a
consumer per each partition.
● Polling and sequential
processing of consumer
records using offset.
Reactive Composition with Kafka
Single Consumer/Queuing
Source: “Microservices for Enterprise” https://goo.gl/p3rWF3
topic
Delivery Semantics: Exactly-Once/Atomic Broadcast
Reactive Composition with Kafka
● You can publish messages and they will be delivered one time
exactly by one or more receiving application.
● Producer side
○ Producer writes to the log but fails to get the ack. over network.
● Consumer side
○ Consumer consumes message from the log but fails before
updating its offset value.
Source: https://medium.com/@jaykreps/exactly-once-support-in-apache-kafka-55e1fdd0a35f
Delivery Semantics: Exactly-Once/Atomic Broadcast
Reactive Composition with Kafka
● Producer side
○ Idempotence : Producers can retry until it is successful
○ Kafka will detect the duplicates and remove them
● Consumer side
○ Store the offsets in the same DB as the derived state and update
both in a transaction.
○ Write both state updates and offsets together in a way that is
idempotent.
Source: https://medium.com/@jaykreps/exactly-once-support-in-apache-kafka-55e1fdd0a35f
Event Sourcing
● Persist each state changing events of an entity as a sequence
of immutable events.
● All such events are stored in an event bus and consumers can
derive the state by processing a sequence of events.
Shipping
● Stream Processing in Microservices
○ Services that execute a business logic against a sequence of
events/data elements made available over time.
● Kafka Streams : a client library for building stream processing
on top of Kafka.
Reactive Composition with Kafka
Kafka Streams
● Command Query Responsibility Segregation.
● Split the common data model into query and command
models.
● Kafka Stream - Interactive queries.
CQRS
Command
Source:
https://www.confluent.io/blog/event-sourcing-cqrs-stream-processing-apache-kafka-whats-connection/
Query
● Kafka does not look at your data but you need consistent
across your usage.
○ Avro, ProtoBuf, JSON, XML, ASN.1
○ Avro preferred schema for Kafka, Kafka schema registry
● Schema in practice
○ Associate an Avro schema with a topic.
○ Declare requirements for data that is produced into the topic
○ Provides the instructions on how to interpret data read from the topic
Using Schemas - Avro and Schema Registry
● A tool for scalably and reliably streaming data between
Apache Kafka and other data systems.
Reactive Composition with Kafka
Kafka Connect
Source: https://www.confluent.io/blog/announcing-kafka-connect-building-large-scale-low-latency-data-pipelines/
Kafka, Kafka Connect and Kafka Streams
Source: https://www.confluent.io/blog/hello-world-kafka-connect-kafka-streams/
Active
or
Reactive?
● Active Composition
○ Ideal for interactive services
○ Service are NOT autonomous
● Reactive Composition
○ Ideal for asynchronous
interactions
○ Composition logic is opaque
Hybrid of Active and Reactive Composition
Consumer 1
API Service P API Service Q API Service R API Service S
Consumers
Consumer 2 Consumer 3
μ Service A
Event Bus
Proprietary
& Legacy
Systems
Web API /
SaaS
API Services/
Edge Services
Composite Service/
Integration Services
Core Services/
Atomic Services μ Service I
μ Service H
μ Service J
μ Service E
μ Service C
μ Service D
μ Service G
μ Service B
API
Management
● Create a queryable materialized view using Kafka Streams or
a database with Kafka Connect.
Hybrid composition
Bridging request-response and event driven messaging
Source: https://github.com/confluentinc/kafka-streams-examples/tree/5.0.0-post/src/main/java/io/confluent/examples/streams/microservices
● A queryable materialized view using Kafka Streams’
interactive queries.
Hybrid composition
Bridging request-response and event driven messaging
Implementation Technologies
● Java
○ All of the Kafka, Streams and Connect APIs are supported.
○ Confluent microservices example.
● Go, Python, .NET
● Ballerina (ballerina.io)
○ Cloud-native programming languages that makes it easy to write
microservices that integrate APIs.
https://ballerina.io/learn/by-guide/messaging-with-kafka/
● Integration Frameworks: Apache Camel, Spring Boot, WSO2
Integrator etc.
THANK YOU
Kasun Indrasiri
kasun@apache.org

More Related Content

PPTX
Introduction to Apache Kafka
AIMDek Technologies
 
PPTX
Kafka 101
Clement Demonchy
 
PPTX
Kafka presentation
Mohammed Fazuluddin
 
PPTX
Microservices in the Apache Kafka Ecosystem
confluent
 
PDF
When NOT to use Apache Kafka?
Kai Wähner
 
ODP
Introduction to Kafka connect
Knoldus Inc.
 
PDF
Real-Life Use Cases & Architectures for Event Streaming with Apache Kafka
Kai Wähner
 
PPTX
Kafka Tutorial - Introduction to Apache Kafka (Part 1)
Jean-Paul Azar
 
Introduction to Apache Kafka
AIMDek Technologies
 
Kafka 101
Clement Demonchy
 
Kafka presentation
Mohammed Fazuluddin
 
Microservices in the Apache Kafka Ecosystem
confluent
 
When NOT to use Apache Kafka?
Kai Wähner
 
Introduction to Kafka connect
Knoldus Inc.
 
Real-Life Use Cases & Architectures for Event Streaming with Apache Kafka
Kai Wähner
 
Kafka Tutorial - Introduction to Apache Kafka (Part 1)
Jean-Paul Azar
 

What's hot (20)

PPTX
Apache Kafka Best Practices
DataWorks Summit/Hadoop Summit
 
PPTX
How to Lock Down Apache Kafka and Keep Your Streams Safe
confluent
 
PDF
Apache Kafka - Martin Podval
Martin Podval
 
PDF
Apache Kafka
Diego Pacheco
 
PDF
Apache Kafka vs. Integration Middleware (MQ, ETL, ESB)
Kai Wähner
 
PPTX
Introduction to KSQL: Streaming SQL for Apache Kafka®
confluent
 
PDF
Getting Started with Kubernetes
VMware Tanzu
 
PDF
Combine Framework
Cleveroad
 
PDF
Apache kafka
NexThoughts Technologies
 
PDF
A Tour of Combine
Vy-Shane Xie
 
PPTX
Rtf v2 ingress muleSoft meetup self managed kubernetes
Sandeep Deshmukh
 
PPTX
Kafka Tutorial - basics of the Kafka streaming platform
Jean-Paul Azar
 
PDF
Fundamentals of Apache Kafka
Chhavi Parasher
 
ODP
Stream processing using Kafka
Knoldus Inc.
 
PPTX
Kafka and Avro with Confluent Schema Registry
Jean-Paul Azar
 
PPTX
kafka
Amikam Snir
 
PPTX
Apache kafka
Viswanath J
 
PPTX
Spring Boot+Kafka: the New Enterprise Platform
VMware Tanzu
 
PDF
Kafka 101 and Developer Best Practices
confluent
 
PPTX
Apache Flink and what it is used for
Aljoscha Krettek
 
Apache Kafka Best Practices
DataWorks Summit/Hadoop Summit
 
How to Lock Down Apache Kafka and Keep Your Streams Safe
confluent
 
Apache Kafka - Martin Podval
Martin Podval
 
Apache Kafka
Diego Pacheco
 
Apache Kafka vs. Integration Middleware (MQ, ETL, ESB)
Kai Wähner
 
Introduction to KSQL: Streaming SQL for Apache Kafka®
confluent
 
Getting Started with Kubernetes
VMware Tanzu
 
Combine Framework
Cleveroad
 
A Tour of Combine
Vy-Shane Xie
 
Rtf v2 ingress muleSoft meetup self managed kubernetes
Sandeep Deshmukh
 
Kafka Tutorial - basics of the Kafka streaming platform
Jean-Paul Azar
 
Fundamentals of Apache Kafka
Chhavi Parasher
 
Stream processing using Kafka
Knoldus Inc.
 
Kafka and Avro with Confluent Schema Registry
Jean-Paul Azar
 
Apache kafka
Viswanath J
 
Spring Boot+Kafka: the New Enterprise Platform
VMware Tanzu
 
Kafka 101 and Developer Best Practices
confluent
 
Apache Flink and what it is used for
Aljoscha Krettek
 
Ad

Similar to Microservices Integration Patterns with Kafka (20)

PPTX
Microservices in a Streaming World
Hans Jespersen
 
PPTX
Kafka eos
Nitin Kumar
 
PDF
Building a Streaming Platform with Kafka
confluent
 
PDF
GR8ConfUS 2018 - High Scalable Streaming Microservices with Kafka Streams
Roberto Pérez Alcolea
 
PDF
Kafka Vienna Meetup 020719
Patrik Kleindl
 
PDF
AI&BigData Lab 2016. Сарапин Виктор: Размер имеет значение: анализ по требова...
GeeksLab Odessa
 
PPTX
Reducing Microservice Complexity with Kafka and Reactive Streams
jimriecken
 
PDF
Building Microservices with Apache Kafka by Colin McCabe
Data Con LA
 
PDF
Building Event Driven (Micro)services with Apache Kafka
Guido Schmutz
 
PDF
Streaming Analytics unit 2 notes for engineers
ManjuAppukuttan2
 
PDF
10 essentials steps for kafka streaming services
inovia
 
PDF
Building event-driven (Micro)Services with Apache Kafka Ecosystem
Guido Schmutz
 
PDF
Leveraging Microservice Architectures & Event-Driven Systems for Global APIs
confluent
 
PPSX
Event Sourcing & CQRS, Kafka, Rabbit MQ
Araf Karsh Hamid
 
PDF
Kafka Connect & Kafka Streams/KSQL - the ecosystem around Kafka
Guido Schmutz
 
PPTX
Gluecon - Kafka and the service mesh
Gwen (Chen) Shapira
 
PDF
Cloud Native London 2019 Faas composition using Kafka and cloud-events
Neil Avery
 
PPTX
Event Driven Architectures
arconsis
 
PDF
Event Driven Architectures
Dimosthenis Botsaris
 
PDF
Apache Kafka as Event Streaming Platform for Microservice Architectures
Kai Wähner
 
Microservices in a Streaming World
Hans Jespersen
 
Kafka eos
Nitin Kumar
 
Building a Streaming Platform with Kafka
confluent
 
GR8ConfUS 2018 - High Scalable Streaming Microservices with Kafka Streams
Roberto Pérez Alcolea
 
Kafka Vienna Meetup 020719
Patrik Kleindl
 
AI&BigData Lab 2016. Сарапин Виктор: Размер имеет значение: анализ по требова...
GeeksLab Odessa
 
Reducing Microservice Complexity with Kafka and Reactive Streams
jimriecken
 
Building Microservices with Apache Kafka by Colin McCabe
Data Con LA
 
Building Event Driven (Micro)services with Apache Kafka
Guido Schmutz
 
Streaming Analytics unit 2 notes for engineers
ManjuAppukuttan2
 
10 essentials steps for kafka streaming services
inovia
 
Building event-driven (Micro)Services with Apache Kafka Ecosystem
Guido Schmutz
 
Leveraging Microservice Architectures & Event-Driven Systems for Global APIs
confluent
 
Event Sourcing & CQRS, Kafka, Rabbit MQ
Araf Karsh Hamid
 
Kafka Connect & Kafka Streams/KSQL - the ecosystem around Kafka
Guido Schmutz
 
Gluecon - Kafka and the service mesh
Gwen (Chen) Shapira
 
Cloud Native London 2019 Faas composition using Kafka and cloud-events
Neil Avery
 
Event Driven Architectures
arconsis
 
Event Driven Architectures
Dimosthenis Botsaris
 
Apache Kafka as Event Streaming Platform for Microservice Architectures
Kai Wähner
 
Ad

More from Kasun Indrasiri (17)

PPTX
Adaptive and Iterative Integration for Microservices and Cloud Native Archite...
Kasun Indrasiri
 
PDF
Microservices for Enterprises
Kasun Indrasiri
 
PDF
Bridging Microservices, APIs and Integration
Kasun Indrasiri
 
PDF
Integration Microservices
Kasun Indrasiri
 
PPTX
The Role of Enterprise Integration in Digital Transformation
Kasun Indrasiri
 
PDF
Deep-dive into WSO2 ESB 5.0
Kasun Indrasiri
 
PDF
Microintegration
Kasun Indrasiri
 
PDF
Microservices in Practice
Kasun Indrasiri
 
PPTX
Reactive Programming in Java 8 with Rx-Java
Kasun Indrasiri
 
PPT
WSO2-ESB - The backbone of Enterprise Integration
Kasun Indrasiri
 
PPTX
Introduction to WSO2 Integration Platform
Kasun Indrasiri
 
PPTX
WSO2 Gateway
Kasun Indrasiri
 
PPTX
The Middleware technology that connects the enterprise
Kasun Indrasiri
 
PDF
API, Integration, and SOA Convergence
Kasun Indrasiri
 
PDF
The Past, Present and Future of Enterprise Integration
Kasun Indrasiri
 
PPTX
WSO2 ESB - The Backbone of Integration
Kasun Indrasiri
 
PPTX
Connected Retail
Kasun Indrasiri
 
Adaptive and Iterative Integration for Microservices and Cloud Native Archite...
Kasun Indrasiri
 
Microservices for Enterprises
Kasun Indrasiri
 
Bridging Microservices, APIs and Integration
Kasun Indrasiri
 
Integration Microservices
Kasun Indrasiri
 
The Role of Enterprise Integration in Digital Transformation
Kasun Indrasiri
 
Deep-dive into WSO2 ESB 5.0
Kasun Indrasiri
 
Microintegration
Kasun Indrasiri
 
Microservices in Practice
Kasun Indrasiri
 
Reactive Programming in Java 8 with Rx-Java
Kasun Indrasiri
 
WSO2-ESB - The backbone of Enterprise Integration
Kasun Indrasiri
 
Introduction to WSO2 Integration Platform
Kasun Indrasiri
 
WSO2 Gateway
Kasun Indrasiri
 
The Middleware technology that connects the enterprise
Kasun Indrasiri
 
API, Integration, and SOA Convergence
Kasun Indrasiri
 
The Past, Present and Future of Enterprise Integration
Kasun Indrasiri
 
WSO2 ESB - The Backbone of Integration
Kasun Indrasiri
 
Connected Retail
Kasun Indrasiri
 

Recently uploaded (20)

PDF
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
PDF
Solar Panel Installation Guide – Step By Step Process 2025.pdf
CRMLeaf
 
PDF
Protecting the Digital World Cyber Securit
dnthakkar16
 
PDF
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
PPTX
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
PPTX
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pptx
Certivo Inc
 
PPTX
Presentation of Computer CLASS 2 .pptx
darshilchaudhary558
 
PDF
Microsoft Teams Essentials; The pricing and the versions_PDF.pdf
Q-Advise
 
PPTX
AIRLINE PRICE API | FLIGHT API COST |
philipnathen82
 
PDF
Micromaid: A simple Mermaid-like chart generator for Pharo
ESUG
 
PDF
Appium Automation Testing Tutorial PDF: Learn Mobile Testing in 7 Days
jamescantor38
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PDF
Become an Agentblazer Champion Challenge
Dele Amefo
 
PDF
The Role of Automation and AI in EHS Management for Data Centers.pdf
TECH EHS Solution
 
PPTX
Save Business Costs with CRM Software for Insurance Agents
Insurance Tech Services
 
PDF
Build Multi-agent using Agent Development Kit
FadyIbrahim23
 
PDF
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pdf
Certivo Inc
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PPTX
EU POPs Limits & Digital Product Passports Compliance Strategy 2025.pptx
Certivo Inc
 
PPTX
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
Solar Panel Installation Guide – Step By Step Process 2025.pdf
CRMLeaf
 
Protecting the Digital World Cyber Securit
dnthakkar16
 
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pptx
Certivo Inc
 
Presentation of Computer CLASS 2 .pptx
darshilchaudhary558
 
Microsoft Teams Essentials; The pricing and the versions_PDF.pdf
Q-Advise
 
AIRLINE PRICE API | FLIGHT API COST |
philipnathen82
 
Micromaid: A simple Mermaid-like chart generator for Pharo
ESUG
 
Appium Automation Testing Tutorial PDF: Learn Mobile Testing in 7 Days
jamescantor38
 
Exploring AI Agents in Process Industries
amoreira6
 
Become an Agentblazer Champion Challenge
Dele Amefo
 
The Role of Automation and AI in EHS Management for Data Centers.pdf
TECH EHS Solution
 
Save Business Costs with CRM Software for Insurance Agents
Insurance Tech Services
 
Build Multi-agent using Agent Development Kit
FadyIbrahim23
 
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pdf
Certivo Inc
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
EU POPs Limits & Digital Product Passports Compliance Strategy 2025.pptx
Certivo Inc
 
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 

Microservices Integration Patterns with Kafka

  • 1. Microservices Integration Patterns with Kafka Kasun Indrasiri Director - Integration Architecture, WSO2 Bay Area Apache Kafka Meetup @ Lyft HQ, San Francisco
  • 2. ● Microservices Integration/composition? ● Microservices Composition Patterns ○ Active/Synchronous Composition ○ Reactive Composition ● Kafka for building Reactive Composition. ● Hybrid of active and reactive composition. Overview
  • 3. Rise of Cloud Native Applications
  • 4. Integrating Microservices and Cloud Native Apps Integration is essential to build any real world use case with cloud native apps.
  • 5. ● APIs: ○ Commands - Actions, synchronous ○ Queries - Request for information, no state change, synchronous ● Events: Facts and notifications, asynchronous ● Streams: A sequence of events/data elements made available over time Microservices Integration/Composition How services can interact over the network?
  • 6. Active Composition/Orchestration Pattern Synchronous/request-response communication Consumer 1 API Service P API Service Q API Service R API Service S Consumers Consumer 2 Consumer 3 μ Service A Proprietary & Legacy Systems Web API / SaaS API Services/ Edge Services Composite Service/ Integration Services Core Services/ Atomic Services μ Service I μ Service H μ Service J μ Service E μ Service C μ Service D μ Service G μ Service B μ Service F API Management
  • 7. ● RESTful Services ● gRPC/HTTP2 ● GraphQL ● WebSockets ● Thrift Active Composition/Orchestration Pattern Synchronous/request-response communication
  • 8. Reactive Composition/Choreography Pattern μ Service A μ Service B μ Service C Event Bus Application Asynchronous event-driven communication Produce Consume Produce Consume Produce Consume Produce Consume
  • 9. ● Kafka ● AMQP ● JMS Reactive Composition/Choreography Pattern Asynchronous event-driven communication
  • 10. Kafka in a nutshell Source: “Microservices for Enterprise” https://goo.gl/p3rWF3
  • 11. ● Consumers from different consumer groups subscribe to the same topic. ● Consumers of a given CG can only consume from one partition. Reactive Composition with Kafka Publisher-subscriber Source: “Microservices for Enterprise” https://goo.gl/p3rWF3
  • 12. ● Single consumer group and a consumer per each partition. ● Polling and sequential processing of consumer records using offset. Reactive Composition with Kafka Single Consumer/Queuing Source: “Microservices for Enterprise” https://goo.gl/p3rWF3 topic
  • 13. Delivery Semantics: Exactly-Once/Atomic Broadcast Reactive Composition with Kafka ● You can publish messages and they will be delivered one time exactly by one or more receiving application. ● Producer side ○ Producer writes to the log but fails to get the ack. over network. ● Consumer side ○ Consumer consumes message from the log but fails before updating its offset value. Source: https://medium.com/@jaykreps/exactly-once-support-in-apache-kafka-55e1fdd0a35f
  • 14. Delivery Semantics: Exactly-Once/Atomic Broadcast Reactive Composition with Kafka ● Producer side ○ Idempotence : Producers can retry until it is successful ○ Kafka will detect the duplicates and remove them ● Consumer side ○ Store the offsets in the same DB as the derived state and update both in a transaction. ○ Write both state updates and offsets together in a way that is idempotent. Source: https://medium.com/@jaykreps/exactly-once-support-in-apache-kafka-55e1fdd0a35f
  • 15. Event Sourcing ● Persist each state changing events of an entity as a sequence of immutable events. ● All such events are stored in an event bus and consumers can derive the state by processing a sequence of events. Shipping
  • 16. ● Stream Processing in Microservices ○ Services that execute a business logic against a sequence of events/data elements made available over time. ● Kafka Streams : a client library for building stream processing on top of Kafka. Reactive Composition with Kafka Kafka Streams
  • 17. ● Command Query Responsibility Segregation. ● Split the common data model into query and command models. ● Kafka Stream - Interactive queries. CQRS Command Source: https://www.confluent.io/blog/event-sourcing-cqrs-stream-processing-apache-kafka-whats-connection/ Query
  • 18. ● Kafka does not look at your data but you need consistent across your usage. ○ Avro, ProtoBuf, JSON, XML, ASN.1 ○ Avro preferred schema for Kafka, Kafka schema registry ● Schema in practice ○ Associate an Avro schema with a topic. ○ Declare requirements for data that is produced into the topic ○ Provides the instructions on how to interpret data read from the topic Using Schemas - Avro and Schema Registry
  • 19. ● A tool for scalably and reliably streaming data between Apache Kafka and other data systems. Reactive Composition with Kafka Kafka Connect Source: https://www.confluent.io/blog/announcing-kafka-connect-building-large-scale-low-latency-data-pipelines/
  • 20. Kafka, Kafka Connect and Kafka Streams Source: https://www.confluent.io/blog/hello-world-kafka-connect-kafka-streams/
  • 21. Active or Reactive? ● Active Composition ○ Ideal for interactive services ○ Service are NOT autonomous ● Reactive Composition ○ Ideal for asynchronous interactions ○ Composition logic is opaque
  • 22. Hybrid of Active and Reactive Composition Consumer 1 API Service P API Service Q API Service R API Service S Consumers Consumer 2 Consumer 3 μ Service A Event Bus Proprietary & Legacy Systems Web API / SaaS API Services/ Edge Services Composite Service/ Integration Services Core Services/ Atomic Services μ Service I μ Service H μ Service J μ Service E μ Service C μ Service D μ Service G μ Service B API Management
  • 23. ● Create a queryable materialized view using Kafka Streams or a database with Kafka Connect. Hybrid composition Bridging request-response and event driven messaging Source: https://github.com/confluentinc/kafka-streams-examples/tree/5.0.0-post/src/main/java/io/confluent/examples/streams/microservices
  • 24. ● A queryable materialized view using Kafka Streams’ interactive queries. Hybrid composition Bridging request-response and event driven messaging
  • 25. Implementation Technologies ● Java ○ All of the Kafka, Streams and Connect APIs are supported. ○ Confluent microservices example. ● Go, Python, .NET ● Ballerina (ballerina.io) ○ Cloud-native programming languages that makes it easy to write microservices that integrate APIs. https://ballerina.io/learn/by-guide/messaging-with-kafka/ ● Integration Frameworks: Apache Camel, Spring Boot, WSO2 Integrator etc.