问题
I have looked around quite a bit for any information on how Google Datastore scales up and whether you have to pre-order capacity like with DynamoDB.
I couldn't find a shred of info since they changed up their pricing model in March 2016.
Is Datastore a noSQL that you can throw anything at it and it just scales (without you thinking about hidden partitions)?
I looked on this pricing page but all it says is a fixed flat fee per read & write (no mention of a provisioned capacity system where you CAN get throttled if you go over your queries/sec)
回答1:
There is no such thing as pre-ordering capacity with the Google datastore.
But while the datastore itself is highly scalable you need to take care of scalability on your app side as well. From Avoiding datastore contention:
App Engine's datastore is a powerful distributed data storage service built on top of the high-performance database management system known as Bigtable. Although the datastore is built to scale, you must take care when designing your data models to avoid the prospect of contention as your application grows.
...
App Engine is a great "engine" for building highly scalable web applications backed by a world-class infrastructure, but it's your responsibility to use the tools provided as effectively and efficiently as possible. A large part of this is designing your data model to leverage the core strengths of App Engine's underlying datastore and doing so early-on so you can reap the rewards as your application's traffic skyrockets.
You don't need to worry about throttling, but you might want to worry about cost :) See Datastore Quotas.
回答2:
Is Datastore a noSQL that you can throw anything at it and it just scales (without you thinking about hidden partitions)?
Yes.
来源:https://stackoverflow.com/questions/45286610/does-google-datastore-have-a-provisioned-capacity-system-like-dynamodb