Back to Projects
Personal Project2026In Progress
Atlas Financial Core
Core financial backend service built as a modular monolith using Go standard library (net/http, log/slog) and PostgreSQL (pgx/v5) with versioned SQL migrations, atomic fund transfers, ordered row-level locking, and idempotent retry handling.
Overview
Designed and built a modular monolith financial backend using Go standard library (net/http, log/slog) and PostgreSQL (pgx/v5) with versioned SQL migrations managed through golang-migrate.
Built around transactional safety under concurrent load, covering strict payload validation, deadlock-free row locking, idempotency keys, and rollback verification.
Key work
- Implemented account management and atomic fund transfer APIs with strict balance, currency, and payload validations.
- Prevented race conditions and deadlocks in concurrent transfers using ACID transactions and ordered row-level locking (SELECT ... ORDER BY id ASC FOR UPDATE).
- Built idempotent transfer processing with database-level unique constraints to handle network retries and concurrent collisions safely.
- Wrote unit tests for service and HTTP handlers alongside PostgreSQL integration tests covering concurrency, retry idempotency, and rollback scenarios.