Back to projects
Backend Engineer

NovaPay

Independent backend case study

NovaPay is a TypeScript-first monorepo for transfers and bulk payroll execution. Its API uses Prisma with PostgreSQL, Decimal.js for currency math, atomic transactions for debit/credit and ledger writes, SELECT ... FOR UPDATE locking, idempotency keys and BullMQ workers for background payroll jobs.

Project Overview

  • Role: Backend Engineer
  • Client: Independent backend case study
  • Stack: TypeScript, Express, Prisma
CHALLENGE

The problem we solved

Financial operations must remain correct under retries, duplicate client requests and concurrent debits. Floating-point arithmetic and non-atomic writes would create unacceptable accounting risk.

SOLUTION

How we approached it

Used decimal-safe values, single Prisma transactions for money movement and ledger entries, pessimistic row locking for balance checks and idempotency guards for transfer and payroll processing. A Next.js dashboard communicates with the API through route handlers.

OUTCOMES

Results delivered

Implemented atomic debit, credit and ledger writes in one Prisma transaction
Protected balance checks with SELECT ... FOR UPDATE pessimistic locking
Made transfer and bulk payroll retries idempotent with explicit keys
Added sanitized global error responses and a Next.js dashboard shell
ENGINEERING DECISIONS

Key technical choices

01

Used Decimal.js and Prisma Decimal instead of floating-point currency arithmetic

02

Kept money movement and ledger writes inside a single transaction boundary

03

Used Redis-backed BullMQ workers for bulk payroll execution

04

Presented as a secondary backend case study without a fabricated live URL or screenshot

TECHNOLOGIES

Tools and technologies used

TypeScriptExpressPrismaPostgreSQLRedisBullMQNext.jsDecimal.js

Building scalable web and SaaS applications with modern full-stack technologies.

© 2026 Mohammad Fahad. All rights reserved.