Google App Engine HRD - what if I exceed the 1 write per second limit for writing to the entity group?

前端 未结 2 989
梦如初夏
梦如初夏 2020-12-16 21:51

According to the Google App Engine documentation, writing to one entity group is limited to one write per second when using High Replication Datastore. So...

  1. W
2条回答
  •  鱼传尺愫
    2020-12-16 21:55

    one write per second is a little low. it actually supports more than that. i would even say between 5 and 10 writes per second but i can't guarantee that of course.

    if you hit that limit you will get an exception yes. the exception message will be:
    Too much contention on these datastore entities. please try again.

    but i don't know/remember the exact Exception that will raise.

    you have the choice to retry, continue or whatever else you think is right to to at that point.

    you can't tell if you are close to a 1 write per second limit. it happens and you deal with it.

提交回复
热议问题