You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now in backend/handler.js, bongocats is determined like so:
constbongocats=90;
This variable is used to hold the total amount of videos currently in the bongocats database. This means that whenever a new entry is added to the database this constant needs to be changed and the whole backend must be redeployed. That’s obviously not ideal.
A better way to do this would be to calculate bongocats on the fly within the bongo function, using the DescribeTable API call offered by DynamoDB to get the total amount of items in the table.
The text was updated successfully, but these errors were encountered:
Right now in backend/handler.js,
bongocats
is determined like so:This variable is used to hold the total amount of videos currently in the bongocats database. This means that whenever a new entry is added to the database this constant needs to be changed and the whole backend must be redeployed. That’s obviously not ideal.
A better way to do this would be to calculate
bongocats
on the fly within thebongo
function, using the DescribeTable API call offered by DynamoDB to get the total amount of items in the table.The text was updated successfully, but these errors were encountered: