Skip to content

Next.js / Advanced · No sign-in needed · Pilot

Next.js Advanced in 7 Days

Protect data across users and tenants, handle concurrent edits, design resilient services and verify operational policies. Finish with a Review Queue app and persistence and rejection tests.

Start your first lesson →

Before you start

This course assumes Next.js Intermediate, including validated mutations, HTTP contracts, async work and tests. Comfortable reading JavaScript functions and test assertions.

Plan around 60–100 minutes of active study each day. Predict, run and change the examples before attempting the independent checkpoint. Longer projects can take more than one session.

Browser labs use a Next.js simulator. Policy examples are explicit executable models; they do not establish production authentication, caching or database guarantees. Day 7 includes a real Next.js and SQLite project for Node.js 22.13 or newer. Its fixed actor is a teaching fixture, not authentication.

Pilot: all seven days are written, and the pacing is still being tested with learners. If something is unclear, please report it.

Day 1 · About 96 minutes

Access and Data Boundaries

Enforce tenant and actor policies at every server entry point.

  1. Authorization Starts with Denial18 min · Read, predict and practice
  2. Derive the Actor at the Server Boundary18 min · Read, predict and practice
  3. Minimize What Leaves the Server18 min · Read, predict and practice
  4. Private Cache Keys Need the Whole Identity18 min · Read, predict and practice
  5. Checkpoint: An Access Matrix24 min · Independent checkpoint

Day 2 · About 96 minutes

Integrity Under Concurrency

Design atomic batches, version checks and scoped idempotency.

  1. Validate a Batch Before Committing It18 min · Read, predict and practice
  2. A Version Detects a Lost Update18 min · Read, predict and practice
  3. Idempotency Belongs to an Actor and a Payload18 min · Read, predict and practice
  4. Bound Work Before an Import Starts18 min · Read, predict and practice
  5. Checkpoint: An Atomic Versioned Batch24 min · Independent checkpoint

Day 3 · About 96 minutes

Service Contracts

Define stable errors, cursor pages and conditional writes.

  1. Version a Service’s Error Vocabulary18 min · Read, predict and practice
  2. Paginate from a Stable Cursor18 min · Read, predict and practice
  3. Use Preconditions for Conditional Writes18 min · Read, predict and practice
  4. An Error Response Is a Public Projection18 min · Read, predict and practice
  5. Checkpoint: A Private Cursor Page24 min · Independent checkpoint

Day 4 · About 96 minutes

Resilient Work

Bound deadlines and retries, propagate cancellation and show incomplete data.

  1. One Operation Needs One Deadline18 min · Read, predict and practice
  2. Retry Only When the Contract Allows It18 min · Read, predict and practice
  3. Partial Success Must Be Visible18 min · Read, predict and practice
  4. Cancellation Has an Owner18 min · Read, predict and practice
  5. Checkpoint: A Bounded Retry Decision24 min · Independent checkpoint

Day 5 · About 96 minutes

Production Rendering Policies

Reason about identity, cache scope and what a simulator cannot verify.

  1. A Cache Needs an Expiry Policy18 min · Read, predict and practice
  2. Layout State and Template State Have Different Lifetimes18 min · Read, predict and practice
  3. Canonical URLs Need an Allowlist18 min · Read, predict and practice
  4. Audit What the Simulator Cannot Show18 min · Read, predict and practice
  5. Checkpoint: A Representation Cache Policy24 min · Independent checkpoint

Day 6 · About 96 minutes

Operational Evidence

Test rejections, structure logs and rehearse recovery.

  1. Test the Rejected Operation Too18 min · Read, predict and practice
  2. Log an Event, Not a Secret18 min · Read, predict and practice
  3. Liveness and Readiness Answer Different Questions18 min · Read, predict and practice
  4. Prove a Data Change Can Be Recovered18 min · Read, predict and practice
  5. Checkpoint: A Release Gate24 min · Independent checkpoint

Day 7 · About 100 minutes

Ship the Review Queue

Verify a service boundary, run local persistence checks and build independently.

  1. The Review Queue25 min · Read, predict and practice
  2. Run and Test the Real Project20 min · Read, predict and practice
  3. Extend the API with Preconditions25 min · Read, predict and practice
  4. On Your Own: An Activity Feed30 min · Independent checkpoint
  5. Come Back Later20 min · Return in a few days · extra practice