Skip to content

Temporal Bank System in Golang A simple banking transaction system using Temporal workflows and activities in Golang. Tracks transaction state (PENDING, IN_PROGRESS, SUCCESS, FAILED) and allows querying workflow status in real-time.

Notifications You must be signed in to change notification settings

anshulancesoft/bank_transfer_temporal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Temporal Bank System (Golang)

A demo banking transaction system built with Temporal and Golang. This project demonstrates how to:

  • Model long-running bank transactions as Temporal workflows.
  • Track transaction states: PENDING, IN_PROGRESS, SUCCESS, FAILED.
  • Use activities for debiting and crediting accounts.
  • Query workflow state in real-time.

Features

  • Temporal Workflow for bank transactions
  • Activities: DebitAccount, CreditAccount
  • Query handler to check transaction status
  • Worker for processing workflows

Getting Started

Prerequisites

  • Golang 1.21+
  • Temporal Server (Docker recommended)
  • Go modules enabled (go mod init)

Run Temporal Server (Docker)

docker run -d --name temporal \
  -p 7233:7233 \
  temporalio/auto-setup

About

Temporal Bank System in Golang A simple banking transaction system using Temporal workflows and activities in Golang. Tracks transaction state (PENDING, IN_PROGRESS, SUCCESS, FAILED) and allows querying workflow status in real-time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages