Skip to content
Saeed Ghofrani
ProjectsCase StudiesExperienceFor Recruiters
Let’s talk
ProjectsCase StudiesExperienceFor Recruiters
PlaygroundArchitectureSkillsWritingContactDownload resume
  1. Home
  2. /Architecture

Saeed Ghofrani Ivari

Backend engineer & engineering manager · Adana

sa.ghofraniivari@gmail.com
Hiring briefProjectsExperienceContactGitHub (opens in new tab)

Architecture

How I make backend decisions when a system already has users.

I start with what must stay true

Before choosing a database or queue, I write down the behavior we cannot accidentally change: who may see the data, how long a request may take, what happens after a retry, and how we recover a bad deploy. That list usually matters more than the diagram.

1. Bound the API contract, response shape, and pagination behavior before optimizing.

2. Choose persistence based on access patterns: relational, document, graph, cache, search, or stream.

3. Move slow work to queues only when retry, idempotency, and user expectations are clear.

4. Make failure modes visible through logs, health checks, metrics, and production-safe smoke checks.

Portfolio request flow

The platform you are using: cached public reads, a server-side contact proxy, and protected content administration.

  1. 1. Browser → Nginx → Next.js

    HTTPS terminates at the reverse proxy. Next serves the public routes and resume.

  2. 2. Public pages → NestJS snapshot

    Server-side reads are cached for 60 seconds; versioned fallback content keeps public pages available when the API cannot respond.

  3. 3. Contact form → Next route → NestJS

    Input is validated before the message is accepted. Errors retain the draft and offer direct email.

  4. 4. NestJS → Prisma → PostgreSQL

    Published content and contact messages are persisted here. Admin access requires authentication.

Delivery: GitHub Actions → Docker Compose → health verification. API/database traffic stays inside the deployment network.

Before implementation

Four questions I want answered before adding infrastructure.

Data

Shape before storage

I model read/write paths, ownership, indexes, and retention rules before picking PostgreSQL, MongoDB, Neo4j, Redis, or Elasticsearch.

Runtime

Separate request and async work

User-facing requests stay bounded; expensive jobs move behind queues only when retry and observability behavior is defined.

Delivery

Deployable systems

Docker, Nginx, CI/CD, health checks, environment boundaries, and rollback notes are part of the architecture, not afterthoughts.

Team

Architecture humans can change

Module boundaries, PR standards, docs, and ownership rules keep a backend team productive after the first implementation is done.

Decision notes

What usually pushes me toward one tool or runtime shape.

Concern

Decision rule

Typical tools

Transactional data

Use when correctness, relations, constraints, and predictable querying matter.

PostgreSQL, Prisma, TypeORM

Realtime delivery

Separate durable state from transport events and define what can be dropped.

Socket.IO, WebRTC, RabbitMQ

High-cost work

Move out of request path when the user can wait and retries are safe.

RabbitMQ, workers, Redis

Search and graph data

Use specialized stores when relational queries become the wrong model.

Elasticsearch, Neo4j, MongoDB

Production operations

Plan for deployment, monitoring, logs, backups, and rollback before release.

Docker, Nginx, Linux VPS, GitHub Actions

System maps

Follow the data through the system.

LicenseMarket: faster APIs, dependable operations, and a backend team

Hands-on work on database performance, financial workflows, communications, and production reliability while leading eight backend engineers.

40% lower average API latency and 99.9% availability over approximately six months; management of eight backend engineers.

Open case study
LicenseMarket: request, data, and background-work boundaries

Customer and operator requests enter NestJS services. PostgreSQL stores application records, Redis supports repeated reads, and RabbitMQ separates background work from the request path. This is a functional view, with internal infrastructure omitted.

RequestQueryCacheEnqueueProcessCustomers & operatorsOrders, tickets, reportsNestJS servicesPermissions & API contractsPostgreSQL / PrismaApplication recordsRedisRepeated-read cacheRabbitMQBackground workBackground processingWork outside the request

