Skip to content

Commit

Permalink
perf(inbox+outbox): double min read capacity for inbox and outbox
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Nov 28, 2017
1 parent 6fb2196 commit 0af4d60
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions serverless-uncompiled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,22 @@ custom:
kv: ${{self:custom.prefix}}kv

# auto-scaled tables that serve as buckets for multiple models each
defaultCapacity: &defaultCapacity
defaultCapacityRead: &defaultCapacityRead
read:
minimum: 5 # Minimum read capacity
maximum: 100 # Maximum read capacity
usage: 0.70 # Targeted usage percentage

defaultCapacityWrite: &defaultCapacityWrite
write:
minimum: 5 # Minimum write capacity
maximum: 100 # Maximum write capacity
minimum: 5 # Minimum read capacity
maximum: 100 # Maximum read capacity
usage: 0.5 # Targeted usage percentage

defaultCapacity: &defaultCapacity
<<: *defaultCapacityRead
<<: *defaultCapacityWrite

tableBuckets:
count: 4
index:
Expand All @@ -167,13 +173,27 @@ custom:
index:
- _link
- context
<<: *defaultCapacity
read:
minimum: 10 # Minimum read capacity
maximum: 100 # Maximum read capacity
usage: 0.70 # Targeted usage percentage
write:
minimum: 5 # Minimum write capacity
maximum: 100 # Maximum write capacity
usage: 0.5 # Targeted usage percentage

- table: OutboxTable
index:
- _payloadLink
- context
<<: *defaultCapacity
read:
minimum: 10 # Minimum read capacity
maximum: 100 # Maximum read capacity
usage: 0.70 # Targeted usage percentage
write:
minimum: 5 # Minimum write capacity
maximum: 100 # Maximum write capacity
usage: 0.5 # Targeted usage percentage

- table: EventsTable
write:
Expand Down

0 comments on commit 0af4d60

Please sign in to comment.