Search
Lessons (40)
- MVC, MVP & MVVM
… Model–View–ViewModel The ViewModel exposes observable state and commands . The View binds to them, so when the …
- Views, Triggers & Stored Procedures
Interview answers for views, materialized views, triggers and stored procedures. Covers PDF questions 20, 24 and 27-30 …
- Premiere-Night Video Streaming
… 2,000,000 viewers × 5 Mb/s = 10,000,000 Mb/s = 10 terabits per second (Tb/s …
- Running Kafka in Production: The DevOps View
Is Kafka a DevOps tool? What developers own vs what operators own, running a 3-broker KRaft cluster …
- Python Web APIs: FastAPI and Django
… model = Task fields = ["id", "title", "done", "created at"] tasks/views.py from rest framework import permissions, viewsets class …
- CloudFront: Faster Websites and Safer File Delivery
… Redirect HTTP viewers to HTTPS and allow only needed methods. 6. Wait for deployment and open the distribution …
- TypeScript in Practice
… z.enum(["admin", "editor", "viewer"]).default("viewer"), }); type CreateUser = z.infer<typeof CreateUser ; // one source of truth app …
- Drift, Troubleshooting, and Disaster Recovery
… It produces a partial view and can leave the rest of the configuration unreconciled. After any justified targeted …
- Cross-Service Data: How to Join Without a Database JOIN
… it is to choose where the cross-service view should be assembled. mermaid flowchart LR C[Client] -- BFF …
- Collaborative Document Editing & Real-Time Sync
… Keep cursors out of storage Cursor moves and "Alice is viewing" are sent live and then forgotten. They …
- Design a Logging and Monitoring Platform
… Write once to a durable stream, then build views from it 1. Agents send to an ingestion gateway …
- Design a Social Media Feed
… So when serving a feed, filter each post: - Deleted? Hide it. - Author went private, or blocked this viewer …
- DBMS Foundations, Keys & Normalization
… Abstraction, dependencies and design Physical level describes storage; logical level describes entities and relations; view level exposes a …
- Layered (N-Tier) Architecture
… mermaid flowchart TB P["🖥️ Presentation<br/ controllers, views"] -- B["⚙️ Business<br/ services, rules"] B -- D["🗃️ Persistence …
- What Is Apache Kafka?
… They had dozens of systems that all needed the same data (page views, profile updates, messages), and point …
- Capacity Planning, SLOs and Error Budgets
… 1. Latency-only view: p99 is 40 ms. Looks wonderful. Wrong. 2. Success + latency view: good requests drop …
- Product-Scale Frontend Patterns
… fast, reversible feedback An optimistic update changes the local view before the server confirms it. It should have …
- AWS Security Building Blocks
… AWS identity A shop customer signs in to view their orders. An employee signs in to administer the …
- Processes, Services & systemd
… shorter top live view, sorted by CPU (q to quit) htop nicer live view (sudo apt install htop …
- Rust: Ownership, Borrowing and Lifetimes
… T] Owned (can grow, you free it) Borrowed view (read-only window) --- --- String &str (string slice) Vec<T …
- Clean Architecture in Depth
… V as View / HTTP response C- UC: execute(requestModel) UC- P: present(responseModel) P- V: view model (formatted …
- React vs Vue vs Angular
… signals (+ zone.js legacy)"] A1[signal changes] -- A2[dependents are notified] -- A3[update affected views] end - React re …
- Abstraction
… number) { / backoff… / fn(); } } // The caller's view: one simple line new EmailService().send("ana@example.com", "Welcome!", "Thanks …
- How Browsers Render a Page
… Layout (reflow) The browser calculates the exact position and size of every box, based on the viewport width …
- Encapsulation
… Return a copy or a read-only view. - Getters and setters for everything. That's just a public …
- Topics, Partitions & Offsets
… named stream of related events: orders , payments , page-views , user-signups . bash kafka-topics.sh --create --topic orders …
- Authentication, Authorization & API Security
… based) Permissions attached to roles admin can delete, viewer can read ABAC (attribute-based) Rules over attributes "Managers …
- CQRS & Event Sourcing
… With CQRS, a projector keeps an order summaries view with exactly those fields, so one fast query, no …
- Atomic Design & Component Libraries
… name, contrast, screen-reader flow Responsive layout narrow viewport, long labels, translated text Regression safety unit tests for …
- Users, Permissions & sudo
… On a file On a folder --- --- --- r (read) View the contents List the files inside w (write) Change …
- Node.js and Express
… Select snapshot 2, switch the view from Summary to Comparison , and sort by Size Delta . 7. Click the …
- Kafka for Backend Services
… update that ignores older events INSERT INTO order view (order id, status, version) VALUES ($1, $2, $3) ON …
- Choosing an Architecture
… DB; changes cross all layers MVC / MVVM Separate view from model and logic UI code (server pages, SPAs …
- AWS Data Pipelines in Plain Language
… Decide whether reports are immutable snapshots, revised partitions, or views over corrected data. Store an event time and …
- Run Containers on AWS with ECR and ECS
… The ALB security group accepts the intended viewer traffic. The task security group accepts port 80 from the …
- Architecture Patterns at Scale
… Event-driven Durable side effects, building read-only views Handling duplicate or late events Serverless job Spiky, isolated …
- Big Data: ETL, Warehouses and Streaming
… purchases, page views, clicks. Two teams want numbers: - Finance wants yesterday's revenue, exact, and the same every …
- Timeouts, Retries & Backpressure
… Now even pages that have nothing to do with shipping (like "view my profile") are slow, because all …
- Observability and Incident Response
… there are only a few of each. </details --- Going deeper Three views of the same problem Imagine checkout …
- Database Internals, Replication and Scaling
… A proxy (like PgBouncer for Postgres) can share connections across many app servers. - Materialized views / denormalized tables: precomputed …