php - AWS : Too many UnprocessedItems in DynamoDB -
i'm using batchwriteitem api dynamodb.
i wrote wrapper on top of php aws sdk2, , working without problem.
i have code splitting batchwriteitem requests 25 items, , retrying items in unprocesseditems
key of response. right using migrate large database dynamodb, weird happening...
in short, batchwriteitem processing 1 item @ time, , returning rest in unprocesseditems
.
in detail, happening:
- i send request put 25 items via
batchwriteitem
. - all 25 items come in
unprocesseditems
. - my retry code runs, , resends 25 items.
- 24 items come in
unprocesseditems
. - my retry code runs, , resends 24 items.
- 23 items come in
unprocesseditems
. - repeat above until 0 items returned.
i set write capacity units 8, , consumedwritecapacityunits
cloudwatch metrics shows me running @ somewhere between 1 ~ 1.5 .
does know why happening?
i confirming items being put db, still, there no meaning of batchwriteitem if doing processing items 1 one...
====== update ======
i able find out value batchwriteitem
in throttled requests
skyrocketing.
does mean solution boost write capacity units can handle throttled requests?
yes, sounds need increase write capacity units. details how throughput works, should ask questions on amazon dynamodb forum , consult amazon dynamodb developer guide.
also, there wrapper on batchwriteitem
built sdk called writerequestbatch class.
Comments
Post a Comment