Search
Lessons (24)
- Object Relationships: Association, Aggregation and Composition
… Passed in from outside → aggregation. 2. Can the part live without the whole? No → composition. Yes → aggregation. Aggregation …
- Domain-Driven Design: Tactical Patterns
… No more re-validating strings all over the code. Aggregates: the consistency boundary ⭐ An aggregate is a group …
- Finding Service Boundaries with DDD
… references by ID only Aggregate rules of thumb: - Keep aggregates small . - Reference other aggregates by ID , not by …
- SQL Interview Query Drills
… define grouping, compute an aggregate, then filter with a clear tie policy](/img/database-interviews/sql-drills.svg …
- Replication, Partitioning & Sharding
… Prefer colocating related data, asynchronous aggregates and explicit workflows. Do not shard because it sounds scalable; exhaust indexing …
- API Gateway, BFF & Service Discovery
… routing, auth, rate limiting, TLS, aggregation. Keep business logic out. - A BFF tailors an API to one client …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… filtering, mapping, joining streams, windowed aggregations, with exactly-once support. No separate cluster needed; it runs inside your …
- Putting AI Systems into Production
… Monitor aggregate quality signals and operational errors. User feedback can reveal problems, but it is not a substitute …
- AI Evaluation, Safety, and Security
… Monitor real-world aggregate signals and investigate failures with privacy-respecting traces. Security and privacy - Prompt injection: user …
- OOP Mistakes and Interview Questions
… In aggregation , the parts are created elsewhere and can exist on their own ( Team ◇— Player ). </details <details <summary …
- Kafka for Backend Services
… input.items }, }; await client.query( "INSERT INTO outbox (id, aggregate id, topic, event type, payload) VALUES ($1, $2 …
- What Is Apache Kafka?
… tracking clicks, page views, searches Log and metrics aggregation logs from 1,000 servers Stream processing real-time …
- Multi-Account Strategy, Governance and Security Operations
… and S3, EKS and malware scanning Security Hub Aggregates findings and scores against standards (CIS, AWS Foundational) Macie …
- CQRS & Event Sourcing
… for queries. mermaid flowchart LR C[Command] -- A["Aggregate<br/ (rebuilt from events)"] -- new events ES[(Event store …
- Choosing an Architecture
… business?"] -- A3["DDD strategic (boundaries)<br/ DDD tactical (aggregates…)"] You pick an answer to each question. For example …
- Async JavaScript: Promises, async/await and Node's Event Loop
… Timeouts Promise.any the first fulfils all reject ( AggregateError ) Fastest of several mirrors js const results = await Promise …
- CloudWatch: Know What Your App Is Doing
… Specify the metric, aggregation, period, threshold, evaluation windows, missing-data behavior, notification target, and owner. A possible learning …
- Cross-Service Data: How to Join Without a Database JOIN
… Do not copy the entire User aggregate. Replicate only the fields needed for the local use case, give …
- Data in Microservices: Sagas & the Outbox Pattern
… cus 7', 8997, 'PENDING'); INSERT INTO outbox (id, aggregate id, type, payload, created at) VALUES (gen random uuid …
- Domain-Driven Design: Strategic Design
… language, bounded contexts, context maps Entities, value objects, aggregates, repositories, domain events Answers Where do we draw boundaries …
- Jenkins in Production: Deploys, Docker and Scaling
… yaml text plugins.txt configuration-as-code workflow-aggregator git github-branch-source ssh-agent docker-workflow credentials …
- Indexes, EXPLAIN & Query Plans
… with UNION ALL of two indexed queries. - Pre-aggregate heavy dashboard queries into a materialized view or summary …
- Caching & Redis
… risk Database materialized view Expensive joins, reports and aggregations Durable and queryable; refresh on a schedule or after …
- C4 Architecture Diagrams: Context, Container, Component and Code
… It can show classes, interfaces, functions, packages or aggregates, depending on the language and team conventions. Because code …