AI engineering learning path

Services and data

Define contracts and handle concurrency, jobs, storage, and access.

5 chapters · Read in order
Suggested background: Basic programming, HTTP, and JSON; database examples explain their constraints. Offline examples check core mechanisms; full platforms and projects require the implementation and acceptance steps described in each guide.
Turn requests into inspectable service behavior.

Chapters

  1. API contracts: parameters, identity, access, and errors

    Define private-draft editing through JSON validation, trusted identity, object permissions, safe errors, timeout retry, pagination, and concurrent version checks, with an offline ownership model.

  2. Use database constraints to protect business correctness

    Verify inventory reservations with uniqueness, conditional decrements, and rollback, while separating index costs, concurrency isolation, and Supabase row-access rules from the offline SQLite test.

  3. Handle load with jobs, caches, and backpressure

    Connect bounded job admission, acknowledgements, retries, and deduplication, while distinguishing rate limits, backpressure, concurrency, and cache staleness from durable processing guarantees.

  4. Organize service code by responsibility

    Organize a reservation service through HTTP adaptation, use cases, rules, and repositories, then verify transactions, cancellation, and dependency failures separately from framework integration.

  5. Use different storage strategies for files, indexes, and records

    Separate learning originals, ownership records, and search indexes, then design upload recovery, scoped signed access, model choices, and deletion across derived copies.

Keep exploring