What is the difference between SQS vs RabbitMQ vs Memphis?
Avatar Idan Asulin
Apr 16, 2023
14 15 16
What is the difference between RabbitMQ vs ZeroMQ vs Memphis?
Avatar Idan Asulin
Apr 16, 2023
10 11 12
What is the difference between Kafka vs ZeroMQ vs Memphis?
Avatar Yaniv Ben Hemo
Apr 16, 2023
2 3 4
What is the difference between Azure Event Hub vs Kafka vs Memphis?
Avatar Idan Asulin
Apr 16, 2023
5 6 7
How does ActiveMQ vs RabbitMQ vs Kafka vs Memphis work?
Avatar Idan Asulin
Apr 16, 2023
7 8 9
What is ActiveMQ vs IBM MQ vs Memphis?
Avatar Yaniv Ben Hemo
Apr 16, 2023
3 4 5
What is IBM MQ?
Avatar Yaniv Ben Hemo
Apr 16, 2023
4 5 6
What is an mq server?
Avatar Idan Asulin
Apr 16, 2023
3 4 5
How does mq messaging take place?
Avatar Idan Asulin
Apr 16, 2023
2 3 4
Kafka producer failure scenarios?
4 5 6
Memphis Approach

A Kafka producer publishes or writes data to different partitions’ topics.
Producers know which data should be written to which partition and broker.
However, the broker and partition are not required to be specified by the user.

Understanding the events under which a producer fails to produce messages for the cluster is necessary for handling errors, retrying the events with particular failures, and creating recovery mechanisms.
The possible scenarios where the producer might fail are as follows:

  • Kafka cluster is unavailable.
  • The “acks” setting on the Kafka producer is set to “all” and brokers are unavailable.

To solve these problems, we can temporarily store the message in a secondary store DB/Cache and retry the messages from the secondary store to write the message to the main topic.

Reference: https://www.javatpoint.com/apache-kafka-producer

Memphis Approach

A Memphis producer is a source application or service that sends data or messages to the station.
Several objects are created when a user configures a client connection to Memphis.
A connection is an open socket that connects the client to Memphis.
Only required once when the client/application is first launched.
A producer entity must be declared to write data/messages into Memphis. 

The producer might fail when the cluster or station is not available.
Therefore, to resolve the producer failure, we can temporarily store the message in a secondary store DB/Cache and retry the messages from the secondary store to write the message to the main topic.