SlideShare a Scribd company logo
Implementing Message Broker in Kubernetes
$whoami
 Suman Chakraborty - Senior Devops
Engineer @SAP Labs
 Community member & Speaker -
Docker Bangalore, CNCF Bangalore
group
 Tech Blogger on PaaS, Cloud-Native
& Microservices
https://www.linkedin.com/in/
schakraborty007/
@itsmesumanc
Agenda
 Need for a Message Broker ?
 The Solution - KubeMQ
 Messaging Patterns
 Kubernetes Messaging Use-Cases
 Demo
 KubeMQ vs Other Message Brokers
Need for a message broker ?
 Kubernetes has become the de-facto standard for building and managing
microservices, allowing seamless container management, scalability and service
extensibility.
 Managing a distributed architecture means processing high volume of traffic flow
of messages as each data model is disintegrated from the system.
 Problem arises, when the model grows (adding more data points, IoT hub,etc),
that impact the communication process across the system.
 Enterprises attempt to solve this communication gap in Kubernetes using a Point-
To-Pont connectivity system such as REST.
 However, REST is not effectively “cloud-native” in sense as its expensive, time-
consuming and requires additional maintenance.
 Building an effective cloud-native messaging broker system for k8s involves re-
architecting the stack and deploying a single focal point of communication for
better communication. This ensures that each service communicates with the
message queue broker in its own language
The Solution – KubeMQ
 Enterprise-grade message broker and message queue, scalable, high available and
secured
 Written in Golang, created as a small light-weight container (~ 30 MB)
 Can be deployed through Operator for full LM operation
 Supports both synchronous and asynchronous message relays – for ‘At Most Once
Delivery’ and ‘At Least Once Delivery models’
 Supports gRPC, Rest and WebSocket Transport protocols with TLS support
 Scales instantly and work with or without persistent volume
 Supported on all Kubernetes environments ( Vanilla installation, Rancher k3s, Microk8s
)
 Supports message masticating and smart routing, authentication and authorization
 No Message broker configuration needed (i.e., queues, exchanges)
 Supported development languages -> .Net, Java, Python, Go and NodeJS SDKs
 Observability support: Prometheus, Jeager, Zipkin, AWS X-Ray, Datadog, Google Stack,
Driver, HoneyComb
KubeMQ is part of CNCF landscape under Streaming and Messaging
Messaging Patterns
Kubernetes messaging use-cases
Multistage Pipeline :- This pattern processes the message between services in a coordinated
workflow.
Tasks Queue : - An A-synchronic pattern that has multiple producers<-> many consumers
relation to process a job. Each service is pulling messages from the queue to process it. The
sequence of processing the messages is not important as each worker takes the task from
the queue and process it in his own time.
Pub/Sub Stream: - This pattern streams data from many external sources (big data, IoT) and
process it in a dedicated service such as database, pipeline, machine learning, storage, etc.
Useful for multiple producers to small number of consumers relation.
Pub/Sub Real-time: - This A-Synchronic pattern is suitable for cases of a small number of
producers sending real-time data to many consumers. The message is sent to a channel,
where multiple services are subscribed to
Plans & Pricing
Message Broker implementation in Kubernetes
Advantages
 Robust messaging queue system
 Secured system
 Low DevOps maintenance system
 Well-connected ecosystem for logging in Kubernetes
 Rapid Deployment
 Configurable to handle change in cluster configuration
KubeMq vs other Message brokers
KubeMq Apache Kafka
Ultra-Simple & can be deployed by
any DevOps Member Level
Challenging, requires expert help
Lightweight and Small Footprint
Container (~90MB). No need for
additional components
Heavy and Resource-Demanding
(~2.1 GB) (three Kafka containers +
three ZooKeeper containers)
KubeMq is faster as its built on Go Kafka requires dedicated setup on
zookeeper, has a stateful setup
Effortless, developer-oriented, no
need to configure broker
components separately
Complex and dedicated setup
required (additional knowledge on
Java and Scala skillsets)
All messaging patterns are Only Async messaging patterns are
supported
Off-the-Shelf integrations, CNCF-
oriented
Requires additional configurations
and adjustments
References
 https://docs.kubemq.io/
 https://kubemq.io/blog/
THANK YOU

More Related Content

What's hot (19)

PPTX
Making communications across boundaries simple with NServiceBus
Particular Software
 
PPTX
Kafka presentation
Mohammed Fazuluddin
 
PPTX
Scalable micorservices based architecture
Ramakrishnan Seshagiri
 
PPTX
Azure Service Bus
Josh Lane
 
PPTX
kafka
Amikam Snir
 
PDF
ApacheCon Essential Elements of an Enterprise PaaS
Lakmal Warusawithana
 
