Steadybit logoResilience Hub
Try SteadybitGitHub icon
Steadybit logoResilience Hub

Verify Graceful Degradation when Kafka Message Broker Can't Be Reached

An unavailable Kafka is not user-visible as it leads to graceful degradation and downstream retries as soon as the Kafka is back available again.
Download now

Verify Graceful Degradation when Kafka Message Broker Can't Be Reached

An unavailable Kafka is not user-visible as it leads to graceful degradation and downstream retries as soon as the Kafka is back available again.
Download now

Verify Graceful Degradation when Kafka Message Broker Can't Be Reached

An unavailable Kafka is not user-visible as it leads to graceful degradation and downstream retries as soon as the Kafka is back available again.
Download now

Verify Graceful Degradation when Kafka Message Broker Can't Be Reached

An unavailable Kafka is not user-visible as it leads to graceful degradation and downstream retries as soon as the Kafka is back available again.
Download now
Go back to list
The experiment editor showing the visual structure of the experiment.The experiment editor showing the visual structure of the experiment.

Intent

An unavailable Kafka is not user-visible as it leads to graceful degradation and downstream retries as soon as the Kafka is back available again.

Motivation

In case of an unavailable Kafka message broker, your application should still work successfully. To decouple your system parts from each other, each Kafka client should take care of appropriate caching and retry mechanisms and shouldn't make the failed Kafka message broker visible to the end user. Instead, your system should fail gracefully and retry the submission as soon as the Kafka message broker is back again.

Structure

We start by ensuring that business functionality works as expected when your system is in healthy condition. In our example, we place an order via a Postman collection to an online shop and check that the fulfillment system has received all orders via the Kafka message broker from that online shop. Afterward, we simulate an unavailable Kafka message broker and expect that the user-facing online shop endpoint of placing an order is failing gracefully by still accepting all orders. To simulate the unavailability, we can blackhole the client connection using the hostname kafka.internal.steadybit.com so that no incoming or outgoing traffic is going through. As soon as the Kafka message broker is back again, every order should be sent to the fulfillment system and stored.


Download now

.json (4 kB)

It's quick and easy

  1. 1.

    Download .json file
  2. 2.

    Upload it inside Steadybit
  3. 3.

    Start your experiment!
Screenshot showing the Steadybit UI elements to import the experiment.json file into the Steadybit platform.
Tags
Kafka
Recoverability
GitHub
steadybit/reliability-hub-db/tree/main/recipes/messaging-kafka.kafka-unavailable
License
MIT
MaintainerSteadybit

Used Actions

See all
Block Traffic

Blocks network traffic (incoming and outgoing).

Attack

Attack

Containers

Start Using Steadybit Today

Get started with Steadybit, and you’ll get access to all of our features to discover the full power of Steadybit. Available for SaaS and on-prem!

Are you unsure where to begin?

No worries, our reliability experts are here to help: book a demo with them!

Steadybit logoResilience Hub
Try Steadybit
HubActionsTargetsAdviceExtensionsRecipes
© 2024 Steadybit GmbH. All rights reserved.
Twitter iconLinkedIn iconGitHub icon