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:

  1. i send request put 25 items via batchwriteitem.
  2. all 25 items come in unprocesseditems.
  3. my retry code runs, , resends 25 items.
  4. 24 items come in unprocesseditems.
  5. my retry code runs, , resends 24 items.
  6. 23 items come in unprocesseditems.
  7. 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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -