arc-plugin-tables-throughput

0.1.0 • Public • Published

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:

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 by reading and writing 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

Package Sidebar

Install

npm i arc-plugin-tables-throughput

Weekly Downloads

1

Version

0.1.0

License

Apache-2.0

Unpacked Size

16.1 kB

Total Files

5

Last publish

Collaborators

  • rafaelsacramento