![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A Node.js interpretation of the Kafka Streams Processor API.
Frolyk provides a minimal layer over Kafka, to effectively write, test and run stream processing applications. It follows a task
based concept, where sources
(kafka topics) flow through user-defined processors
to generate results, either back to Kafka or some other store. It aims to enable both stateless and stateful processing, leveraging Kafka ConsumerGroups to spread these tasks between workers.
import createTask from "../src/task";
const task = createTask();
const locationEvents = task.source("location-events");
task.processor(locationEvents, async (assignment) => {
// Called when Consumer receives assignment through a rebalance, or manual assignment.__dirname
// Do any setup work here.
const countsPerTimeWindow = {}; // connect to Postgres? Fetch a store from somewhere else for local use?
return async (message, context) => {
const location = parseLocation(message.value);
const win = getWindow(location.timestamp);
const existingCount = countsPerTimeWindow[win] || 0;
const newCount = existingCount + 1;
countsPerTimeWindow[win] = newCount;
// Process a single message
context.send("location-counts", newCount);
context.commit();
};
});
// either start processing by connecting to Kafka
await task.start();
// or inject test messages into the processor to verify your logic
const testInterface = await task.inject([
{ topic: "location-events", partition: 0 },
]);
const testLocation = {
latitude: 4,
longitude: 10,
timestamp: Date.now(),
};
testInterface.inject({
topic: "location-events",
partition: 0,
key: null,
testLocation,
});
console.log(testInterface.committedMessages); // should contain offset of message
Task
construct to describe processor topologies and processing logicWorker
/ App
construct to run multiple tasks in a single processFAQs
Stream processing library for Kafka in Node
The npm package frolyk receives a total of 0 weekly downloads. As such, frolyk popularity was classified as not popular.
We found that frolyk 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.