Scroll the diagram to explore the full flow.

GBT Market: wallets, trading, and a separate chart pipeline

Ongoing freelance backend work across financial consistency, real-time prices, chart history, reporting, and production support.

Production wallet safeguards, real-time market delivery, chart history, reporting, and continuing backend maintenance.

Open case study
GBT Market: a price event becomes chart data

Dedicated chart processing updates current prices in Redis, maintains candle history in MongoDB, and prepares Socket.IO client updates. Order execution remains outside this chart-processing responsibility.

IngestUpdatePersistPrepare broadcastMarket price eventIncoming price informationNestJS chart processingPrice & timeframe handlingRedisCurrent price stateMongoDBCandle historySocket.IO updatesConnected client views

Scroll the diagram to explore the full flow.

Mobasher: microservices behind messaging and consultation

Freelance work on consulting and learning workflows, messaging, and voice/video communication.

500+ concurrent production users with observed messaging latency of 100–150 ms.

Open case study

Responsibility map

  1. 1.Consultation and learning interface
  2. 2.NestJS microservices
  3. 3.SQL-backed provider and reservation workflows
  4. 4.Socket.IO events / RabbitMQ workflows
  5. 5.WebRTC voice and video

Simplified responsibilities; internal deployment details are omitted.

Keyvangold: trading workflows and financial reporting

A separate ongoing freelance engagement covering gold-trading APIs, wallets, settlement, inventory, and operational reports.

Ongoing contributions to trading, financial records, reports, and production maintenance.

Open case study

Responsibility map

  1. 1.Pricing and identity workflows
  2. 2.Rial / gold wallets and payments
  3. 3.Settlement and inventory
  4. 4.Operational reports and physical delivery

Simplified responsibilities; internal deployment details are omitted.

Symorgh: learning backend engineering inside an ERP

Early backend contribution to an ERP covering project workflows, inventory, procurement, invoicing, and payments.

Early experience contributing to a connected enterprise backend in C# and ASP.NET Core.

Open case study

Responsibility map

  1. 1.Angular business interface
  2. 2.ASP.NET Core API
  3. 3.Business services
  4. 4.Repositories / unit of work
  5. 5.Entity Framework Core and MySQL

Simplified responsibilities; internal deployment details are omitted.

Synergy: content progression and scheduled integration

Backend work in an Appon application connecting learning content, tasks, completion records, and external form data.

Backend contribution to connected learning-progress and integration workflows.

Open case study

Responsibility map

  1. 1.External form data
  2. 2.Mapping and scheduled imports
  3. 3.Content / views / tasks / checks
  4. 4.Progression queries
  5. 5.Application response

Simplified responsibilities; internal deployment details are omitted.

PhysioMaster: collaborative product delivery and team coordination

Work across the backend, user application, and administration interface, with responsibility for team tasks and meetings.

Collaborative backend and interface work, alongside coordination of team tasks and meetings.

Open case study

Responsibility map

  1. 1.User and administration applications
  2. 2.NestJS authentication and application modules
  3. 3.Education / scenario / exam / practice workflows
  4. 4.Persistence, queued work, and communication

Simplified responsibilities; internal deployment details are omitted.

ExModule: identity checks and exchange integrations

Backend services for cryptocurrency workflows, verification, commissions, and referrals.

Delivered backend verification, exchange-integration, commission, and referral workflows.

Open case study

Read the case study for the implementation and project context.

True Dapp: purchase rules, referral commissions, and user activity

Collaborative NestJS backend work on token purchases, referral commission logic, activity tracking, request logging, and file services.

Open case study

Responsibility map

  1. 1.Telegram mini-app requests
  2. 2.NestJS user and purchase services
  3. 3.Purchase-type and referral eligibility rules
  4. 4.TypeORM purchase / user records
  5. 5.Commission reporting and recent-activity updates

Simplified responsibilities; internal deployment details are omitted.