All Projects → oslabs-beta → kafka-penguin

oslabs-beta / kafka-penguin

Licence: MIT license
An easy-to-use, lightweight KafkaJS library for message re-processing.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to kafka-penguin

Ray2
Orleans-based CQRS event-driven framework. distributed, ultra-high performance
Stars: ✭ 19 (-74.32%)
Mutual labels:  event-driven, micro-service
core.horse64.org
THIS IS A MIRROR, CHECK https://codeberg.org/Horse64/core.horse64.org
Stars: ✭ 3 (-95.95%)
Mutual labels:  event-driven
Topos
🌀 .NET Event Processing library
Stars: ✭ 22 (-70.27%)
Mutual labels:  event-driven
EventEmitter
Simple EventEmitter with multiple listeners
Stars: ✭ 19 (-74.32%)
Mutual labels:  event-driven
vcenter-connector
Extend vCenter with OpenFaaS
Stars: ✭ 29 (-60.81%)
Mutual labels:  event-driven
eda
eda is a library for implementing event-driven architectures.
Stars: ✭ 31 (-58.11%)
Mutual labels:  event-driven
keda-connectors
Generic connectors for Keda which can be used as worker images as part of scaleTargetRef.
Stars: ✭ 22 (-70.27%)
Mutual labels:  event-driven
showcase
A Full Stack Journey with Micro Services and Micro Front Ends. Using dapr, kubernetes, react module federation and web assembly,
Stars: ✭ 45 (-39.19%)
Mutual labels:  micro-service
libuvpp
minimal change of libuv for p2p networking
Stars: ✭ 22 (-70.27%)
Mutual labels:  event-driven
tardis
Event sourcing toolkit
Stars: ✭ 35 (-52.7%)
Mutual labels:  event-driven
libcssl
Columbo Simple Serial Library is an easy to use, event driven serial port communication library for Linux.
Stars: ✭ 38 (-48.65%)
Mutual labels:  event-driven
IntroduceToEclicpseVert.x
This repository contains the code of Vert.x examples contained in my articles published on platforms such as kodcu.com, medium, dzone. How to run each example is described in its readme file.
Stars: ✭ 27 (-63.51%)
Mutual labels:  event-driven
dotnet-core-microservices-kafka
Asp.Net Core microservices that communicate asynchronous through Kafka message broker.
Stars: ✭ 42 (-43.24%)
Mutual labels:  event-driven
event pool
a header-only event-driven library based on c++11.
Stars: ✭ 27 (-63.51%)
Mutual labels:  event-driven
ency
Enhanced concurrency primitives for Javascript.
Stars: ✭ 32 (-56.76%)
Mutual labels:  event-driven
triggerhook
Task scheduler
Stars: ✭ 35 (-52.7%)
Mutual labels:  event-driven
Dermayon
Dermayon is Library for supporting build large application,distributed application, scalable, microservices, cqrs, event sourcing, including generic ef repository pattern with unit of work, generic mongo repository pattern with unit of work, kafka, etc
Stars: ✭ 66 (-10.81%)
Mutual labels:  event-driven
football-events
Event-Driven microservices with Kafka Streams
Stars: ✭ 57 (-22.97%)
Mutual labels:  event-driven
netpoll
Package netpoll implements a network poller based on epoll/kqueue.
Stars: ✭ 38 (-48.65%)
Mutual labels:  event-driven
atpy
Event-driven Algorithmic Trading For Python
Stars: ✭ 23 (-68.92%)
Mutual labels:  event-driven

Home

Kafka-Penguin

An easy-to-use, lightweight KafkaJS library for message re-processing.

license NPM last commit Repo stars

Table of Contents

About

Kafka-Penguin is an easy-to-use, lightweight KafkaJS plugin for message re-processing. It provides developers with three strategies for setting up message re-processing: FailFast, Ignore, and Dead Letter Queue.‌

The package allows developers to build event-driven applications with dedicated "fail strategies" modeled after best practices in the field. This in turn allows developers to effectively address bugs in development and deploy more fault-tolerant systems in production.‌

This package is meant to work in conjunction with with KafkaJS. For more information on KafkaJS, check out Getting Started with KafkaJS.‌

Getting Started

Install Kafka-Penguin as an npm module and save it to your package.json file as a dependency:

npm install kafka-penguin

Once installed it can now be referenced by simply calling require('kafka-penguin');

Example

All Kafka-Penguin needs is a KafkaJS client to run. Start by passing the client for your preferred strategy and Kafka-Penguin will create bespoke consumers, producers, and admins with built-in functionality to execute the chosen strategy. On the surface, you implement your application exactly as you would with KafkaJS.

/* eslint-disable no-console */
import { FailFast } from 'kafka-penguin';

const exampleClient = require('./clientConfig.ts');

// Set up the preferred strategy with a configured KafkaJS client
const exampleStrategy = new FailFast(2, exampleClient);

// Initialize a producer or consumer from the instance of the strategy
const producer = exampleStrategy.producer();

const message = {
  topic: 'wrong-topic',
  messages: [
    {
      key: 'hello',
      value: 'world',
    },
  ],
};

// Connect, Subscribe, Send, or Run virtually the same as with KafkaJS
producer.connect()
  .then(() => console.log('Connected!'))
  // The chosen strategy executes under the hood, like in this send method
  .then(() => producer.send(message))
  .catch((e: any) => console.log('error: ', e.message));

Strategies

Dive in deeper to any of the strategies for set up, execution, and implementation.

FailFast ​‌

Ignore​‌

Dead Letter Queue​‌

Contributors

Ausar English @ausarenglish​‌

Kushal Talele @ktrane1​‌

Timeo Williams @timeowilliams​‌

Ziyad El Baz @zelbaz946​‌

License

This product is licensed under the MIT License - see the LICENSE.md file for details.‌

This is an open source product. We are not affiliated nor endorsed by either the Apache Software Foundation or KafkaJS.‌

This product is accelerated by OS Labs.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].