BS
All projects
02 · SaaS2025Live

biHesap · API

Multi-tenant NestJS API · Postgres · Queue.

// overview

biHesap platformunun backend'i. NestJS üzerine kurulu modüler mimari, multi-tenant row-level security ile Postgres, BullMQ ile background job orkestrasyonu, idempotent webhook'lar.

// architecture

Mühendislik kararları ve mimari.

NestJS modüler mimari (Domain → Application → Infrastructure). PostgreSQL RLS ile tenant izolasyonu. BullMQ ile invoice generation, report aggregation, e-mail dispatching. Idempotency-Key ile güvenli webhook tekrarı.

REST API
Multi-tenant RLS
Queue
Webhooks
Reporting jobs
// challenges

Çözdüğüm mühendislik problemleri.

01

Idempotent finansal operasyonlar

02

Yüksek hacimli rapor sorguları için materialized views

03

Background job retry/backoff politikaları

// stack

Kullanılan teknolojiler.

NestJSTypeScriptPrismaPostgreSQLBullMQRedis
// outcomes

Üretimde elde edilen sonuçlar.

P95 < 180ms API yanıt süresi
0 idempotency çakışması (production)
Background job throughput 12x
// next step

Bu seviyede bir sistem mi istiyorsun?

Benzer bir mimari sorununu çözmek, ekibinin frontend katmanını ileri taşımak ya da yepyeni bir SaaS kurmak için brief gönder — 48 saat içinde dönüş yapıyorum.

// developed by Bedirhan Say · Senior Frontend & Systems Engineer