Search
Lessons (33)
- Creational Patterns: How to Make Objects
… one place that knows how to create notifiers function createNotifier(type) { const Notifier = notifiers[type]; if (!Notifier) throw …
- Design a Reliable Notification System
… preferences feed priority queues, channel providers and idempotent delivery tracking](/img/system-design-l6/notifications.svg) A notification …
- SOLID at a Glance
… injected abstractions this.repository = repository; this.notifier = notifier; } async publish(report, exporter) { const file = exporter.export(report); // L …
- Interfaces vs Abstract Classes
… string) { / post to Slack webhook / } } async function alertOnCall(notifier: Notifier) { await notifier.send("oncall", "Server is down!"); } 💡 In …
- Hexagonal Architecture (Ports & Adapters)
… LoanRepository, private readonly notifier: Notifier, private readonly clock: Clock, ) {} async borrow(memberId: string, bookId: string): Promise<Loan { if …
- Inheritance
… notifications ts abstract class Notification { constructor(protected recipient: string, protected message: string) {} send() { if (!this.message.trim()) throw …
- KISS: Keep It Simple, Stupid
… welcomeTemplate(user) }); } When you have five notification channels, a strategy pattern may earn its place. With one, it …
- Event-Driven Architecture
… Event notification Just "something happened" + an ID { type: "OrderPlaced", orderId: "o42" } ; consumers call back for details Tiny events …
- Design a Chat Application
… Keep 'saving the message' separate from 'sending it out', 'who's online' and 'notifying offline phones'. The story …
- The Hot SKU Alert Problem
… The price update tries to find and notify all 10 million watchers inside the same database transaction . The …
- Go Fundamentals
… This is called implicit (or structural) satisfaction. , [budget notification behavior](https://docs …
- Behavioral Patterns I: Observer, Strategy, Command, State
… You subscribe once; every new video, you get notified. The channel doesn't know or care who you …
- Scalable Frontend Architecture
… API Global client app shell theme, short-lived notification Form form boundary dirty fields and validation Do not …
- System Design Interview Framework
… Offline users get a push notification and fetch by cursor when they open the app." 4. "Retries are …
- What Are Design Patterns?
… S["💡 Solution<br/ subscribers register;<br/ the subject notifies them"] S -- C["⚖️ Consequences<br/ loose coupling, but<br …
- Real-Time, Pub/Sub, Webhooks and CDC
… Pick the right pipe for the job - Browser only needs to listen (dashboards, notifications)? Use SSE . Each message …
- React vs Vue vs Angular
… signals (+ zone.js legacy)"] A1[signal changes] -- A2[dependents are notified] -- A3[update affected views] end - React re …
- Service Communication: Sync vs Async
… REST / gRPC] Q1 -- no Q2{Is it a notification<br/ that something happened?} Q2 -- yes Ev[Publish an …
- 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 …
- CI/CD with GitHub Actions
… production Pin action versions actions/checkout@v4 (or a full commit SHA for strict security) Notify A Slack …
- Go Web Services with Gin
… log.Fatalf("listen: %v", err) } }() ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) defer stop() <-ctx …
- Monitoring, Logs & Backups
… rotate 14 keep 14 days compress delaycompress missingok notifempty copytruncate safe for apps that keep the file open …
- Domain-Driven Design: Strategic Design
… whenever… then…") 🟪 Lilac Whenever payment fails, then notify the customer External system 🩷 Pink Stripe Hot spot …
- Rust: Types, Errors and Concurrency
… tools if let Status::Shipped { tracking } = &order.status { notify(tracking); } let Some(user) = find user(id) else { // let …
- Design a Ride-Sharing Service
… After an assignment succeeds, notify both rider and driver. Walk through a failure Dee's phone is in …
- AWS Interview Questions: Clear Answers
… It provides notifications, and reporting can be delayed. Optional budget actions have specific behaviors; they are not a …
- Caching & Redis
… consumer groups Pub/Sub PUBLISH , SUBSCRIBE Real-time notifications, chat js // Leaderboard in 3 commands await redis.zAdd …
- A WhatsApp OTP Is Only Single Use If You Make It So
… secure. Anyone who can see the phone's notifications, or who takes over the phone number, can read …
- Practical Project: Deploy a Real CRM App on EKS
… myapp-web myapp-crm-core myapp-identity myapp-notifications; do aws ecr create-repository --repository-name "$repo" --region …
- Kafka for Backend Services
… or fat events? Style Payload Pros Cons --- --- --- --- Event notification (thin) { orderId: "o-123" } Small, no stale data Every …