NEED OF MESSAGING SYSTEM
https://the-cool-fox.blogspot.com/
AGENDA
 Why Messaging System? – Problems without Messaging system
 What is a Messaging System?
 Types of Messaging Systems
 Examples of Messaging Systems
Application 1 Application 2
Database Server
INSERT READ
READ INSERT
Connecting applications
Application 1 Application 2
Database Server
INSERT READ
READ INSERT
Problem 1
Load on Database
Application 1 Application 2
Database Server
INSERT 1 READ 1
Problem 2
INSERT 2
INSERT N
*
*
READ 2
READ N
*
*
Time= 0
Time= 50
Time= N
Time= 0
Time= 5
Time= N
Unnecessary Reads
Time Lags
Application 1 Application 2
Database Server
INSERT 1 READ 1
Problem 3
INSERT 2
INSERT N
*
*
READ 2
READ N
*
*
10 MB 100 MB
10 GB
Increase in Database Size
Problem 4
Front End
Chat Server
Database Server
Security Systems
RealTime Monitoring
Complex Data pipelines
Complex Data pipelines
Solution
Messaging
System
What is Messaging System?
Messaging
System
Producer
Producer
Producer
Consumer
Consumer
Consumer
Messaging System provides a method of communication between software components
or applications
Uses Push-Push method rather than Push-Poll
A messaging system is a peer-to-peer facility: A messaging client can send
messages to, and receive messages from, any other client. Each client connects
to a messaging agent that provides facilities for creating, sending, receiving,
and reading messages. Solves complex data problem
It also allows asynchronous communication, so that sender doesn't have to wait
for the receiver to process the message. Solves problem of time lag,
unnecessary reads
Once message is consumed, message can be removed automatically. Solves
the storage problem
It also ensures reliable communication in case the receiver or the network isn’t
working properly, message doesn’t get lost
As different systems use different platforms and different languages so
messaging system provides a common paradigm independent of those
platforms and languages
What is Messaging System?
Messaging System
Messaging System
Point to Point Publish Subscribe
Types of Messaging System
• In a point-to-point system, messages are persisted in a queue.
• One or more receivers can read the messages from the queue, but a particular message can be read
by a maximum of one receiver only.
• Once a receiver reads a message in the queue, message disappears from that queue.
Messaging System- Point to Point
Phone call is an example of point to point
Messaging System- Point to Point
Example
• In the publish-subscribe system, messages are persisted in a topic.
• Unlike point-to-point system, consumers can subscribe to one or more topic and consume all the
messages in that topic.
• In the Publish-Subscribe system, message publishers are called producers and message subscribers are
called consumers.
Messaging System- Publish Subscribe
Radio Broadcast is example of Publish Subscribe
Messaging System- Publish Subscribe
Example
Messaging Systems
DishTV Point-to-Point
Chat Pub-Sub
Order Processing System Pub-Sub
Java Messaging System Point-to-Point
Examples of Messaging System
Visit Cool Fox for more information
https://the-cool-fox.blogspot.com/
Thanks for watching!

Why Messaging system?

  • 1.
    NEED OF MESSAGINGSYSTEM https://the-cool-fox.blogspot.com/
  • 2.
    AGENDA  Why MessagingSystem? – Problems without Messaging system  What is a Messaging System?  Types of Messaging Systems  Examples of Messaging Systems
  • 3.
    Application 1 Application2 Database Server INSERT READ READ INSERT Connecting applications
  • 4.
    Application 1 Application2 Database Server INSERT READ READ INSERT Problem 1 Load on Database
  • 5.
    Application 1 Application2 Database Server INSERT 1 READ 1 Problem 2 INSERT 2 INSERT N * * READ 2 READ N * * Time= 0 Time= 50 Time= N Time= 0 Time= 5 Time= N Unnecessary Reads Time Lags
  • 6.
    Application 1 Application2 Database Server INSERT 1 READ 1 Problem 3 INSERT 2 INSERT N * * READ 2 READ N * * 10 MB 100 MB 10 GB Increase in Database Size
  • 7.
    Problem 4 Front End ChatServer Database Server Security Systems RealTime Monitoring Complex Data pipelines
  • 8.
  • 9.
  • 10.
    What is MessagingSystem? Messaging System Producer Producer Producer Consumer Consumer Consumer Messaging System provides a method of communication between software components or applications Uses Push-Push method rather than Push-Poll
  • 11.
    A messaging systemis a peer-to-peer facility: A messaging client can send messages to, and receive messages from, any other client. Each client connects to a messaging agent that provides facilities for creating, sending, receiving, and reading messages. Solves complex data problem It also allows asynchronous communication, so that sender doesn't have to wait for the receiver to process the message. Solves problem of time lag, unnecessary reads Once message is consumed, message can be removed automatically. Solves the storage problem It also ensures reliable communication in case the receiver or the network isn’t working properly, message doesn’t get lost As different systems use different platforms and different languages so messaging system provides a common paradigm independent of those platforms and languages What is Messaging System?
  • 12.
    Messaging System Messaging System Pointto Point Publish Subscribe Types of Messaging System
  • 13.
    • In apoint-to-point system, messages are persisted in a queue. • One or more receivers can read the messages from the queue, but a particular message can be read by a maximum of one receiver only. • Once a receiver reads a message in the queue, message disappears from that queue. Messaging System- Point to Point
  • 14.
    Phone call isan example of point to point Messaging System- Point to Point Example
  • 15.
    • In thepublish-subscribe system, messages are persisted in a topic. • Unlike point-to-point system, consumers can subscribe to one or more topic and consume all the messages in that topic. • In the Publish-Subscribe system, message publishers are called producers and message subscribers are called consumers. Messaging System- Publish Subscribe
  • 16.
    Radio Broadcast isexample of Publish Subscribe Messaging System- Publish Subscribe Example
  • 17.
    Messaging Systems DishTV Point-to-Point ChatPub-Sub Order Processing System Pub-Sub Java Messaging System Point-to-Point Examples of Messaging System
  • 18.
    Visit Cool Foxfor more information https://the-cool-fox.blogspot.com/ Thanks for watching!