← All videos

Engineering video

27:39 · 5 November 2026

Every Software Architecture Pattern Explained (Micro-Frontends, BFF, API Gateway, Event Driven)

Chapters 13 sections

  1. 0:00Why architecture is a must-know interview topic
  2. 0:40Monolithic Architecture
  3. 1:22Layered Architecture (MVC)
  4. 3:12Modular Monolith

Key concepts in this video:

1. Monolith and MVC Pattern

A monolith keeps the backend, frontend, and business logic together in a single server separate from the database. It often structures code using the Model-View-Controller pattern, where the controller handles logic, calls the model for database data, and produces the view.

Watch section from 0:33 →

2. Modular Monolith

Enforces strict module boundaries and separation of concerns across both backend and frontend to reduce tight coupling and allow parallel team development.

Watch section from 2:59 →

3. Microservices Architecture

Splits the modular backend into isolated independent services running on different servers with separate databases and runtimes, introducing challenges around distributed latency and consistency.

Watch section from 5:38 →

4. API Gateway

Acts as the single gate to downstream services deployed inside a virtual private cloud, handling HTTPS, authentication, security, and rate limiting in one place.

Watch section from 7:13 →

5. Backends for Front Ends (BFF)

Custom backend layers built for specific client applications (like web or mobile) to tailor data payloads, simplify client queries, and improve development speed.

Watch section from 8:48 →

6. Distributed Logging and Tracing

A platform requirement for microservices that attaches a unique correlation ID to incoming requests to trace execution spans across multiple downstream services.

Watch section from 10:57 →

7. Micro-Frontends

Divides the frontend into independent applications stitched together by a shell that manages shared state, supported by a shared design system.

Watch section from 12:04 →

8. Event-Driven Architecture

Uses producers, consumers, and an event broker to process messages asynchronously, allowing teams to scale and add new services in isolation despite eventual consistency trade-offs.

Watch section from 13:42 →

9. Hexagonal Architecture

Directs dependency arrows inward toward a stable core domain of high-level business entities, separating external UI, databases, and adapters.

Watch section from 18:17 →

10. Command Query Responsibility Segregation (CQRS)

Splits read operations from write operations to optimize scalable reads, trading off immediate data consistency.

Watch section from 21:00 →

11. Zero Token Architecture

Uses deterministic static rules for the main production system to save cost and reduce latency, invoking an LLM only to handle edge cases and update the rules.

Watch section from 22:38 →

12. AI Agent Architecture

Operates like a while loop where an agent processes a prompt, builds a context window from memory and tool definitions, and repeatedly calls an LLM until a condition is fulfilled.

Watch section from 23:57 →

13. Supervisor Multi-Agent Model

Employs a general supervisor agent to delegate tasks to specialized sub-agents with specific tools, preventing context window bloat and poor performance.

Watch section from 25:17 →

14. Micro Kernel Architecture

Features a core program essentials layer that can be extended dynamically by installing plugins that hook into different lifecycle events.

Watch section from 26:39 →

Transcript

Now with AI writing most of the code, software architecture has become a must-nown interview topic even for mid-level roles. The more you know about it, the more senior you'll come across in technical interviews. So today we will go through every software architecture pattern for monoliths microservices back and for front ends eventdriven and hexagonal plus some new AIdriven styles like the zeo token architecture and the architecture of an AI agent. By the end, you know exactly what problem each of the architecture styles solves. What are the trade-offs and when to pick it in production or in a system design interview. Let's start with number one, the monolith architecture. And in a monolith, we keep everything together. Both the back end, the front end, the business logic, they're all together in a single server right here. The only