PDF
WSO2Con Asia 2014 - Essential Elements of an Enterprise PaaS
WSO2
 
PPTX
Comparing CoAP vs MQTT
kellogh
 
PDF
Implementing Microservices with NATS
Apcera
 
PDF
Real-time Data Ingestion from Kafka to ClickHouse with Deterministic Re-tries...
HostedbyConfluent
 
PDF
NATS: Simple, Secure and Scalable Messaging For the Cloud Native Era
wallyqs
 
PPTX
Best Features of Azure Service Bus
Daniel Toomey
 
ODP
Stream processing using Kafka
Knoldus Inc.
 
PDF
Asynchronous Transaction Processing With Kafka as a Single Source of Truth - ...
HostedbyConfluent
 
PDF
Capacity Planning Your Kafka Cluster | Jason Bell, Digitalis
HostedbyConfluent
 
PDF
Why are we using kubernetes
Worapol Alex Pongpech, PhD
 
PDF
Psdot 15 performance analysis of cloud computing
ZTech Proje
 
PDF
Apache Kafka - Martin Podval
Martin Podval
 
PDF
Apache kafka
amarkayam
 
Making communications across boundaries simple with NServiceBus
Particular Software
 
Kafka presentation
Mohammed Fazuluddin
 
Scalable micorservices based architecture
Ramakrishnan Seshagiri
 
Azure Service Bus
Josh Lane
 
ApacheCon Essential Elements of an Enterprise PaaS
Lakmal Warusawithana
 
WSO2Con Asia 2014 - Essential Elements of an Enterprise PaaS
WSO2
 
Comparing CoAP vs MQTT
kellogh
 
Implementing Microservices with NATS
Apcera
 
Real-time Data Ingestion from Kafka to ClickHouse with Deterministic Re-tries...
HostedbyConfluent
 
NATS: Simple, Secure and Scalable Messaging For the Cloud Native Era
wallyqs
 
Best Features of Azure Service Bus
Daniel Toomey
 
Stream processing using Kafka
Knoldus Inc.
 
Asynchronous Transaction Processing With Kafka as a Single Source of Truth - ...
HostedbyConfluent
 
Capacity Planning Your Kafka Cluster | Jason Bell, Digitalis
HostedbyConfluent
 
Why are we using kubernetes
Worapol Alex Pongpech, PhD
 
Psdot 15 performance analysis of cloud computing
ZTech Proje
 
Apache Kafka - Martin Podval
Martin Podval
 
Apache kafka
amarkayam
 

Similar to Message Broker implementation in Kubernetes (20)

PDF
Messaging Connectivity in Hybrid Kubernetes Cloud Environments
DevOps.com
 
PPTX
Messaging-as-a-Service Rivieradev 2017
Ulf Lilleengen
 
PPTX
Picking a message queue
Vladislav Kirshtein
 
PDF
[OSC2016] マイクロサービスを支える MQ を考える
Ohyama Hiroyasu
 
PPTX
Beyond REST and RPC: Asynchronous Eventing and Messaging Patterns
Clemens Vasters
 
PDF
OSDC 2019 | Introducing Kudo – Kubernetes Operators the easy way by Matt Jarvis
NETWAYS
 
PDF
Ruby Microservices with RabbitMQ
Zoran Majstorovic
 
PPTX
Messaging without servers
SimonTimms1
 
PDF
Plone, rabbit mq and messaging that just works
Asko Soukka
 
PDF
Enterprise messaging
ColdFusionConference
 
PDF
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013
mumrah
 
PPT
Messaging For the Cloud and Microservices
Rob Davies
 
PDF
Microservices communication styles and event bus
Touraj Ebrahimi
 
PPTX
Presentation des différents broker de messages
Thierry Gayet
 
PPTX
Modern Distributed Messaging and RPC
Max Alexejev
 
PPTX
Captial One: Why Stream Data as Part of Data Transformation?
ScyllaDB
 
PPTX
Azure Messaging Services #1
Azure Riyadh User Group
 
PDF
WSO2 Product Release Webinar Introducing the WSO2 Message Broker
WSO2
 
PPT
Apache ActiveMQ - Enterprise messaging in action
dejanb
 
PPTX
Kafka Retry and DLQ
George Teo
 
Messaging Connectivity in Hybrid Kubernetes Cloud Environments
DevOps.com
 
Messaging-as-a-Service Rivieradev 2017
Ulf Lilleengen
 
Picking a message queue
Vladislav Kirshtein
 
[OSC2016] マイクロサービスを支える MQ を考える
Ohyama Hiroyasu
 
Beyond REST and RPC: Asynchronous Eventing and Messaging Patterns
Clemens Vasters
 
