Sign in
Log inSign up
DynamoDB: 3 ways to use the API

DynamoDB: 3 ways to use the API

Jérôme Hoarau's photo
Jérôme Hoarau
·Dec 13, 2021·

1 min read

The way you interact with DynamoDB is usually with AWS SDK, where you can perform:

  1. Items-based actions: Anytime you act on a single item - writing, updating, or deleting - you are using an item-based action. You must provide the entire primary key.
  2. Query: Read-only actions that allow you to fetch multiple items in a single request. You must provide the partition key and optionally provide sort key conditions.
  3. Scan: Full table scan that looks at every item in your table. Avoid it unless you are doing an export or ETL. It's an expensive operation at scale regarding how long it takes to respond to a request and how much capacity you need to service it. Remember that there is a 1MB limit when reading items from the table.

As you can see, the SDK is more API Driven than query-driven as it would be in a relational database.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct