# kafka-cascade

> Message Reprocessing for KafkaJS

Latest version **1.0.6** (published 2022-05-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install kafka-cascade
pnpm add kafka-cascade
yarn add kafka-cascade
bun add kafka-cascade
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2022-05-16 |
| First published | 2021-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 68.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 48 |
| Author | Davette Byran, Michael Weber, Robert Du, Seung Joon Lee |
| Maintainers | kafka-cascade |
| Keywords | Kafka, KafkaJS, Message Reprocessing, Dead Letter Queue |

## Links

- npm: https://www.npmjs.com/package/kafka-cascade
- Repository: https://github.com/oslabs-beta/Kafka-Cascade
- Homepage: https://www.npmjs.com/package/kafka-cascade
- Issues: https://github.com/oslabs-beta/Kafka-Cascade/issues
- npm.io page: https://npm.io/package/kafka-cascade

## Dependencies (1)

- [kafkajs](https://npm.io/package/kafkajs.md) ^1.15.0

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 1.0.6 (latest) — 2022-05-16
- 1.0.5 — 2021-07-22
- 1.0.4 — 2021-07-22
- 1.0.3 — 2021-07-22
- 1.0.2 — 2021-07-22
- 1.0.1 — 2021-07-22
- 1.0.0 — 2021-07-21
- 0.0.13 — 2021-07-10
- 0.0.11 — 2021-07-10
- 0.0.1 — 2021-07-10

## README

[![npm version](https://img.shields.io/npm/v/kafka-cascade?color=%2344cc11&label=stable)](https://www.npmjs.com/package/kafka-cascade)

<p align="center">

  <h3 align="center">Kafka Cascade</h3>

  <div align="center">
  <a href="https://kafka-cascade.io">
      <img src="./demo/assets/favIconLarger.png" alt="Logo" width="100" height="110">
  </a>
  </div>

  <p align="center">
    A lightweight npm library for KafkaJS message reprocessing
  <br />
  <a href="https://kafka-cascade.io"><strong>Demo and Docs »</strong></a>
  </p>
</p>

---

## Table of Contents

- [About](#about)
  - [Features](#features)
  - [Getting Started](#getting-started)
  - [Usage](#usage)
- [Authors](#authors)

---    

## <a name="about"></a> About Kafka Cascade

Kafka Cascade is a lightweight npm library for [KafkaJS](https://kafka.js.org/), a modern [Apache Kafka](https://kafka.apache.org/) client for Node.js.

Kafka Cascade wraps around KafkaJS objects to provide a user-configurable service for reprocessing messages, allowing developers to decide how to handle retries and when messages should be sent to the dead letter queue (DLQ).

<small><small>KAFKA is a registered trademark of The Apache Software Foundation. Kafka Cascade has no affiliation with and is not endorsed by The Apache Software Foundation. Kafka Cascade was developed separately from KafkaJS and is not affiliated with KafkaJS</small></small>


### <a name="features"></a> Features

* Retry Strategies
  1. Fast Retry - a default strategy that will resend messages as quickly as the runtime will allow, up to a user-defined limit
  2. Timeout Retry - specifies how long to wait before resending a message based on retry level
  3. Batching Retry - specifies how many messages the producer should wait for before sending all of the messages to be retried at once
* All retry strategies are user-configurable


### <a name="getting-started"></a> Getting Started

```sh
npm install kafka-cascade
# yarn add kafka-cascade
```


### <a name="usage"></a> Usage

KafkaJS objects should be wrapped in the Kafka Cascade CascadeService. The user will provide the topic, groupId, and the callbacks to be invoked upon successfully delivery a message or when a message ends up in the DLQ. For more details, please see the [documentation](https://kafka-cascade.io/doc).

```javascript
var service: Cascade.CascadeService;
service = await cascade.service(kafka, topic, groupId, serviceCB, successCB, dlqCB)
```
---

### <a name="authors"></a> Authors

##### [Michael Weber](https://github.com/michaelweberjr)
##### [Davette Bryan](https://github.com/Davette-Bryan)
##### [Seung Joon Lee](https://github.com/GnuesJ)
##### [Robert Du](https://github.com/robertcdu)

---
_Source: https://npm.io/package/kafka-cascade · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
