Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

steveo

Package Overview
Dependencies
Maintainers
3
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steveo

A Task Manager Library

  • 1.0.24
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Steveo - Kafka Task Framework for Node.js

npm version Build Status dependencies Status devDependencies Status npm npm

Steveo is a task management library for Kafka

On a highlevel, it works as below, Steveo has 3 main factory components

          +-----------+                  +-----------+
          |           |                  |           |
          |   TASK    |                  | REGISTRY  |
          |           |                  |           |
          |           |                  |           |
          +-----------+                  +-----------+

                          +-----------+
                          |           |
                          |   RUNNER  |
              SEND  <-----|           |<----- RECEIVE
                          |           |
                          +-----------+

Task

Holds the information about the type of task. It has below methods,

  • publish
  • subscribe
  • events

Registry

Responsible for keeping the inventory of tasks. Whenever a new task is created, an entry will be added in the registry

Runner

Responsible for consuming messages,

  • process method initialize group consumers and start to consume the messages. It will then call the subscribe callback set on the task

Example

const steveo = new Steveo({
  // kafka parameters
});

const example = steveo.task('example-task', (hello) => {
 console.log(`hello ${hello}`);
});

await example.publish('tommo');
await example.publish('bazza');

steveo.runner(); // consume messages

For more details, see example

FAQs

Package last updated on 22 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc