Ahmed Nagi

Available now in Dubai, UAE

Hi, I’m Ahmed Nagi.
I build the backends businesses run on.

Backend developer working in ASP.NET Core (C#) and Laravel (PHP). I build ERP, e-commerce, booking and real-time systems that stay correct when real money, real stock and real users hit them at once.

Ahmed Nagi in a dark suit and glasses
Role
Backend Developer
Main stack
ASP.NET Core, C#
Also ships
Laravel, PHP
Based in
Dubai, UAE residence visa
  • ASP.NET Core
  • C#
  • .NET 10
  • EF Core
  • Laravel
  • PHP 8
  • RabbitMQ
  • Wolverine
  • gRPC
  • YARP
  • Keycloak
  • SQL Server
  • PostgreSQL
  • MySQL
  • Redis
  • Docker
  • GitHub Actions
  • OpenTelemetry
  • xUnit
  • Testcontainers
  • Pest

Running in production

25,000+ users

Al-Badr Pro ERP

An ERP for sales, procurement, returns and inventory. I built its backend at AL-Badr Systems with Laravel and PostgreSQL: multi-item invoicing that stays consistent under concurrent requests, a promotional pricing engine, live stock tracking and permissions per employee and branch.

100+ users on each app

Client apps at Rmoz

Backends and real-time features for five client products: Marsa Tours (travel booking on web and mobile), Farhty (social and contests), Nawrt (restaurant ERP), Tadabeer and Health is Your Wealth.

E-Commerce Microservices

My flagship .NET project: a checkout that stays correct when parts of the system fail.

Catalog, Basket and Ordering run as independent ASP.NET Core (.NET 10) services, split by DDD bounded contexts. Each one owns its SQL Server database, with no joins across services. They talk through RabbitMQ with Wolverine, behind a YARP gateway and a Backend-for-Frontend secured by Keycloak (OAuth 2.0 and OpenID Connect).

Timeline
July 2026 to present
Built with
C#, .NET 10, EF Core, SQL Server, gRPC, RabbitMQ, Wolverine, YARP, Keycloak, Redis, OpenTelemetry, .NET Aspire, xUnit, Testcontainers, Docker Compose, GitHub Actions

Break the checkout and watch it recover

ShopperWeb or mobile appCart ready
API GatewayYARP, BFFWaiting
KeycloakOAuth 2.0, OIDCIssues tokens
BasketRedis1 item
OrderingSQL Server, outboxNo order yet
CatalogSQL Server, inboxStock: 3
RabbitMQvia WolverineRunning

    A simplified model of the checkout saga, for illustration. The real code is on GitHub.

    What is inside

    • Catalog, Basket and Ordering services, each with its own database
    • RabbitMQ messaging with Wolverine, transactional outbox and durable inbox
    • Checkout saga with compensating stock release
    • gRPC between Basket and Catalog, with retry, timeout and circuit breaker
    • YARP API gateway with rate limiting and a Backend-for-Frontend
    • Keycloak sign-in with JWT and role-based authorization
    • OpenTelemetry tracing and metrics with .NET Aspire, Serilog and health checks
    • xUnit and Testcontainers tests running in a GitHub Actions CI/CD pipeline
    • HybridCache (memory and Redis) and optimistic concurrency with RowVersion
    • Hardened Docker Compose setup for every service

    Problems I have solved in real code

    The bugs that cost a business money usually come from two things happening at once. These are the ones I have handled, and where the code lives.

    The problemWhat I didWhere
    Two customers book the last seat at the same moment.A Redis distributed lock around the reservation, inside a database transaction. A scheduled job frees seats that were never paid for.Marsa Tours API
    A payment webhook arrives twice, or together with another update.Row-level locking (lockForUpdate) so the payment status ends up right whatever order the callbacks arrive in.Marsa Tours API
    A multi-item invoice saves halfway, and stock or balances drift.ACID transactions around invoicing and returns: every line, stock movement and balance commits together or not at all.Al-Badr Pro ERP
    A service saves its data, then crashes before sending the event.Transactional outbox: the data and the message are saved in one transaction and published afterwards.E-Commerce Microservices
    The broker delivers the same message twice.Durable inbox: every message ID is processed once.E-Commerce Microservices
    A checkout spans three services and fails halfway.Saga orchestration with a compensating step that releases reserved stock.E-Commerce Microservices
    Two people edit the same record and one change silently overwrites the other.Optimistic concurrency with a RowVersion check.E-Commerce Microservices
    API responses slow down as the data grows.Query and index tuning with caching in the ERP; HybridCache (memory and Redis) in the microservices.Al-Badr Pro ERP, E-Commerce Microservices
    A monolith where every module reaches into every other.A modular monolith: Order, Payment, Product and User modules that talk only through events.Modular Monolith E-Commerce

    More projects

    April 2026

    Marsa Tours: Tour Booking and Payments API

    Laravel 10, PHP 8.2, MySQL, Redis, Laravel Horizon, Filament 3, Tap Payments, Pest

    • Rebuilt the Marsa Tours backend as a versioned REST API for tours, trips, availability, bookings and payments, in Arabic and English.
    • Stopped overbooking with Redis locks around seat reservation inside transactions, and a scheduled queued job that releases unpaid seats.
    • Integrated Tap Payments behind a payment provider interface, with webhooks and row-level locking. Added Vonage SMS OTP, Google and GitHub sign-in, PDF booking emails and a Filament admin panel.

    March to April 2026

    Modular Monolith E-Commerce Backend

    Laravel 13, PHP 8.3, MySQL, queues, events and listeners, Pest

    • Split a Laravel e-commerce backend into Order, Payment, Product and User modules, each with its own provider, migrations, DTO contracts and tests.
    • Built an event-driven checkout (OrderStarted, PaymentSucceeded, PaymentFailed, OrderFulfilled) with queued listeners for stock, completion, failures and emails.
    • Put payments behind a PaymentGateway interface (Strategy pattern) and kept orders, payments and stock consistent with transactions and integer money.

    June to December 2023

    Multi-Vendor E-Commerce Platform

    Laravel, PHP, MySQL

    • A multi-tenant, multi-vendor store backend with automated vendor onboarding, payment and shipping integrations and a catalog in several languages.

    2024, graduation project

    AI Virtual Try-On

    Laravel, AI image models

    • The backend of an AI-powered e-commerce platform: a Laravel API that calls AI image models for virtual try-on. It won the 1st Place Award among graduation projects and was graded A+.

    Experience and education

    Everything since 2020 on one time scale, including my completed military service.

    Work Project Education Military service

    BSc Computer Science, Mansoura University Sep 2020 to Jul 2024

    Multi-Vendor E-Commerce Jun to Dec 2023

    ITI course, Web Development Using PHP Jul to Sep 2023

    Backend Developer, Rmoz May to Dec 2024

    Military service, completed Jan 2025 to Mar 2026

    Modular Monolith E-Commerce Mar to Apr 2026

    Marsa Tours booking API Apr 2026

    Backend Developer, AL-Badr Systems Jun to Aug 2026

    E-Commerce Microservices Jul 2026 to today

    Backend Developer, AL-Badr Systems

    June to August 2026
    El Mahalla, Egypt

    Laravel, PHP, PostgreSQL, Docker

    • Built the backend of Al-Badr Pro, a production ERP REST API for sales, procurement, returns and inventory, used by more than 25,000 users.
    • Implemented ACID transactions for multi-item invoicing and returns, keeping stock and balances consistent under concurrent requests.
    • Developed a promotional pricing engine, live inventory tracking and role-based access control for employees and branches.
    • Tuned queries, indexes and caching to cut API response time, and moved the dev environment to Docker.

    Military Service, Egyptian Armed Forces

    January 2025 to March 2026

    • Mandatory service, completed.

    Backend Developer, Rmoz Company

    May to December 2024
    Mansoura, Egypt

    Laravel, PHP, MySQL, WebSockets, Pest

    • Marsa Tours (web and mobile): built the backend and a booking engine with real-time availability.
    • Farhty (social and contests): real-time engagement with Laravel Reverb and Pusher, feed logic and contest rules that hold up with many users at once.
    • Nawrt (restaurant ERP): order-lifecycle APIs, inventory reconciliation, real-time order events and Excel reports.
    • Delivered REST APIs with Pest tests for Tadabeer and Health is Your Wealth.

    BSc Computer Science (Software Engineering), Mansoura University

    September 2020 to July 2024

    • GPA 3.2 (B+).
    • 1st Place Award for my graduation project, AI Virtual Try-On (A+).

    Web Development Using PHP, Information Technology Institute (ITI)

    July to September 2023

    • 150-hour course: PHP, Laravel, MySQL and JavaScript.

    Stack

    Languages: C#, PHP 8 and SQL. Spoken: Arabic (native) and English (professional working proficiency).

    .NET

    ASP.NET Core Web API (.NET 10), Entity Framework Core, LINQ, Minimal APIs, gRPC, dependency injection, middleware, background services, HybridCache, .NET Aspire

    PHP and Laravel

    Laravel, Eloquent, queues and Horizon, events and listeners, Sanctum, Socialite, Reverb, Pusher, Filament, Form Requests, action classes, DTOs

    Architecture

    Microservices, modular monolith, Domain-Driven Design, Clean Architecture, CQRS, database per service, SOLID, design patterns, multitenancy, ADRs

    Messaging and consistency

    RabbitMQ, Wolverine, event-driven architecture, saga orchestration, transactional outbox, inbox, idempotency keys, distributed locks, optimistic concurrency

    Data and caching

    SQL Server, PostgreSQL, MySQL, Redis, SQLite, migrations, indexing, query optimization, ACID transactions, cache-aside, distributed caching

    Security

    OAuth 2.0, OpenID Connect, Keycloak, JWT, role-based access control, rate limiting, secrets management, image scanning with Trivy

    Testing

    xUnit, Testcontainers, WebApplicationFactory, Pest, unit, feature and integration tests

    DevOps

    Docker, Docker Compose, GitHub Actions, GitHub Container Registry, Linux, Nginx, Caddy, Git

    APIs and observability

    REST API design, OpenAPI and Swagger, Tap Payments, webhooks, OpenTelemetry, Serilog, health checks, retry, timeout and circuit breaker policies

    Need a backend for your product?

    I take on freelance backend work, from a new API for your web or mobile app to fixing a Laravel or .NET system that has become slow or fragile.

    • APIs for web and mobile apps

      REST APIs with sign-in, roles, admin panels and clear documentation.

    • ERP and inventory systems

      Sales, purchasing, returns and stock that stay consistent.

    • Booking and payments

      Reservations without double booking, Tap Payments, webhooks and OTP.

    • Real-time features

      Live updates, notifications and contests with Reverb, Pusher and WebSockets.

    • E-commerce backends

      Single or multi-vendor stores, checkout, orders and stock.

    • Speed and reliability fixes

      Slow queries, race conditions and missing tests in an existing app.

    How a project runs

    1. A short callWe talk about the product, its users and what must not go wrong.
    2. A written planData model, API outline, milestones and price, agreed before any code.
    3. Builds you can tryRegular demos, with tests on the parts that touch money and stock.
    4. Launch and handoverDocker-based deployment, documentation and the full source code.

    Let’s talk

    Available to start now in the UAE, on-site, hybrid or remote.

    I also write about .NET internals and system design on LinkedIn: idempotency, DI lifetimes and the request pipeline.