arc-plugin-tables-throughput
v0.1.0
Published
Architect plugin to setup provisioned billing mode and reading/writing throughput for DynamoDB tables.
Downloads
3
Maintainers
Readme
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-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
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 5