{"id":21959131,"url":"https://github.com/ldmtam/realtimemap-temporal","last_synced_at":"2025-11-09T23:03:32.417Z","repository":{"id":200655231,"uuid":"706004792","full_name":"ldmtam/realtimemap-temporal","owner":"ldmtam","description":"A showcase for using Temporal Workflow as Actors","archived":false,"fork":false,"pushed_at":"2023-10-20T06:45:45.000Z","size":87,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-09T23:03:07.363Z","etag":null,"topics":["actor-model","go","temporal-workflow"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ldmtam.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-17T05:57:22.000Z","updated_at":"2025-03-09T18:42:27.000Z","dependencies_parsed_at":"2023-10-17T13:46:35.343Z","dependency_job_id":"7bb9db53-38d8-4cdd-9ae7-267ccf1d4d75","html_url":"https://github.com/ldmtam/realtimemap-temporal","commit_stats":null,"previous_names":["ldmtam/realtimemap-temporal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ldmtam/realtimemap-temporal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldmtam%2Frealtimemap-temporal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldmtam%2Frealtimemap-temporal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldmtam%2Frealtimemap-temporal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldmtam%2Frealtimemap-temporal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ldmtam","download_url":"https://codeload.github.com/ldmtam/realtimemap-temporal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldmtam%2Frealtimemap-temporal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283593385,"owners_count":26861541,"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-11-09T02:00:05.828Z","response_time":62,"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":["actor-model","go","temporal-workflow"],"created_at":"2024-11-29T09:20:32.917Z","updated_at":"2025-11-09T23:03:32.403Z","avatar_url":"https://github.com/ldmtam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-time Map\n\nReal-time Map displays real-time positions of public transport vehicles in Helsinki. It's a showcase for using Temporal Workflow as Actors\n\nThe app features:\n- Real-time positions of vehicles.\n- Vehicle trails.\n- Geofencing notifications (vehicle entering and exiting the area).\n- Vehicles in geofencing areas per public transport company.\n- Horizontal scaling.\n\nThe goals of this app are:\n- Showing what Temporal Workflow can do.\n- Presenting a semi-real-world use case of the distributed actor model.\n- Learning how to use Temporal Workflow\n\n## Running the app\nPrerequisites:\n- [Golang](https://go.dev/)\n- [Temporal Workflow](https://learn.temporal.io/getting_started/go/dev_environment/)\n\nRun Temporal Workflow\n```\ntemporal server start-dev\n```\n\nRun Redis\n```\nmake start-redis\n```\n\nStart worker\n```\ngo run worker/main.go\n```\n\nStart backend\n```\ngo run main.go\n```\n\nCheck out the Temporal Workflow UI by navigating to [localhost:8233](http://localhost:8233)\n\n## What does it do?\nWe'll have 3 types of Workflow in the application\n- Vehicle: receive position update message from MQTT, send signal the **organization** Workflow, maintain vehicle position history and response to **get vehicle history request** from **server**\n- Organization: receive signal from **vehicle** Workflow and send signal to corresponding **geofence** Workflow\n- Geofence: receive signal from **organization** Workflow, maintain which vehicles are currently in this geofence and response to **get geofence request** from **server**\n- Notification: receive signal from **geofence** Workflow and publish vehicles **ENTER**/**EXIT** geofence area event to Redis\n\n## cURL\nList all **organizations** that have geofences setup\n```\ncurl --location 'localhost:12345/api/v1/organization'\n```\n\nList all **geofences** and **vehicles** currently inside those geofences of an **organization**\n```\ncurl --location 'localhost:12345/api/v1/organization/0030'\n```\n\nList all position changes history of an **vehicle**\n```\ncurl --location 'localhost:12345/api/v1/trail/0012.02212'\n```\n\nYou can use Postman to connect to the websocket endpoint at **localhost:12345/ws** to consume vehicle events entering/exiting geofence area\n\n## How does it work?\nPlease refer to the [.NET version using Proto.Actor](https://github.com/asynkron/realtimemap-dotnet) README for a detailed description of the architecture.\n\n## TODO\n-  [x] Support Geofencing notifications (vehicle entering and exiting the area).\n-  [x] Support Continue-As-New for Workflows when Temporal history events length and size limit reached.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldmtam%2Frealtimemap-temporal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fldmtam%2Frealtimemap-temporal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldmtam%2Frealtimemap-temporal/lists"}