Architect plugin @tables-throughput
Enables Provisioned billing mode and defines reading and writing throughput for DynamoDB tables.
DynamoDB is a powerful database, though different from both SQL and NoSQL databases. It is highly recommended to dig into Amazon's resources to familiarize yourself with it:
- DynamoDB Core Components (start here!)
- Amazon's full DynamoDB documentation
- Managing settings on DynamoDB provisioned capacity tables
- Pricing for Provisioned Capacity
-
@tables-throughput
is a feature subset of@tables
; as such, the names of your declared tables must match those of your@tables
- The basic syntax for defining
@tables-throughput
specifies the base table name followed byreading
andwriting
throughput -
reading
throughtput is expressed as an integer, in Reading Capacity Unities (RCUs) -
writing
throughtput is expressed as an integer, in Wrigint Capacity Unities (WCUs) - When defined, they set the table's billing mode to provisioned (BillingMode: PROVISIONED) and specify its throughput
- By default, all
@tables
are billed per request (BillingMode: PAY_PER_REQUEST), so not defining this plugin for a table leaves the billing mode as pay-per-request
This app.arc
file defines two database tables, one billed per request (pets) and the other (people), provisioned:
@app
testapp
@tables
people
pplID *String
pets
petId *String
@tables-throughput
people
reading 10
writing 5