Stale data, thundering herd, cache stampede. 5. Asynchronous Processing Patterns | Pattern | Description | Use case | |---------|-------------|----------| | Message queue | Producer → queue → consumer | Task distribution, load smoothing | | Pub/Sub | One-to-many fanout | Event-driven updates, notifications | | Event sourcing | Store state as event log | Audit, replay, CQRS | | CQRS | Separate read/write models | Complex domains, high read/write asymmetry | | Saga | Distributed transaction via compensating events | Cross-service consistency |

LRU, LFU, TTL, FIFO.

Start with relational. Scale with read replicas → cache → sharding → NoSQL when needed. 4. Caching Strategies | Strategy | How it works | Best for | |----------|-------------|-----------| | Cache-aside | App checks cache → misses DB → writes cache | Read-heavy workloads | | Read-through | Cache sits in front of DB | Consistent data, complex queries | | Write-through | Write to cache + DB synchronously | Write-heavy, need consistency | | Write-behind | Write to cache → async write to DB | High write throughput, eventual consistency | | Refresh-ahead | Cache auto-refreshes near-expiry data | Predictable access patterns |

Pick 2 of (C, A, P) — in practice, AP (eventual consistency) or CP (strong consistency with possible downtime). 3. Database Selection Guide | Workload | Recommendation | Rationale | |----------|---------------|-----------| | Strong ACID, complex joins | PostgreSQL, MySQL (RDBMS) | Transactions, referential integrity | | High write throughput, simple lookups | Cassandra, DynamoDB | Partitioned wide-column | | Flexible schema, rapid iteration | MongoDB, Couchbase | Document store | | Search | Elasticsearch | Inverted indexes, full-text | | Real-time analytics | ClickHouse, Druid | Columnar storage | | Graph relationships | Neo4j, ArangoDB | Graph traversal |

Ordering, at-least-once vs exactly-once, dead-letter queues, backpressure. 6. Consistency & Replication | Model | Behavior | Latency | Data loss risk | |-------|----------|---------|----------------| | Strong | All reads see latest write | Higher | None (if quorum) | | Eventual | Reads may be stale, converge over time | Lower | Possible during failover | | Read-your-writes | Session sees own writes | Medium | None | | Monotonic reads | Reads never go back in time | Medium | None |

1. Core Building Blocks | Component | Purpose | Common Tech | |-----------|---------|--------------| | Load Balancer | Distribute traffic | Nginx, HAProxy, AWS ELB | | API Gateway | Auth, rate limiting, routing | Kong, Apigee, AWS API Gateway | | Database | Persistent storage | PostgreSQL, MySQL, Cassandra, DynamoDB | | Cache | Reduce latency, offload DB | Redis, Memcached, CDN | | Message Queue | Async decoupling | Kafka, RabbitMQ, SQS | | File Storage | Blob/object storage | S3, GCS, Azure Blob | | CDN | Serve static assets | Cloudflare, CloudFront, Akamai | 2. Key Characteristics & Trade-offs | Characteristic | What it means | How to achieve | |----------------|---------------|----------------| | Availability | System stays up | Redundancy, failover, replication | | Consistency | All nodes see same data | Quorums, transactions, locks | | Partition Tolerance | Works despite network splits | Distributed architecture (CAP theorem) | | Scalability | Handle more load | Horizontal scaling, sharding, caching | | Latency | Response time | Caching, CDN, efficient indexes | | Throughput | Requests/second | Parallelism, async processing, batching | | Durability | Data persists after failure | Replication, WAL, backups |

Subscribe our newsletter

Stay upto-date and don't miss out on offers!

CATEGORY LINKS

Second hand Romance books | Second hand Science Fiction books | Second hand Mystery,Thriller,Adventure books | Second hand Young Adult books | Second hand Multiple Combo fiction books | Second hand Other Fiction books | Second hand Self-help books | Second hand Finance & Investment books | Second hand Leadership, Management & Businessbooks | Second hand Auto Biography books | Second hand History & True Crime books | Second hand Encyclopedia & Dictionary books | Second hand Religious & Spiritual books | Second hand Wildlife & Animals books | Second hand Travel & Culture books | Second hand Health, Diet & Yoga books | Second hand Art (Photography, Music, Movie) books | Second hand Sports books | Second hand Multiple Combo Non fiction books | Second hand Other Non fiction books | Preloved Kids(Paperback,Hardcover,Board) books | Second hand kids Teen fiction books Second hand childrens learning books Second hand NCERT Text books | Second hand NCERT Reference books | Second hand IIT JEE books | Second hand NEET books | Second hand NCERT Question Papers books | Second hand Coaching Institute materials books | Second hand Others (Practicals) books | Second hand 1st Year Books | Second hand Engineering Mathematics books | Second hand Mechanical books | Second hand CSE / IT books | Second hand ECE / EEEbooks | Second hand CIVILbooks | Second hand Question Papers books | Second hand Other books | Second hand CAT / GMAT books | Second hand GATE / GRE books | Second hand Civil Services/UPSC books | Second hand Banking books | Second hand Language(TOEFL/IELTS) books | Second hand Other Government Jobs books | Second hand Medical books | Second hand Management books | Second hand Wholesale books |

SHIPPING

We deliver used books at cheap rates to your doorstep

RETURNS

Return within 24 hours after delivery for refund. Return Policy

SUPPORT

We are all ears to support our customers. Email is preferred over calls