Add on Demand mode#183
Open
aneilbaboo wants to merge 2 commits intoclarkie:masterfrom
Open
Conversation
rchl
reviewed
Aug 7, 2019
| dynogels.createTables({ | ||
| 'BlogPost': {readCapacity: 5, writeCapacity: 10}, | ||
| 'BlogPost': { | ||
| billingMode: 'PAY_PER_REQUEST' |
There was a problem hiding this comment.
Since this part of documentation is not specifically about 'on-demand' mode, maybe leave as it was before?
There was a problem hiding this comment.
Let’s add one example for each option so the developer can see what is possible
PAY_PER_REQUEST is super convenient
This adds a new schema attribute, billingMode, which can be set to 'PROVISIONED' (the default) or 'PAY_PER_REQUEST', which causes the table to run in On Demand mode. This value can also be provided on a per-table basis to the dynogels.createTables` function.
9fd1395 to
ef54ad4
Compare
Contributor
Author
|
Rebased on current master and addressed the comment from @rchl. |
rchl
reviewed
Jun 5, 2020
| "aws-sdk": "^2.408.0", | ||
| "lodash": "^4.17.15", | ||
| "aws-sdk": "^2.441.0", | ||
| "lodash": "4.17.4", |
There was a problem hiding this comment.
Why downgrading lodash?
Also the aws-sdk version changed but it's not reflected in package-lock.
Should run npm i.
Contributor
Author
There was a problem hiding this comment.
Good catch. I think this was a rebase issue. I just pushed a fix.
9717ea8 to
c5b285c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a new schema attribute, billingMode, which can be set to 'PROVISIONED' (the default) or 'PAY_PER_REQUEST', which causes the table to run in On Demand mode. This value can also be provided on a per-table basis to the dynogels.createTables` function.
Fixes #182