简体   繁体   English

Google Cloud Endpoints与Cloud Datastore API服务之间的比较

[英]Comparison between Google Cloud Endpoints vs Cloud Datastore api Service

i wanted to access appengine datastore of one application in another internal appengine application, i have used endpoints a lot, now i tried cloud datastore api using Google protobuf client library. 我想访问另一个内部appengine应用程序中一个应用程序的appengine数据存储,我已经使用了很多端点,现在我尝试使用Google protobuf客户端库尝试使用Cloud datastore api。

my question is , 我的问题是

which service will be high performing, ignore the fact that endpoints acts as an api and consider in terms of datastore access only) ? 哪项服务将具有较高的性能,而忽略端点充当api的事实,而仅考虑数据存储访问)?

any better suggestion is also helpful! 任何更好的建议也有帮助!

Thanks 谢谢

They are currently very similar. 他们目前非常相似。 The main difference is that endpoints encodes using JSON and GCD uses a binary format (protobufs). 主要区别在于端点使用JSON进行编码,而GCD使用二进制格式(protobufs)。 This is only an issue if you send around entities with large blobs (in which case GCD is more efficient). 仅当您发送具有大斑点的实体(在这种情况下,GCD效率更高)时,这才是问题。 On the other hand, Endpoints lets you write custom code to validate requests, post process results, etc. 另一方面,Endpoints允许您编写自定义代码来验证请求,发布流程结果等。

Things might change in the future, however, as GCD will likely become faster and cheaper. 但是,随着GCD变得越来越快,越来越便宜,未来情况可能会发生变化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM