{"id":28158512,"url":"https://github.com/indeedeng/iwf-golang-samples","last_synced_at":"2025-05-15T09:20:04.988Z","repository":{"id":65450858,"uuid":"583447767","full_name":"indeedeng/iwf-golang-samples","owner":"indeedeng","description":"samples for iWF-Golang-SDK","archived":false,"fork":false,"pushed_at":"2025-04-24T18:27:08.000Z","size":14745,"stargazers_count":11,"open_issues_count":5,"forks_count":7,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-07T23:40:06.991Z","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/indeedeng.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,"publiccode":null,"codemeta":null}},"created_at":"2022-12-29T20:11:09.000Z","updated_at":"2025-04-24T18:27:13.000Z","dependencies_parsed_at":"2023-11-30T00:25:06.542Z","dependency_job_id":"d321ec1f-c60f-43bb-b32b-8edc51146b31","html_url":"https://github.com/indeedeng/iwf-golang-samples","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/indeedeng%2Fiwf-golang-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indeedeng%2Fiwf-golang-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indeedeng%2Fiwf-golang-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indeedeng%2Fiwf-golang-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indeedeng","download_url":"https://codeload.github.com/indeedeng/iwf-golang-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254310502,"owners_count":22049471,"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":[],"created_at":"2025-05-15T09:19:42.567Z","updated_at":"2025-05-15T09:20:04.974Z","avatar_url":"https://github.com/indeedeng.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iwf-golang-samples\n\nSamples for [iWF Golang SDK](https://github.com/indeedeng/iwf-golang-sdk) that runs\nagainst [iWF server](https://github.com/indeedeng/iwf)\n\n## Setup\n\n1. Start a iWF server following the [instructions](https://github.com/indeedeng/iwf#how-to-run-this-server)\n2. Run this project\n  * To build the binary, run `make bins` \n  * To run the sample service: run `./iwf-samples start`\n\n_Note that by default this project will listen on 8803 port(default worker port for iWF Golang SDK)_\n\n## Product Use case samples\n\n### [Money Transfer Workflow/SAGA Patten](./workflows/moneytransfer)\nThis example shows how to transfer money from one account to another account.\nThe transfer involves multiple steps. When any step fails, the whole transfer is canceled with some compensation steps.\n\n### [Microservice orchestration](./workflows/microservices)\nThis is the code that is [shown in iWF server as an example of microservice orchestration](https://github.com/indeedeng/iwf#example-microservice-orchestration).\n\n### [JobSeeker Engagement workflow](./workflows/engagement)\n\u003cimg width=\"709\" alt=\"Screenshot 2023-04-21 at 8 53 25 AM\" src=\"https://user-images.githubusercontent.com/4523955/233680837-6a6267a0-4b31-419e-87f0-667bb48582d1.png\"\u003e\nThis engagement workflow is for: \n\n* An engagement is initiated by an employer to reach out to a jobSeeker(via email/SMS/etc)\n* The jobSeeker could respond with decline or accept\n* If jobSeeker doesn't respond, it will get reminder\n* An engagement can change from declined to accepted, but cannot change from accepted to declined\n\n\n### [Subscription](./workflows/subscription) workflow\n\nThis [Subscription workflow](https://github.com/indeedeng/iwf-golang-samples/tree/main/workflows/subscription) (with unit tests) is to match the use case described in\n* [Temporal TypeScript tutorials](https://learn.temporal.io/tutorials/typescript/subscriptions/)\n* [Temporal go sample](https://github.com/temporalio/subscription-workflow-project-template-go)\n* [Temporal Java Sample](https://github.com/temporalio/subscription-workflow-project-template-java)\n* [Cadence Java example](https://cadenceworkflow.io/docs/concepts/workflows/#example)\n\n\n### [Task orchestration with polling \u0026 signal](./workflows/polling)\nOrchestrating three services:\n* Task A: receive a signal when completing\n* Task B: receive a signal when completing\n* Task C: polling until completion","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findeedeng%2Fiwf-golang-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findeedeng%2Fiwf-golang-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findeedeng%2Fiwf-golang-samples/lists"}