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

@bluexlab/kafka-ts

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bluexlab/kafka-ts

The kafka producer and consumer client

  • 1.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
0
Weekly downloads
 
Created
Source

BlueX Kafka

Custom Kafka client for internal use at BlueX Trade.

Quick start

Try running consumer with

npm run example:consumer

And the producer

npm run example:producer

The producer will send a example message, and you should be able to see the consumer receiving it.

Tests

Unit tests

This only tests some utility functions to guarantee their consistent behaviors.

npm run test:unit

Integration tests

This tests the entire workflow from starting the producer and the consumer, then produces a message and verify that the consumer did receive the message.

NOTE: Integration test requires you to have a kafka service running at localhost:9092. You could also set the NOTIFICATION_BROKERS environment variable in the .env.test to point to your kafka server.

npm run test:integration

Keywords

FAQs

Package last updated on 29 Jul 2024

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