Search
Lessons (40)
- Service Communication: Sync vs Async
… e.g. 'is this coupon valid?'" Sync[Synchronous: REST / gRPC] Q1 -- no Q2{Is it a notification<br …
- Brokers, Replication & Durability
… Brokers, leaders and followers, in-sync replicas, min.insync.replicas, leader election and KRaft, drawn step by step …
- Go Concurrency: Goroutines, Channels and Context
… Channels both move data and synchronize : a goroutine waiting on a channel simply pauses until it can continue …
- React Hooks in Practice
… Use it to synchronise with things outside React : subscriptions, timers, browser APIs, non-React widgets. jsx useEffect(() = { // setup …
- Product-Scale Frontend Patterns
… Decide which reads can be stale, which writes can queue, how conflicts resolve, and how users see sync …
- Rust: Types, Errors and Concurrency
… Two marker traits do the work: Send (can be moved to another thread) and Sync (can be shared …
- Kafka Producers
… fetch + replicate L-- P: ✅ ack (in-sync replicas have it) acks Producer waits for Speed Can lose data …
- Collaborative Document Editing & Real-Time Sync
… 5. Measure: how long edits take to reach others (sync lag), and how long recovery from a snapshot …
- CQRS & Event Sourcing
… a write model for commands, a read model for queries, synced by events](/img/microservices/cqrs.svg) mermaid …
- Async JavaScript: Promises, async/await and Node's Event Loop
… log("nextTick")); console.log("sync"); <details <summary What's the output?</summary text sync nextTick promise timeout (these …
- Architecture Patterns at Scale
… A customer has just paid . - ❌ If checkout calls catalog synchronously (waiting for an answer) to finish the order …
- JavaScript Essentials: Event Loop, Closures & this
… click.</summary 1, 4, 3, 2 1. "1" : synchronous, runs immediately. 2. setTimeout : the callback goes to the …
- Message Queues & RabbitMQ
… Why use a queue? mermaid flowchart LR subgraph Sync["❌ Synchronous: user waits for everything"] direction LR U1[Signup …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… sync .- S[(Multi-AZ standby)] Multi-AZ is for availability - RDS Multi-AZ keeps a synchronous standby in …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… Standard and synchronous/asynchronous Express have distinct semantics; see [workflow types](https://docs.aws.amazon.com/step-functions …
- Configuration, Secrets and Storage
… In production, store the real values in AWS Secrets Manager, Vault, or another secret manager, then sync them …
- React Internals & Concurrent Rendering
… Rendering can be restarted or interrupted in concurrent React; commit is the visible, synchronous update. mermaid flowchart LR …
- Multi-Region and Disaster Recovery
… the second region before the customer sees "confirmed" ( synchronous replication). That adds the cross-region trip to every …
- Your Practical Kubernetes Workflow
… revert the Git change, then let the tool sync it. A small, useful kubectl set bash kubectl get …
- Python Web APIs: FastAPI and Django
… models Async Native ( async def ) Supported, ORM mostly sync API docs Automatic OpenAPI at /docs Via drf-spectacular …
- Design a File Storage Service
… rights) Syncing many devices Versioned change feed plus a rule for conflicts Keeping devices in sync A user …
- RBAC and Cluster Security
… KMS provider). 2. Restricting RBAC on secrets. 3. Syncing from a real secret store with External Secrets Operator …
- GitOps, Progressive Delivery and Observability
… prod syncPolicy: automated: prune: true selfHeal: true Use Kustomize overlays (base plus per-environment patches) or Helm values …
- Time, Consistency and Distributed Transactions
… Time sync fixes it now and then, which can make the clock jump . Two servers can easily disagree …
- React Fundamentals
… jsx // ❌ Duplicated state that can get out of sync const [items, setItems] = useState([]); const [total, setTotal] = useState(0 …
- Monolith vs Microservices
… a database, or call each other in long synchronous chains. You pay the full microservices cost and get …
- TypeScript Essentials
… never out of sync const user = UserSchema.parse(await response.json()); // throws on bad data tsconfig essentials json …
- What Is Apache Kafka?
… API] -- K B[Billing] -- K K -- DB[(DB sync)] K -- SE[Search index] K -- AN[Analytics] K -- MON …
- What Is Software Architecture?
… the whole system shaped? Monolith or microservices, layers, sync vs async, which database, where the business logic lives …
- Node.js and Express
… A CPU profile tells you whether the cause is an inefficient loop, a CPU-heavy calculation, synchronous blocking …
- Resilience, Disaster Recovery and Multi-Region Design
… and the latest recoverable record. Then plan failback: synchronize accepted writes, change ownership safely, validate again, and retire …
- Bash Scripting & Scheduled Jobs
… fails if the lock file is out of sync. It's the right command for servers and CI …
- Cross-Service Data: How to Join Without a Database JOIN
… Show pending , syncing or a last-updated time when the business needs that clarity. For a user's …
- Serverless: Lambda and API Gateway
… A synchronous HTTP request does not have the same retry behavior as an asynchronous event or an SQS …
- Batch vs Stream and Data Modeling
… is too slow Copies can drift out of sync, so someone must keep them updated. What a stream …
- SSH, Networking & Firewalls
… rsync -avz --delete build/ myserver:/var/www/site/ sync a folder (only changed files) Hardening the SSH server …
- ACID, Transactions & Locks
… Livelock Both keep retrying and backing off in sync, never finishing ❌ No, add random jitter to retries Interview …
- Data Structures for Scale
… Good for "are these two web pages near-duplicates?" Merkle trees for syncing copies Split the data into …
- Go Fundamentals
… be useful at their zero value . var mu sync.Mutex is an unlocked mutex ready to use, and …
- Backend Design Scenarios
… TTL only Users see stale data until expiry; synchronized expiry causes a stampede Shorter TTL for sensitive data …