MajdiB

Software Engineer · Gen AI Solutions Architect

I design
  • APIs
  • AI agents
  • API gateways
  • RAG pipelines
  • cloud architectures
  • event pipelines
  • agent workflows
that
  • scale
  • adapt
  • stay observable
  • hold up
  • evolve safely
  • stay resilient
  • age well
without
  • falling apart.
  • breaking down.
  • losing clarity.
  • surprising anyone.
  • losing control.
  • needing rewrites.

I work across distributed systems, API/AI gateways, agent-to-agent (A2A) and RAG architectures on AWS, turning complex technical and business requirements into reliable software.

What I work on

01

Distributed Systems

Designing services that stay correct and observable under failure, retries and partial outages.

02

System Architecture

Translating business requirements into components, contracts and trade-offs that remain understandable over time.

03

Event-Driven Architecture

Decoupling services with asynchronous messaging, handling idempotency, retries and event evolution.

04

API & AI Gateways

Fronting services and models behind API and AI gateways: auth, rate limiting, routing and observability for both APIs and LLM traffic.

05

Agents, MCP & RAG

Designing agent-to-agent (A2A) workflows, MCP-based tool access and RAG pipelines as components inside larger systems, not as the whole system.

06

AWS & Cloud Infrastructure

Building and operating cloud-hosted systems on AWS with an eye on reliability and cost.

About me

I'm Majdi, As a Software Engineer I am trained and experienced in designing, constructing, testing and supporting systems.

My main focus is building fast, accessible, and engaging apps that resolve problems and users enjoy.

Majdi Profile

Experience & Education

Software Engineering MSc.

INSAT, Tunisia

I have a strong foundation in advanced software development, system design, and project management. My academic journey at INSAT honed my technical expertise and analytical skills, allowing me to tackle complex software challenges.

Gen AI Solutions Architect

Sanofi

Currently, I work as a Gen AI Solutions Architect at Sanofi, where I design technology solutions that align with the company's strategic goals in the healthcare industry.

My focus is on API and AI gateways, agent-to-agent (A2A) and MCP-based agent architectures, and RAG pipelines, mostly built on AWS.

I collaborate closely with cross-functional teams to translate business requirements into scalable, efficient and secure systems, ensuring the seamless integration of these technologies.

How I think

A few positions I keep coming back to in my writing.

Resilience is a behavior, not a library. Installing a circuit breaker doesn't give you resilience — noticing you're hurting something and stopping does, and you can still get that wrong with the right library installed.

Every hidden cost eventually becomes someone's incident. Patterns like event sourcing or the outbox pattern trade one class of problem (dual writes, lost updates) for another (replay cost, eventual consistency) — worth it, but only if you're honest about the trade before you ship it.

GenAI agents don't need a new design discipline to be trustworthy — treating them as microservices with a new set of capabilities lets you reuse the best practices we already have for reliability, boundaries and observability.

Thinking about systems

Notes on distributed systems, architecture, event-driven design and AI engineering.

Event-Driven Architecture: The Future of Scalable Systems Explained

Event-Driven Architecture: The Future of Scalable Systems Explained

EDA Microservices Serverless Event Sourcing CQRS

If you’re diving into microservices or looking to scale your systems, you’ve probably heard of <b>Event-Driven Architecture (EDA)</b>. It’s a buzzword for a reason — EDA is a game changer when it comes to building responsive, scalable applications. But what exactly is it, and how does it stack up against more traditional approaches? Let’s break it down.

6 min read

Bounded Contexts Are Org Charts in Disguise

Bounded Contexts Are Org Charts in Disguise

DDD System Design Microservices

Conway's Law says systems mirror the communication structure of the organizations that build them. Domain-Driven Design says a bounded context should mirror the domain. Most of the time, the domain loses that argument.

6 min read

Domain Events vs Integration Events: The Line Your Team Keeps Crossing

Domain Events vs Integration Events: The Line Your Team Keeps Crossing

DDD EDA Microservices

Both are called 'events.' Both get published to a broker. That surface-level similarity is exactly why teams keep publishing one where they should be publishing the other, and why the mistake is so hard to notice until a schema change breaks three unrelated services.

6 min read

See more articles Browse the full writing index →

Have an interesting systems problem?

I'm interested in architecture, distributed systems, AI engineering and technically challenging products.

We use cookies on this site to enhance your user experience

By clicking the Accept button, you agree to us doing so. More info on our cookie policy