+ All Categories
Home > Documents > The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in...

The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in...

Date post: 04-Aug-2021
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
25
Lior Nabat, CTO E-mail:[email protected] The Need for: Kubernetes Native Message Queue Broker Twitter:@lior_nabat
Transcript
Page 1: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

Lior Nabat, CTO E-mail:[email protected]

The Need for:Kubernetes Native Message Queue Broker

Twitter:@lior_nabat

Page 2: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

2www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

MQ

- Decoupling creates potential for massive amount of connections- Point to Point- No Multicast- No Queuing

The need for messaging in Kubernetes

4 services12 connections

8 services56 connections

8 services, 8 connections

Direct connection (such as HTTP/REST) With message queue

Page 3: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

3www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

The need for Kubernetes Native message queue (1)

• Robust messaging queue system

• Secured system

• Low DevOps maintenance

• Well-connected ecosystem for all Kubernetes services

• Rapid development and deployment

Kubernetes effectiveA messaging system cannot be effective if it is not native to Kubernetes. Enterprises must ensure that when implementing a message queue system, it is native to Kubernetes to leverage the advantages:

Page 4: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

4www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Ease of Use A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

The need for Kubernetes Native message queue (2)

• Dedicated IT experts is not needed

• Unifies operation workflows and development

• Saves costs

Page 5: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

5www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

The need for Kubernetes Native message queue (3)

• Security

• Double traffic

• Additional environment maintenance

• Additional operational overhead

• Enable ability to serve edge and small clusters

Integrated in the Kubernetes cluster and to the edgeUse the message queue inside the K8S cluster to avoid issues of

Page 6: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

6www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Cloud native integration

Cache Connector KubeMQ

Queues

EventsEvents Store

Commands Queries

SQL Connector

NoSQL Connector

Storage Connector

Search Connector

The need for Kubernetes Native message queue (4)

Page 7: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

7www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

The need for Kubernetes Native message queue (5)

• Multi-stage pipeline

• Task / Job Distributed Queue

• Streaming data workflows

• Pub/Sub in real time

• Application decoupling - microservices

Use casesSupporting most common use cases of the messaging in Kubernetes

Page 8: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

8www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Multistage Data Processing Pipeline

Page 9: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

9www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Task / Job Distributed Queue

Page 10: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

10www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Stream Messages Processing

Page 11: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

11www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Pub/Sub Realtime Messaging

Page 12: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

12www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Application decoupling / Microservices

Page 13: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

13www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Demo

Page 14: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

14www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Let’s look on Users domain

Register Create a user and get verification code

Verify Send verification code and activate user account

Login Login with credentials

Logout Logout from user account

Page 15: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

15www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

SQL Connector

Search Connector

Cache Connector

Kibana

Web API

The Setup

Monitor Point

Monitor Point

Monitor Point

Page 16: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

16www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

SQL Connector

Search Connector

Kibana

Web APINotification Event

History Event

Users Query

Register Flow

Page 17: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

17www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

SQL Connector

Search Connector

Kibana

Web APIHistory Event

Users Command

Verify Flow

Page 18: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

18www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

SQL Connector

Search Connector

Cache Connector

Kibana

Web APIHistory Event

Users Query

Cache Commands / Query

Login Flow

Page 19: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

19www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

SQL Connector

Search Connector

Cache Connector

Kibana

Web APIHistory Event

Users Query

Cache Commands / Query

Logout Flow

Page 20: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

20www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Users Service

History Service

Cache Service

Kibana

Web API

Let’s See Some Errors

Page 21: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

21

www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Migration to microservices environment

Companies with legacy IT infrastructure need

to gradually migrate to microservices or start

building new components separately.

Using a bridge to provide connectivity

between legacy on-prem monolithic and new

microservices architecture

This bridging capability enables gradual

migration by implementing a step-by-step

replacement of components from the old

environment or the creation of new services

that can still connect with the legacy

resources.

Page 22: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

22www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Demo

Page 23: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

23www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Migrating Financial Based app from MSMQ to Kubernetes

Page 24: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

24www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMq

Migration to AKS

Page 25: The need for message queue in Kubernetes (1) · 2020. 8. 31. · A message queue system in microservices architecture can save time, money, as long as it is super easy to use in Kubernetes

25www.kubemq.ioLior Nabat, CTO [email protected] Twitter: @KubeMqLior Nabat, CTO

KubeMQ is an enterprise grade message broker for Kubernetes

VISIT US AT: www.kubemq.ioCONTACT US AT: [email protected]

Thank you


Recommended