The app inside
What happens inside the web app and the API: layers, sessions, caches, bookings and limits.
- The layers of the API
Why does a procedure never touch SQL, and where does the business logic live?
- Sign-up, log-in and sessions
Why does MiniTickets use server-side sessions instead of tokens in the browser?
- Roles in the app
How does the API decide that only an admin may create an event?
- Errors
How does a failure deep in the API become a message the user can understand?
- The caching layers
Which caches sit between a user and Postgres, and how does each one get cleared?
- Bookings and row locks
How do two people never get the last seat at the same moment?
- Idempotency
What happens when a user double-clicks Book or the network sends the request twice?
- Search and pagination
Why page with a cursor instead of OFFSET, and how does search-as-you-type stay cheap?
- Rate limits and the sale-day gate
How does MiniTickets survive a sale day without overselling or falling over?
- Security headers
What do the security headers protect against, and how do you check them?
Read this book online: https://book.theversehub.in/