Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
kafkajs-dlq
Advanced tools
KafkaJS plugin to handle message processing failures by forwarding problematic messages to a dead-letter queue.
Dead Letter Queues are message queues that can be produced to when a message on another queue cannot be processed successfully. Dead-letter queues are useful for debugging your application or messaging system because they let you isolate problematic messages to determine why their processing doesn't succeed.
WIP: This project is not ready for use as of yet
const { Kafka } = require('kafkajs')
const Dlq = require('kafkajs-dlq')
const kafka = new Kafka({ ... })
const consumer = kafka.consumer({ ... })
const producer = kafka.producer()
const topic = 'example-topic'
const { eachMessage } = Dlq.consumer({
topics: {
[topic]: 'example-dead-letter-queue'
},
producer,
eachMessage: async ({ topic, partition, message }) => {
// If eachMessage rejects, the message will be
// produced on the dead-letter queue
throw new Error('Failed to process message')
}
})
const run = async () => {
await consumer.connect()
await consumer.subscribe({ topic })
await consumer.run({ eachMessage })
}
run()
FAQs
KafkaJS plugin to quarantine messages on processing failure
The npm package kafkajs-dlq receives a total of 1 weekly downloads. As such, kafkajs-dlq popularity was classified as not popular.
We found that kafkajs-dlq demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.