TopicsHigh-level design
High-level design
HLD interview and machine-coding scale-up: capacity, APIs, data model, caching, sharding, and the path from a single-node solution to production.
Common tags: hld, url-shortener, system-design, machine-coding
- High-level design
URL Shortener Scale-up HLD - ID Generation, Caching, Sharding & Analytics
Cluster · URL Shortener
Scale-up HLD: ID generation compared, Redis cache-aside, sharding, 301 vs 302, async analytics; cross-link existing pages.
Open study →- hld
- url-shortener
- flask
- sqlite
- system-design
- interview
- machine-coding
- High-level design
URL Shortener - Flask + SQLite Full Solution, Concurrency & Tests
Cluster · URL Shortener
Full Flask+SQLite URL shortener with ownership delete, TTL, atomic hit UPDATE, concurrent hit tests, HTTP status contracts.
Open study →- hld
- url-shortener
- flask
- sqlite
- system-design
- interview
- machine-coding
- High-level design
SlotWise - SQLAlchemy Transaction Fix & Tests
Cluster · SlotWise
Partial unique index on active reservations, a transactional reserve that maps IntegrityError to 409, optional SELECT FOR UPDATE on the slot row, and a regression test that spawns concurrent reservers.
Open study →- hld
- reservations
- sqlalchemy
- postgres
- isolation
- interview
- incident
- High-level design
SlotWise - Load Repro & Isolation Decision Chart
Cluster · SlotWise
How to reproduce the double-book under load, which isolation level still loses without a constraint, and a decision chart for constraint versus row lock versus serializable retries.
Open study →- hld
- reservations
- sqlalchemy
- postgres
- isolation
- interview
- incident
- High-level design
URL Shortener - Spec, Flask API, SQLite & Concepts
Cluster · URL Shortener
Machine-coding URL shortener hub: Flask+SQLite spec, steps, HTTP contracts, concepts, create/redirect/delete/stats.
Open study →- hld
- url-shortener
- flask
- sqlite
- system-design
- interview
- machine-coding
- High-level design
SlotWise Reservation Service Incident - HLD Debug & Fix Path
Cluster · SlotWise
A reservation service starts double-booking slots under load. Reproduce, trace isolation and locking choices, fix with the right transaction boundaries, and ship a regression test.
Open study →- hld
- reservations
- sqlalchemy
- postgres
- isolation
- interview
- incident