Search
Lessons (40)
- Cross-Service Data: How to Join Without a Database JOIN
… Their databases are private implementation details, so Order Service cannot safely run a normal SQL JOIN against User …
- Indexes, EXPLAIN & Query Plans
Design indexes from real filter, join and sort patterns, then prove improvements with query plans and production-like …
- N+1 Queries, Loading & Pagination
… It can turn a 50-row page into 50 times 20 times 10 joined rows. Ask which fields …
- SQL vs NoSQL Databases
… no JOIN needed to read it { id: ObjectId("…"), customer: { id: 17, name: "Ana", email: "ana@mail.com" }, items …
- AWS Databases: Choose the Right One
… If your design requires joins and a transaction across related rows, a relational database is a natural starting …
- Arrays & Strings
… Collect parts in an array and join("") at the end. js // ✅ Efficient string building const parts = []; for (const …
- Interfaces vs Abstract Classes
… headers.map((h) = String(r[h])).join(",")); return [headers.join(","), ...lines].join("\n"); } } class JsonExporter extends DataExporter { protected …
- Database Relations & Foreign Keys
… use a join table, never a comma-separated list An enrollment is a relationship with its own facts …
- S — Single Responsibility Principle
… then(setUser); }, [id]); if (!user) return <Spinner / ; const joined = new Date(user.createdAt).toLocaleDateString("en-GB", { year: "numeric …
- Views, Triggers & Stored Procedures
… It can simplify joins, expose a secure subset, and give clients a stable interface. A materialized view stores …
- Replication, Partitioning & Sharding
… Cross-shard joins and transactions are expensive. Prefer colocating related data, asynchronous aggregates and explicit workflows. Do not …
- Offers and Salary Negotiation
… If salary is fixed, ask for something else: joining bonus, earlier review, remote days, training budget. 5. Get …
- CQRS & Event Sourcing
… 10–1000× more Shape Normalised, enforces rules Denormalised, joined, pre-computed Storage Postgres (transactions) Elasticsearch (search), Redis (fast …
- Follow-Ups, Rejections and Your First 90 Days
… Contribute Own small features Deliver a feature end to end, join on-call shadowing, improve one doc Days …
- Preparing for Technical Interview Rounds
… job post open - [ ] Your 6-month plan and questions to ask ready - [ ] Water, and join 3 minutes early
- Rust: Types, Errors and Concurrency
… unwrap() += 1; }) }) .collect(); for h in handles { h.join().unwrap(); } println!("{}", counter.lock().unwrap()); // 8 // Message passing: many …
- StatefulSets, DaemonSets, Jobs and CronJobs
… fluent/fluent-bit:3.1 New node joins the cluster, and a pod appears there automatically. Limit it …
- YAGNI: You Aren't Gonna Need It
… escapeCsv(o.customer)},${o.total} ); return [header, ...rows].join("\n"); } If PDF export is requested next quarter, you …
- Stacks & Queues
… Queue Operation Meaning Cost (proper queue) --- --- --- enqueue(x) join the back O(1) dequeue() leave the front O …
- Small Functions That Do One Thing
… user.email, subject: "Welcome!", html: <h1 Hi ${user.email}</h1 <p Thanks for joining.</p , }); return user; } After …
- Hash Maps & Sets
… const word of words) { const key = [...word].sort().join(""); // "eat" → "aet" if (!groups.has(key)) groups.set(key …
- Abstraction
… number[]) { return data.map((d) = $${d} ).join("\n"); } } new SalesReport().generate(); // new Report(); ❌ Cannot create an instance of …
- Object Relationships: Association, Aggregation and Composition
… Disband the team → Mia still exists and can join another team. 4. Composition: "owns" (parts die with the …
- Consumers & Consumer Groups
… Understand it before relying on it. Rebalancing When a consumer joins , leaves or crashes , the group rebalances : partitions …
- Creational Patterns: How to Make Objects
… both come from the same factory return [uiFactory.createInput(), uiFactory.createButton()].map((c) = c.render()).join(""); } buildLoginForm(prefersDark …
- Finding Service Boundaries with DDD
… for example, event schemas) Shared kernel A small, jointly owned shared model (use sparingly) mermaid flowchart LR Legacy …
- Database Indexing & Transactions
… keys (automatic), foreign keys, columns in frequent WHERE , JOIN and ORDER BY clauses. Queries that can't use …
- Normalization & Denormalization
… A query cannot safely join, constrain, index, or update one item inside that string. Good 1NF shape: one …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… Test restores regularly. Choosing quickly Need Pick --- --- Known access patterns, huge scale, low ops DynamoDB Joins, ad-hoc …
- Linux Command-Line Essentials
… combining commands ⭐ The real power of the shell is joining small commands together . Symbol Meaning Example --- --- --- \ Send the …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… filtering, mapping, joining streams, windowed aggregations, with exactly-once support. No separate cluster needed; it runs inside your …
- From Software Architect to AI Architect: The 24-Week Plan
… evaluation Month 5 The capstone in Week 24 joins projects 1, 2 and 3 into one deployed platform …
- Data in Microservices: Sagas & the Outbox Pattern
… Options: Approach How Trade-off --- --- --- API composition A BFF/gateway calls each service and joins in memory Simple …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… mediator between users class ChatRoom { members = new Map(); join(user) { this. members.set(user.name, user); user.room …
- Batch vs Stream and Data Modeling
… data and easy, safe writes Reading may need joins (combining several tables). Denormalized read model You've measured …
- Python Web APIs: FastAPI and Django
… objects.select related("owner").filter(title icontains="report") JOIN, avoids N+1 Task.objects.get(pk=1) raises …
- Domain-Driven Design: Strategic Design
… Two teams succeed or fail together; they plan jointly Tightly linked features, good collaboration Shared kernel A small …
- Big Data: ETL, Warehouses and Streaming
… collect, filter, deliver. ETL E xtract data, T ransform (clean, join, sum) it, L oad it where reports …
- Proxies, APIs and Real-Time Protocols
… when they connect, and re-check permission before joining sensitive channels (like a private room). 2. Send heartbeats …
- Database Internals, Replication and Scaling
… you ask Type Good at Example --- --- --- Relational (SQL) Joins, transactions, strict rules Orders, payments Document Flexible nested records …