Skip to content
tezvyn:
Menu

Scalability

64 bites tagged Scalability: interview questions with model answers, and 60-second explainers.

Test yourself: Top 30 Scalability interview questions →Multiple choice, with the correct answer and why it is correct on every question. Free, no sign-in.
UX Research2 min read

Sampling 5% of users for a one-time survey

Hash user ID for the 5% gate, persist a 'shown' flag, race-safe single display.

Product Strategy2 min read

Prepare for a launch traffic spike

Model expected load, load-test to find the first bottleneck, scale and cache, add graceful degradation and a queue for spiky writes.

Node.js & Express1 min read

Session-based versus token-based authentication

Sessions store server-side state with a cookie id, tokens carry self-contained claims with no server store, weigh revocation versus scalability, especially across services.

Monitoring & SRE2 min read

When horizontal scaling is the wrong fix

Adding instances fails when the bottleneck is a shared resource like one database, a lock, or a queue, so more instances just add contention; investigate where time is actually spent.

Monitoring & SRE1 min read

Scaling Prometheus for HA and volume

Shard scraping, add long-term object storage and global query via Thanos/Cortex/VictoriaMetrics, run redundant replicas for HA, with dedupe.

Monitoring & SRE1 min read

High cardinality in time-series databases

Each combination is a separate series consuming memory and index; manage by avoiding unbounded labels and bucketing values.

Databases & Architecture1 min read

Choosing a good shard key and avoiding hot spots

High cardinality, even write distribution, query alignment; monotonic keys send all writes to one shard.

Databases & Architecture1 min read

Read replica vs Multi-AZ in RDS

Multi-AZ is synchronous standby for failover, read replicas are async copies for read throughput, and the two solve different problems.

Databases & Architecture1 min read

Connection pooling and its key parameters

Reuse open connections to skip costly handshakes; tune max pool size and connection timeout.

Databases & Architecture1 min read

Mitigating a database shard hot spot

Short-term, add read replicas or cache the hot keys; long-term, fix the partition key with hashing, salting, or finer-grained splitting.

Databases & Architecture2 min read

Range-based vs hash-based sharding trade-offs?

Range sharding keeps ordered keys together, great for range scans but prone to hot spots on sequential keys; hash sharding spreads keys evenly, avoiding hot spots but killing efficient range…

Databases & Architecture2 min read

What is sharding and why shard over vertical scaling?

Sharding splits one dataset across servers by a shard key so each holds a subset; you shard because vertical scaling hits hardware ceilings, gets costly, and remains a single point of failure.

Databases & Architecture1 min read

What is database replication and why use it?

Replication keeps copies of data on multiple servers; primary benefits are high availability through failover and improved read scalability by spreading reads.

Databases & Architecture1 min read

Why fit Cassandra to a high-read, high-write workload?

Consistent-hash partitioning spreads load, replication and no single master give availability, log-structured writes are fast, tunable consistency balances per query.

Databases & Architecture1 min read

Embed or reference likes in a document database?

Embedding is fast for small bounded lists but unbounded likes hit document size limits; referencing scales for high-cardinality, write-heavy likes.

Databases & Architecture1 min read

Shard key impact on uniqueness and cross-shard lookups

Uniqueness and FKs hold only within a shard; non-shard-key lookups need scatter-gather or a secondary index.

CSS & Design Systems1 min read

Explain the inverted triangle of ITCSS

ITCSS orders layers from far-reaching low-specificity (settings, tools, generic) down to localized high-specificity (components, utilities), so specificity climbs gradually.

Content & Copywriting2 min read

Design a programmatic SEO landing-page system

Structured data plus templates, genuinely unique per-page data, static build-time generation, quality gates and indexation control.

Cloud Platforms2 min read

High-throughput serverless stream processing

Partition by key for per-user ordering, use a sharded log with batched consumers for backpressure, and tune batch size and shards for cost.

Cloud Platforms1 min read

Serverless functions with a relational database

Concurrent function instances each open connections and exhaust the database's bounded pool; fix with a connection proxy or pooler, init-phase reuse, or capped concurrency.

Cloud Platforms2 min read

Scalability vs elasticity in the cloud

Scalability is the ability to handle more load by adding capacity; elasticity is automatically adding AND removing capacity in real time to match demand.

iOS & Swift1 min read

Modularizing a monolithic iOS app

Extract low-dependency, high-reuse leaf code first behind clear interfaces, enforce boundaries, iterate inward.

Growth & Experimentation1 min read

Design a centralized experimentation service

A config/assignment API, deterministic SDK-side bucketing, and a separate exposure-logging pipeline.

Docker & Kubernetes1 min read

Head-based vs tail-based trace sampling

Head decides up front (cheap, may miss rare errors); tail decides after the trace completes (catches errors and slow traces but needs buffering).

Get Scalability bites daily.

Five a day, five minutes, offline. With quizzes so it sticks.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon