{"id":17218638,"url":"https://github.com/jwulf/zeebe-zero-scale","last_synced_at":"2025-04-13T23:37:04.642Z","repository":{"id":48006350,"uuid":"190997633","full_name":"jwulf/zeebe-zero-scale","owner":"jwulf","description":"A Zeebe Worker for Zero-scale integration with Serverless (AWS / Azure Web Function / OpenWhisk)","archived":false,"fork":false,"pushed_at":"2023-07-08T01:28:40.000Z","size":178,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T13:46:20.397Z","etag":null,"topics":["aws","aws-lambda","lambda","microservices","orchestration","workflow","zeebe","zero-scale"],"latest_commit_sha":null,"homepage":"https://zeebe.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jwulf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-09T11:23:15.000Z","updated_at":"2024-04-25T10:51:36.000Z","dependencies_parsed_at":"2023-01-26T11:16:19.091Z","dependency_job_id":null,"html_url":"https://github.com/jwulf/zeebe-zero-scale","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Fzeebe-zero-scale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Fzeebe-zero-scale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Fzeebe-zero-scale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Fzeebe-zero-scale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwulf","download_url":"https://codeload.github.com/jwulf/zeebe-zero-scale/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799028,"owners_count":21163396,"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":["aws","aws-lambda","lambda","microservices","orchestration","workflow","zeebe","zero-scale"],"created_at":"2024-10-15T03:47:38.514Z","updated_at":"2025-04-13T23:37:04.610Z","avatar_url":"https://github.com/jwulf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zero Scale Zeebe\n\nA Zeebe Worker for integration with Serverless (AWS / Azure Web Function / OpenWhisk) or other JSON-based HTTP APIs. Allows you to run workers at zero-scale (nothing running when there is no work).\n\nOK, it's not zero scale, because you need this one worker running. But it is one worker for multiple task types - not one worker per-task type.\n\nThis worker is configured via a JSON file containing a map of task types to REST endpoints.\n\nIt polls for configured tasks and invokes remote HTTP endpoints via GET or POST.\n\nThis configuration file looks like this:\n\n```JSON\n{\n  \"tasks\": {\n    \"test-task\": {\n      \"url\": \"http://localhost:3000/getExample?foo=bar\u0026baz=foo\",\n      \"method\": \"get\",\n      \"headers\": { \"Content-Type\": \"application/json\" }\n    },\n    \"test-task2\": {\n      \"url\": \"http://localhost:3000/postExample\",\n      \"method\": \"post\",\n      \"headers\": { \"X-My-Custom-Header\": \"woopWoop\" }\n    }\n  }\n}\n\n```\n\nThe map is reloaded every 30 seconds, so the task type mapping can be updated.\n\n## Usage\n\nInstall dependencies: \n\n```bash\nnpm i\n```\n\nBuild: \n\n```bash \nnpm run build\n```\n\nSet the environment variable `ZEEBE_TASK_MAP_FILE` to point to your JSON map (there is an example in the `demo` subdirectory).\n\nThen run `npm start`\n\n## Demo\n\nTo run the demo:\n\n- Install dependencies:\n\n```\nnpm i\nnpm i -g typescript ts-node\n```\n\n- In Terminal 1 - Start a broker:\n\n```\ncd demo\ndocker-compose up\n```\n\n- In Terminal 2 - Start the Lambda Emulator REST Server. This server emulates an AWS Lambda / SQS or other endpoint.\n\n```\ncd demo\nts-node server.ts\n```\n\n- In Terminal 3 - Start the Zero-Scale worker:\n\n```\nZEEBE_TASK_MAP_FILE=../demo/taskmap.json ts-node src/index.ts\n```\n\n- In Terminal 4 - start a workflow:\n\n```\ncd demo\nts-node start-work.ts\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwulf%2Fzeebe-zero-scale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwulf%2Fzeebe-zero-scale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwulf%2Fzeebe-zero-scale/lists"}