Search
Lessons (15)
- Go Concurrency: Goroutines, Channels and Context
Concurrency vs parallelism, goroutines and the scheduler, buffered and unbuffered channels, select, WaitGroup, Mutex and atomics, worker pools …
- Design a Reliable Notification System
… Create a durable notification intent with recipient, template version, channel and business-event identity. 2. Route urgent and …
- Message Queues & RabbitMQ
… crypto.randomUUID() }, // write to disk ); js // consumer.js const channel = await connection.createChannel(); await channel.assertQueue("emails", { durable …
- The Hot SKU Alert Problem
… Give each delivery a stable identity such as product/version/user/channel, isolate bulk capacity, and apply preference …
- Backend Languages: Node.js, Go, Python & Rust
… NestJS adds structure. - Go: goroutines and channels, simple and fast, the language of cloud infrastructure. - Python: the king …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… Iterator 📺 Analogy: A TV remote's "next channel" button. You don't need to know how channels are …
- Rust: Types, Errors and Concurrency
… many producers, one consumer let (tx, rx) = mpsc::channel(); for id in 0..3 { let tx = tx.clone …
- 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 …
- I — Interface Segregation Principle
… Your grandmother only wants to change channels. Every extra button is confusion and a chance to open the …
- KISS: Keep It Simple, Stupid
… welcomeTemplate(user) }); } When you have five notification channels, a strategy pattern may earn its place. With one, it …
- Choosing a Programming Language
… loop + async/await asyncio , threads (GIL), processes Goroutines + channels Threads + async (Tokio), no data races Startup / deploy node …
- Event-Driven Architecture
… fact, past tense OrderPlaced { orderId, total, at } Event channel / broker Delivers events to consumers Kafka, RabbitMQ, SNS/SQS …
- Go Fundamentals
… float64 0 string "" bool false pointer, slice, map, channel, func, interface nil struct every field at its zero …
- A WhatsApp OTP Is Only Single Use If You Make It So
… They are no longer useful and they hold security-relevant data. - Messaging channels are not secure. Anyone who …
- 500 Users Upload Documents at Once: Design the Background Job Pipeline
… 5. Track: the frontend polls GET /jobs/{id} (or listens on a real-time channel) and shows queued …