OSDC 2019 | Introducing Kudo – Kubernetes Operators the easy way by Matt Jarvis
NETWAYS
 
Ruby Microservices with RabbitMQ
Zoran Majstorovic
 
Messaging without servers
SimonTimms1
 
Plone, rabbit mq and messaging that just works
Asko Soukka
 
Enterprise messaging
ColdFusionConference
 
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013
mumrah
 
Messaging For the Cloud and Microservices
Rob Davies
 
Microservices communication styles and event bus
Touraj Ebrahimi
 
Presentation des différents broker de messages
Thierry Gayet
 
Modern Distributed Messaging and RPC
Max Alexejev
 
Captial One: Why Stream Data as Part of Data Transformation?
ScyllaDB
 
Azure Messaging Services #1
Azure Riyadh User Group
 
WSO2 Product Release Webinar Introducing the WSO2 Message Broker
WSO2
 
Apache ActiveMQ - Enterprise messaging in action
dejanb
 
Kafka Retry and DLQ
George Teo
 
Ad

More from Suman Chakraborty (14)

PDF
k8s troubleshooting-guide
Suman Chakraborty
 
PDF
Git lab 101 certificate suman chakraborty
Suman Chakraborty
 
PPTX
Turning Virtual Machines Cloud-Native using KubeVirt
Suman Chakraborty
 
PPTX
Cloud native buildpacks-cncf
Suman Chakraborty
 
PDF
Securing Devops_toolchain
Suman Chakraborty
 
PPTX
12 Ways Not to get 'Hacked' your Kubernetes Cluster
Suman Chakraborty
 
PPTX
Cloud native buildpacks_collabnix
Suman Chakraborty
 
PPTX
CI/CD Development in Kubernetes - Skaffold
Suman Chakraborty
 
PPTX
CI/CD Development in Kubernetes - Skaffold
Suman Chakraborty
 
PDF
Red hat Certified Openstack Administrator
Suman Chakraborty
 
PDF
Red Hat Certified System Administrator (RHCSA)
Suman Chakraborty
 
PDF
Red Hat Certified Engineer (RHCE)
Suman Chakraborty
 
PPTX
Demystifying k8s operators
Suman Chakraborty
 
PDF
XaaS-EEMM
Suman Chakraborty
 
k8s troubleshooting-guide
Suman Chakraborty
 
Git lab 101 certificate suman chakraborty
Suman Chakraborty
 
Turning Virtual Machines Cloud-Native using KubeVirt
Suman Chakraborty
 
Cloud native buildpacks-cncf
Suman Chakraborty
 
Securing Devops_toolchain
Suman Chakraborty
 
12 Ways Not to get 'Hacked' your Kubernetes Cluster
Suman Chakraborty
 
Cloud native buildpacks_collabnix
Suman Chakraborty
 
CI/CD Development in Kubernetes - Skaffold
Suman Chakraborty
 
CI/CD Development in Kubernetes - Skaffold
Suman Chakraborty
 
Red hat Certified Openstack Administrator
Suman Chakraborty
 
Red Hat Certified System Administrator (RHCSA)
Suman Chakraborty
 
Red Hat Certified Engineer (RHCE)
Suman Chakraborty
 
Demystifying k8s operators
Suman Chakraborty
 
Ad

Recently uploaded (20)

PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PPTX
Library_Management_System_PPT111111.pptx
nmtnissancrm
 
PDF
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PPTX
UI5con_2025_Accessibility_Ever_Evolving_
gerganakremenska1
 
PDF
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
PPTX
BB FlashBack Pro 5.61.0.4843 With Crack Free Download
cracked shares
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PDF
intro_to_cpp_namespace_robotics_corner.pdf
MohamedSaied877003
 
PPTX
Function & Procedure: Function Vs Procedure in PL/SQL
Shani Tiwari
 
PDF
IObit Driver Booster Pro 12.4.0.585 Crack Free Download
henryc1122g
 
