
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
brod-caster
Advanced tools
Combines Apache Kafka & Google Protocol Buffers
Watch your Kafka message queue and dispatch tasks accordingly.
As Kafka's literary executor, Max Brod refused to follow the writer's instructions to burn his life's work, and had them published instead. (Wikipedia)
var kafka = new BrodCaster();
kafka.on('myService', 'eventName', function(data) {
console.log(data);
});
kafka.send('myService', 'eventName', { my: 'data' }, function(err, result) {
console.log(err || result);
})
{
adaptor: {
type: 'protocolBuffer',
// Append this value to the `eventName` value
package: 'com.takeaway.events.cdn.page',
// Path to `protoc` compiled message descriptors
// Envelope has to have a message called `Envelope`
envelope: './events/envelope.desc',
messages: './events/my-events.desc'
},
topics: [
{
topic: 'service-broadcast'
}, {
topic: 'foo',
offset: 20
}
],
client: {
connectionString: 'localhost:2181/',
// Set your own client name
clientId: 'brod-caster',
zkOptions: {}, // see: node-zookeeper-client
},
consumer: {
// Default value for `protocolBuffer` adaptor
encoding: 'buffer'
},
producer: {
},
// Only for testing purposes
producerInstance: myInstance
}
Pass in options.parser
& options.serializer
functions to skip using adaptor.
data
gets serialized byBuffer
for envelope - currently not supported)message
FAQs
Keep track of your micro-service messages and dispatch tasks accordingly
The npm package brod-caster receives a total of 2 weekly downloads. As such, brod-caster popularity was classified as not popular.
We found that brod-caster demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.