Table
  • 14 Nov 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Table

  • Dark
    Light
  • PDF

Article summary

Table Usage is based the amount of data stored and the number of requests to read and write that data. Records that are placed in the Table are retained until you explicitly delete them or the time-to-live (ttl) you set on them expires.

CategoryDescriptionDatabase Usage
WriteRequestUnitsOne write request unit for each write (up to 1 KB) and two write request units for transactional writes6.25 per million
ReadRequestUnitsOne read request unit for each strongly consistent read (up to 4 KB), two read request units for each transactional read, and one-half read request unit for each eventually consistent read1.25 per million
TimedStorageRecords storage2.5 per GB-month
TimedPITRStorageContinuous backups with point-in-time recovery2 per GB-month

Note: These Usages apply to Tenants created in us-east-1. Usage may vary slightly for other regions.

Example

Let's assume that you have a Tenant that writes 100,000 10KB records a month. Each record has a time-to-live of 1 day, and each record is read an average of 3 times before deletion. All reads are eventual consistency. The month in question is 30 days long

This will result in:

  • 100,000 (records) * 10 (write units) = 1,000,000 (WriteRequestUnits) / 1,000,000 * 6.25 = 6.25 Database Usage
  • 100,000 (records) * 3 (reads per record) * 1.25 (read units) = 375,000 (ReadRequestUnits) / 1,000,000 * 1.25 = 0.46875 Database Usage
  • 100,000 (records) * 10,000 (KB) / 1,000,000,000 (bytes in GB) = 1 (GB) / 30 (days in month) = 0.033333 (GB-month) * 2.5 = 0.0833325 Database Usage
  • 100,000 (records) * 10,000 (KB) / 1,000,000,000 (bytes in GB) = 1 (GB) / 30 (days in month) = 0.033333 (GB-month) * 2 = 0.066666 Database Usage

6.8687485 (Database Usage) * $0.50 (Cost Per Usage) = $3.43437425/month or $0.0000343437425/record


What's Next