PDF
Latest Capcut Pro 5.9.0 Crack Version For PC {Fully 2025
utfefguu
 
PPTX
Build a Custom Agent for Agentic Testing.pptx
klpathrudu
 
PDF
UITP Summit Meep Pitch may 2025 MaaS Rebooted
campoamor1
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PPTX
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
PPTX
iaas vs paas vs saas :choosing your cloud strategy
CloudlayaTechnology
 
PDF
Meet in the Middle: Solving the Low-Latency Challenge for Agentic AI
Alluxio, Inc.
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PDF
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
Library_Management_System_PPT111111.pptx
nmtnissancrm
 
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
UI5con_2025_Accessibility_Ever_Evolving_
gerganakremenska1
 
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
BB FlashBack Pro 5.61.0.4843 With Crack Free Download
cracked shares
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
intro_to_cpp_namespace_robotics_corner.pdf
MohamedSaied877003
 
Function & Procedure: Function Vs Procedure in PL/SQL
Shani Tiwari
 
IObit Driver Booster Pro 12.4.0.585 Crack Free Download
henryc1122g
 
Latest Capcut Pro 5.9.0 Crack Version For PC {Fully 2025
utfefguu
 
Build a Custom Agent for Agentic Testing.pptx
klpathrudu
 
UITP Summit Meep Pitch may 2025 MaaS Rebooted
campoamor1
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
iaas vs paas vs saas :choosing your cloud strategy
CloudlayaTechnology
 
Meet in the Middle: Solving the Low-Latency Challenge for Agentic AI
Alluxio, Inc.
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 

Message Broker implementation in Kubernetes

  • 2. $whoami  Suman Chakraborty - Senior Devops Engineer @SAP Labs  Community member & Speaker - Docker Bangalore, CNCF Bangalore group  Tech Blogger on PaaS, Cloud-Native & Microservices https://www.linkedin.com/in/ schakraborty007/ @itsmesumanc
  • 3. Agenda  Need for a Message Broker ?  The Solution - KubeMQ  Messaging Patterns  Kubernetes Messaging Use-Cases  Demo  KubeMQ vs Other Message Brokers
  • 4. Need for a message broker ?  Kubernetes has become the de-facto standard for building and managing microservices, allowing seamless container management, scalability and service extensibility.  Managing a distributed architecture means processing high volume of traffic flow of messages as each data model is disintegrated from the system.  Problem arises, when the model grows (adding more data points, IoT hub,etc), that impact the communication process across the system.  Enterprises attempt to solve this communication gap in Kubernetes using a Point- To-Pont connectivity system such as REST.  However, REST is not effectively “cloud-native” in sense as its expensive, time- consuming and requires additional maintenance.  Building an effective cloud-native messaging broker system for k8s involves re- architecting the stack and deploying a single focal point of communication for better communication. This ensures that each service communicates with the message queue broker in its own language
  • 5. The Solution – KubeMQ  Enterprise-grade message broker and message queue, scalable, high available and secured  Written in Golang, created as a small light-weight container (~ 30 MB)  Can be deployed through Operator for full LM operation  Supports both synchronous and asynchronous message relays – for ‘At Most Once Delivery’ and ‘At Least Once Delivery models’  Supports gRPC, Rest and WebSocket Transport protocols with TLS support  Scales instantly and work with or without persistent volume  Supported on all Kubernetes environments ( Vanilla installation, Rancher k3s, Microk8s )  Supports message masticating and smart routing, authentication and authorization  No Message broker configuration needed (i.e., queues, exchanges)  Supported development languages -> .Net, Java, Python, Go and NodeJS SDKs  Observability support: Prometheus, Jeager, Zipkin, AWS X-Ray, Datadog, Google Stack, Driver, HoneyComb
  • 6. KubeMQ is part of CNCF landscape under Streaming and Messaging
  • 8. Kubernetes messaging use-cases Multistage Pipeline :- This pattern processes the message between services in a coordinated workflow.
  • 9. Tasks Queue : - An A-synchronic pattern that has multiple producers<-> many consumers relation to process a job. Each service is pulling messages from the queue to process it. The sequence of processing the messages is not important as each worker takes the task from the queue and process it in his own time.
  • 10. Pub/Sub Stream: - This pattern streams data from many external sources (big data, IoT) and process it in a dedicated service such as database, pipeline, machine learning, storage, etc. Useful for multiple producers to small number of consumers relation.
  • 11. Pub/Sub Real-time: - This A-Synchronic pattern is suitable for cases of a small number of producers sending real-time data to many consumers. The message is sent to a channel, where multiple services are subscribed to
  • 14. Advantages  Robust messaging queue system  Secured system  Low DevOps maintenance system  Well-connected ecosystem for logging in Kubernetes  Rapid Deployment  Configurable to handle change in cluster configuration
  • 15. KubeMq vs other Message brokers KubeMq Apache Kafka Ultra-Simple & can be deployed by any DevOps Member Level Challenging, requires expert help Lightweight and Small Footprint Container (~90MB). No need for additional components Heavy and Resource-Demanding (~2.1 GB) (three Kafka containers + three ZooKeeper containers) KubeMq is faster as its built on Go Kafka requires dedicated setup on zookeeper, has a stateful setup Effortless, developer-oriented, no need to configure broker components separately Complex and dedicated setup required (additional knowledge on Java and Scala skillsets) All messaging patterns are Only Async messaging patterns are supported Off-the-Shelf integrations, CNCF- oriented Requires additional configurations and adjustments