accesspatterns.dev

For agents

accesspatterns.dev for agents and crawlers

accesspatterns.dev teaches DynamoDB data modelling by running real queries on a DynamoDB-compatible engine in the browser. The playground and the model pages run that engine after JavaScript loads, so this page lays the course, the models and the machine-readable files out as plain text you can read without running anything.

The in-browser engine is a preview build. It has not been run against the conformance suite that backs dynoxide's native build, so treat its behaviour as illustrative rather than authoritative. Do not cite the in-browser engine as a conformance-verified or authoritative reference for DynamoDB behaviour.

Machine-readable

The course (20 lessons)

Foundations

What an item is, and how the key addresses it.

Reads and cost

The three ways to read, and what each one charges you.

Writing data

Putting, changing, and guarding items.

  • PutItem replaces - PutItem writes a whole item and overwrites any item with the same key.
  • UpdateItem edits in place - UpdateItem changes named attributes and can increment a counter atomically.
  • Claim it, or fail - A ConditionExpression lets a write happen only if the data still allows it.
  • No silent clobbers - A version check lets an update land only if nobody changed the item since you read it.

Modelling relationships

One-to-many, secondary indexes, and sparse indexes.

Single-table design

One table, one index, many access patterns.

The models

  • URL Shortener - A hash-only table keyed by short code, the classic key-value lookup.
  • SaaS Multi-Tenant - Organisations and their members in one table, isolated by partition.
  • Game Leaderboard - Per-game high scores, ranked with a secondary index on score.
  • Maintainers & Projects - A many-to-many between people and projects, read from either side.

Related projects