2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
1
For this you would need to keep a counter record for each item and use DynamoDB Transactions to achieve your use case. For each AlexaID create a record for storing counts of records:
Pk | Sk | Items |
---|---|---|
AlexaId | Counter | 3 |
Then you would use a TransactWrite with a condition for each new write, and also an Update to update the counter.
TransactWrite:
Put - new item
Update - update counter ++
Condition - if counter record Items value < 6
0
There is not a way to have this enforced automatically. You'd have to keep a counter yourself and have your application code ensure requests were rejected that exceeded your limit.
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 4 mesi fa
- AWS UFFICIALEAggiornata 2 anni fa