0.1.0 • Published 3 years ago
arc-plugin-tables-throughput v0.1.0
Architect plugin @tables-throughput
Enables Provisioned billing mode and defines reading and writing throughput for DynamoDB tables.
Recommended Resources
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
Syntax
@tables-throughputis 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-throughputspecifies the base table name followed byreadingandwritingthroughput readingthroughtput is expressed as an integer, in Reading Capacity Unities (RCUs)writingthroughtput 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
@tablesare billed per request (BillingMode: PAY_PER_REQUEST), so not defining this plugin for a table leaves the billing mode as pay-per-request
Example
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 50.1.0
3 years ago