Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Created November 26, 2024 19:16
Show Gist options
  • Select an option

  • Save wilmoore/2a944e0b7e409b0fe735ec9f32cf3e44 to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/2a944e0b7e409b0fe735ec9f32cf3e44 to your computer and use it in GitHub Desktop.
Software Engineering :: Cloud :: AWS :: Amazon DynamoDB :: Concepts

Software Engineering :: Cloud :: AWS :: Amazon DynamoDB :: Concepts

⪼ Made with 💜 by Polyglot.

Concepts

fundamentals
  • Table (stores items)
  • Item (record)
keys
  • Partition Key (@PK)
  • Sort Key (@SK)
primary keys
  • Simple Primary Key (== @PK)
  • Composite Primary Key (== @PK + @SK)
attributes
  • Attributes (columns: can differ per item and no need to define up front)

Secondary Indexes

Examples

Sessions Table
  • SessionId (PK)
  • Username (Attribute)
  • CreatedAt (Attribute)
  • ExpiresAt (Attribute)

Meta

Connections
  • HTTPS with AWS IAM for authentication (as opposed to a persistent connection such as with most relational databases)
  • NoSQL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment