{"id":13542790,"url":"https://github.com/disintegrator/benthos-temporal-poc","last_synced_at":"2025-10-13T12:09:44.488Z","repository":{"id":147684274,"uuid":"573491841","full_name":"disintegrator/benthos-temporal-poc","owner":"disintegrator","description":"A PoC to demonstrate integration between Benthos and Temporal. Based on https://github.com/temporalio/money-transfer-project-template-go.","archived":false,"fork":false,"pushed_at":"2023-01-27T10:33:18.000Z","size":76,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T12:04:15.053Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/disintegrator.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}},"created_at":"2022-12-02T15:35:08.000Z","updated_at":"2025-01-16T00:49:22.000Z","dependencies_parsed_at":"2023-07-23T08:30:54.658Z","dependency_job_id":null,"html_url":"https://github.com/disintegrator/benthos-temporal-poc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"temporalio/money-transfer-project-template-go","purl":"pkg:github/disintegrator/benthos-temporal-poc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/disintegrator%2Fbenthos-temporal-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/disintegrator%2Fbenthos-temporal-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/disintegrator%2Fbenthos-temporal-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/disintegrator%2Fbenthos-temporal-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/disintegrator","download_url":"https://codeload.github.com/disintegrator/benthos-temporal-poc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/disintegrator%2Fbenthos-temporal-poc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015053,"owners_count":26085643,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-08-01T11:00:17.904Z","updated_at":"2025-10-13T12:09:44.457Z","avatar_url":"https://github.com/disintegrator.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":["Samples"],"readme":"# Temporal + Benthos - Proof of Concept\n\nThis project demonstrates how Benthos can be used to drive Temporal workflow execution.\n\n## Basic instructions\n\n### Step 0: Temporal Server\n\nMake sure [Temporal Server is running](https://docs.temporal.io/docs/server/quick-install/) first:\n\n```bash\ngit clone https://github.com/temporalio/docker-compose.git\ncd  docker-compose\ndocker-compose up\n```\n\nLeave it running. You can use the Temporal Web UI at [localhost:8080](localhost:8080) which is currently in Beta. To use the legacy Temporal Web UI, use the [localhost:8088](localhost:8088) URL instead. There should be no workflows visible in the dashboard right now.\n\n### Step 1: Clone this Repository\n\nIn another terminal instance, clone this repo and run this application.\n\n```bash\ngit clone https://github.com/disintegrator/benthos-temporal-poc.git\ncd benthos-temporal-poc\n```\n\n### Step 2: Run the workflow with Benthos\n\n```bash\ngo run benthos/main.go --log.level debug -c config.generate.yml\n```\n\nObserve that Temporal Web reflects the workflow, but it is still in \"Running\" status. This is because there is no Workflow or Activity Worker yet listening to the `TRANSFER_MONEY_TASK_QUEUE` task queue to process this work.\n\nThere is also an alternate pipeline configuration which reads data from a file and uses lines within it to trigger executions. You can run it like so:\n\n```bash\ngo run benthos/main.go --log.level debug -c config.file.yml\n```\n\n### Step 3: Run the Worker\n\nIn YET ANOTHER terminal instance, run the worker. Notice that this worker hosts both Workflow and Activity functions.\n\n```bash\ngo run worker/main.go\n```\n\nNow you can see the workflow run to completion. You can also see the worker polling for workflows and activities in the task queue at [http://localhost:8080/namespaces/default/task-queues/TRANSFER_MONEY_TASK_QUEUE](http://localhost:8080/namespaces/default/task-queues/TRANSFER_MONEY_TASK_QUEUE).\n\n\u003cimg width=\"882\" alt=\"CleanShot 2021-07-20 at 17 48 45@2x\" src=\"https://user-images.githubusercontent.com/6764957/126413160-18663430-bb7a-4d3a-874e-80598e1fa07d.png\"\u003e\n\n## What Next?\n\nYou can run the Workflow code a few more times with `go run benthos/main.go --log.level debug -c config.yml` to understand how it interacts with the Worker and Temporal Server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdisintegrator%2Fbenthos-temporal-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdisintegrator%2Fbenthos-temporal-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdisintegrator%2Fbenthos-temporal-poc/lists"}