Search
Lessons (40)
- VPC Networking Without the Confusion
… load balancer] ALB -- APP[Private subnet: app] APP -- DB[Private subnet: database] “Public” does not mean a subnet …
- Real-Time, Pub/Sub, Webhooks and CDC
… an event stream can feed pub-sub consumers, webhook delivery, server-sent updates and database change capture](/img …
- Vertical Slice Architecture & the Modular Monolith
… public interfaces. mermaid flowchart TB subgraph App["🏢 One deployable application"] direction LR subgraph M1["📦 Ordering module"] O1[public …
- Message Queues & RabbitMQ
… Only one worker should do it. - Pub/Sub: "a user signed up". Email, analytics and CRM all want …
- Event-Driven Architecture
… Write model publishes; read model projects Fast, tailored reads; eventual consistency mermaid flowchart LR subgraph N["Event notification …
- Service Communication: Sync vs Async
… one or many subscribers Coupling The sender knows who does the work The publisher doesn't know who …
- Monolith vs Microservices
… Modules talk only through public interfaces, never by reaching into each other's tables. mermaid flowchart TB subgraph …
- Encapsulation
… string; // only inside User protected role = "member"; // User and subclasses public name: string; // everyone constructor(id: string, name …
- AWS Interview Questions: Clear Answers
… questions with worked answers Does a public subnet make every instance public? No. It has a route to …
- Data in Microservices: Sagas & the Outbox Pattern
… A separate relay process reads the outbox and publishes to the broker. mermaid flowchart LR subgraph Tx["One …
- Domain-Driven Design: Tactical Patterns
… load → call domain → save → publish PlaceOrderHandler Domain event Something that happened in the domain OrderPlaced , OrderShipped Factory Encapsulates …
- Domain-Driven Design: Strategic Design
… Domains and subdomains, ubiquitous language, bounded contexts, all the context-mapping patterns, and event storming to discover them …
- C4 Architecture Diagrams: Context, Container, Component and Code
… it checks the catalogue, asks the payment adapter to charge the card, saves the order and publishes an …
- Inheritance
… In code, a child class (subclass) inherits the properties and methods of a parent class (superclass or base …
- Caching & Redis
… XADD , XREADGROUP Event log with consumer groups Pub/Sub PUBLISH , SUBSCRIBE Real-time notifications, chat js // Leaderboard in …
- Behavioral Patterns I: Observer, Strategy, Command, State
… Observer (Pub/Sub) 📰 Analogy: A YouTube channel. You subscribe once; every new video, you get notified. The channel …
- Onion Architecture & Clean vs Hexagonal vs Onion
… postgres, stripe (Hexagonal adapters) How these relate to Layered architecture mermaid flowchart TB subgraph L["Layered: dependencies point …
- AWS Messaging: Queues, Topics and Events
… A publisher reads pending outbox rows, sends events, and marks publication progress. A crash after sending but before …
- API Gateway, BFF & Service Discovery
… Hard-coding 10.0.3.17:8080 doesn't work. mermaid flowchart LR subgraph Registry["📒 Service registry"] R …
- CloudFront: Faster Websites and Safer File Delivery
… Use Origin Access Control so CloudFront can read the bucket but the public internet cannot. 4. Add an …
- What Is Apache Kafka?
… Services publish events to it and other services consume them asynchronously, so producers and consumers don't need …
- Run Containers on AWS with ECR and ECS
… Create an ECS service in private subnets. 4. Put an ALB in front of it and configure a …
- REST vs GraphQL vs gRPC
… See how each works, compare them side by side, and learn which to pick for public APIs, mobile …
- Practical Project: Deploy a Real CRM App on EKS
… Create the cluster and node group eksctl creates the VPC, public and private subnets, NAT gateway, IAM roles …
- SOLID at a Glance
… injected abstractions this.repository = repository; this.notifier = notifier; } async publish(report, exporter) { const file = exporter.export(report); // L …
- Kafka for Backend Services
… when to reach for it, designing events, topics and keys, publishing safely with the transactional outbox, idempotent consumers …
- AWS Databases: Choose the Right One
… Put the database in a DB subnet group using private subnets spanning the required AZs. Disable public accessibility …
- EC2, Storage and Auto Scaling
… Use a public subnet with an internet-gateway route and assign a public IPv4 address for this temporary …
- RBAC and Cluster Security
… prod subjects: - kind: ServiceAccount name: ci-bot namespace: prod roleRef: kind: Role name: pod-reader apiGroup: rbac.authorization …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… db", "database.dbname": "orders", "table.include.list": "public.orders,public.outbox", "topic.prefix": "shop" } } Change Data Capture (CDC …
- Which Pattern Do I Need?
… lessons: Object-level pattern System-level cousin --- --- Observer Pub/Sub, Kafka topics, event-driven architecture Facade API Gateway …
- Finding Service Boundaries with DDD
… mermaid flowchart TB subgraph Catalog["📚 Catalog context"] CP["Product<br/ name, images, description"] end subgraph Ordering["🛒 Ordering …
- What Are Design Patterns?
… one change"] P -- S["💡 Solution<br/ subscribers register;<br/ the subject notifies them"] S -- C["⚖️ Consequences<br/ loose …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… Buffering work, smoothing spikes SNS Pub/sub fan-out One event, many subscribers EventBridge Event bus with rules …
- Frontend Performance & Core Web Vitals
… stop things jumping mermaid flowchart LR subgraph Before["❌ Image loads without reserved space"] B1["Headline<br/ [Buy button …
- OOP Mistakes and Interview Questions
… open for extension, closed for modification. - L iskov Substitution: subclasses must be substitutable. - I nterface Segregation: many small …
- Collaborative Document Editing & Real-Time Sync
… It is sent through pub/sub and thrown away, never written to the op log. (Note the difference …
- Multi-Account Strategy, Governance and Security Operations
… isolate instance, disable key] Preventive controls checklist - Block public S3 access at the account level. - Enforce encryption (EBS …
- Choosing an Architecture
… a realistic example mermaid flowchart TB subgraph Mono["🏢 Modular monolith (one deployable)"] direction LR subgraph Ord["📦 Ordering: Hexagonal …
- REST API Design
… true } } mermaid flowchart LR subgraph Offset["OFFSET 100000 LIMIT 20"] o["DB reads and throws away<br/ 100 …