{"id":21055865,"url":"https://github.com/fjord-framework/producer","last_synced_at":"2026-05-19T00:42:54.190Z","repository":{"id":219966594,"uuid":"392844344","full_name":"fjord-framework/producer","owner":"fjord-framework","description":"Kafka producer to simulate producing records into a Fjord user's cluster","archived":false,"fork":false,"pushed_at":"2021-08-24T21:14:15.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T19:16:03.613Z","etag":null,"topics":["api-proxy","aws","kafka","kafka-producer","real-time","sse"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fjord-framework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-08-04T22:59:33.000Z","updated_at":"2021-09-02T11:19:14.000Z","dependencies_parsed_at":"2024-01-30T17:08:30.673Z","dependency_job_id":null,"html_url":"https://github.com/fjord-framework/producer","commit_stats":null,"previous_names":["fjord-framework/producer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjord-framework%2Fproducer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjord-framework%2Fproducer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjord-framework%2Fproducer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjord-framework%2Fproducer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fjord-framework","download_url":"https://codeload.github.com/fjord-framework/producer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243500803,"owners_count":20300774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-proxy","aws","kafka","kafka-producer","real-time","sse"],"created_at":"2024-11-19T16:47:34.555Z","updated_at":"2026-05-19T00:42:54.143Z","avatar_url":"https://github.com/fjord-framework.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./readme_materials/fjord.svg\" width=\"500\" height=\"200\" /\u003e\n\u003c/p\u003e\n\n# Test Producer\n\nThis repository contains three `.js` scripts that can be used to test the production of records into a Kafka cluster.\n\n1. `producer.js` is the simplest script. Run it to test the production of one record into a cluster. Sample usage: `node producer.js stocks ko 125`. The arguments passed represent the Kafka topic, the record key, and the record value.\n\n2. `batch.js` produces a one-time batch of records into a cluster. Sample usage: `node batch.js stocks 1000`. Here, the arguments represent the topic and the number of records. The key will be a random number between 1 and 10, and the value will be a combination of the topic, time in milliseconds, and record number as it's created in the program.\n\n3. `interval.js` produces a specified number of records per second into the cluster. Sample usage: `node interval.js stocks 10`. The arguments here represent the Kafka topic and the number of records you want to producer per second.\n\nBe sure to include a `.env` file with the following environmental variables:\n\n```\nCLIENT=\nBROKERS=\nKAFKA_USERNAME=\nKAFKA_PASSWORD=\nSECURITY=\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffjord-framework%2Fproducer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffjord-framework%2Fproducer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffjord-framework%2Fproducer/lists"}