ob / ouahabi-benhenni FR

Expertise · Backend & performance

Backend Architect & Backend Lead

I design backends that hold the load — and I prove it by measurement, not by intuition.

Get your backend audited

The problem I solve

A backend almost never breaks where you expect it to. In development, everything answers in a few milliseconds. In production, a list that served 20 rows reads thousands, a search scans a whole table in application code, a proxy setting makes half the traffic get rejected, and a write has been failing silently for weeks because the error was only logged.

Most teams discover their limit the day they hit it. My job is to find it first: design readable architectures, then put them under load in near-real conditions, understand precisely where time is lost, and fix what really matters — with evidence.

What I design

Architectures where each layer has a role, each decision is written down with its reason, and an AI service can be added as a component — not as a rewrite.

APIs & services

APIs and microservices

REST APIs, JWT authentication, RBAC, service boundaries, asynchronous jobs, caching, rate limiting, integration of AI inference services.

Real-time

Real-time systems

WebSockets (Socket.io, Django Channels), voice and video with WebRTC and a mediasoup SFU, room and role management.

SaaS

Multi-tenant platforms

Tenant isolation, role management, analytics dashboards, monorepos and shared packages.

Measure before optimising

When a backend already exists, I start with an instrumented performance audit. Nothing is optimised blindly.

  1. Isolatelocal bench, simulated dependencies, no production data
  2. Reproducereal network latency, realistic deterministic data
  3. Loadsmoke, load, stress, spike — in stages
  4. InstrumentCPU, memory, event loop, SQL queries
  5. Prioritisefinding, evidence, severity, fix
  6. Provebefore/after, field-by-field non-regression
  • A target per endpoint. Every route carries a latency SLO (p95); an endpoint off target becomes a finding, not an impression.
  • The real breaking point. Saturation point and maximum throughput sustained without errors, per service: that is what you size on, not an estimate.
  • Every call counted. A proxy in front of the database counts round-trips per table and per query shape: N+1 patterns and useless reads show up on their own.
  • CPU time explained. V8 profiles, event-loop blocking, slow SQL with execution plans; on the browser side, Lighthouse and time-to-data.
  • An actionable report. HTML, Markdown and JSON: grades per system, bottlenecks ranked by severity, proposed fix and status (fixed, recommendation, decision to make).
  • Tests with guardrails. On a test environment sharing the production host, load stops by itself if the machine saturates; no real provider or payment is ever called.

What I find most often

Causes rarely visible when reading the code, and almost always visible under measurement.

  • Per-row round-trips (N+1). Four sequential reads per list item, replaced with grouped reads: on a recent audit, from 81 to 5 database calls per page, with identical responses.
  • Enriching before paginating. Reading and enriching a whole table — with unbounded parallel calls — to display fifteen rows.
  • Search in code instead of the database. JSON columns scanned row by row in Node.js; the structural answer is a normalised search key, fed at write time and indexed (PostgreSQL trigrams).
  • A blocked event loop. Sorting, serialising or parsing large objects in the request path: meanwhile, every other request waits.
  • Infrastructure invisible in development. A rate limiter behind a proxy sees all traffic coming from one address and rejects most requests from a few dozen users; the fix involves trusted proxies and a constant-time limiter.
  • Silent failures. Writes refused by the database but only logged: the state never persists, and nobody notices.
  • Trade-offs made explicit. Caching permissions speeds up every request but delays a revocation: that is a security decision, which I document rather than settle alone.

Examples

  • Performance audit of a multi-service platform — public APIs, admin API and Next.js front end put under load on an isolated bench; bottlenecks prioritised, fixes delivered and verified by before/after comparison.
  • Real-time voice platform — 218,000 requests in 3 h on 2 vCPU / 2 GB. See the diagram
  • Multi-tenant B2B SaaS — Django 5, DRF, Channels, Celery, JWT, RBAC. See the diagram
  • Inference microservices — Python and ONNX services integrated into an existing platform. See the diagram
  • Video streaming — adaptive FFmpeg encoding, 1,500 concurrent users.

Read: Handling 218,000 requests on 2 vCPUs.

Tools

Design, measurement and operations:

  • Node.js
  • Fastify
  • Express
  • FastAPI
  • Django
  • Next.js
  • PostgreSQL
  • PostgREST
  • Redis
  • Socket.io
  • WebRTC
  • Docker
  • PM2
  • Nginx
  • Caddy
  • k6
  • V8 profiles
  • Lighthouse

See also: technical lead · AI architecture.

Frequently asked questions

What does a backend architect do?

They design the server side of an application: service boundaries, data model, APIs, authentication and permissions, asynchronous processing, real-time, deployment. The goal is a system that holds the load, stays secure and can evolve without a rewrite — and they should be able to prove it by measurement.

How do I know how many users my backend can handle?

By measuring it in an isolated environment that reproduces production: simulated dependencies with their real latency, realistic data, then load in stages (nominal load, stress, spike). For every endpoint you get a p95 latency compared with a target, the saturation point and the maximum throughput sustained without errors — that is the number you size the infrastructure on.

Can you audit an existing backend?

Yes. I set up an isolated measurement bench (no calls to production or to real providers), measure, profile, then deliver a prioritised report: each finding with its evidence, severity, proposed fix and status. Fixes are validated by a new campaign and by non-regression tests that compare API responses field by field.

Which performance problems do you find most often?

Per-row database round-trips (N+1), lists enriched before being paginated, searches done in application code instead of the database, synchronous computation blocking the Node.js event loop, and infrastructure settings invisible in development — a rate limiter behind a proxy, for example, that sees all traffic coming from a single address.

Microservices or monolith?

It depends on the team and the product. A well-structured monolith is often the right starting point; microservices are justified when parts of the system have different deployment rhythms, load profiles or technologies — for example an AI inference service next to a web application.

A transformation project, an architecture to design?

Companies, startups, institutions: describe your context in a few lines. I answer personally, with a first opinion on feasibility and approach.

Propose an engagement LinkedIn ↗ GitHub ↗

Engagements in Algeria, France, Europe, North Africa and remote · Arabic, French, English · contact@ouahabi-benhenni.com