Google Cloud Endpoints与Cloud Datastore api Service之间的比较

时间:2020-11-29 23:12:10

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客户端库的云数据存储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

谢谢

1 个解决方案

#1


1  

They are currently very similar. The main difference is that endpoints encodes using JSON and GCD uses a binary format (protobufs). This is only an issue if you send around entities with large blobs (in which case GCD is more efficient). On the other hand, Endpoints lets you write custom code to validate requests, post process results, etc.

它们目前非常相似。主要区别在于端点使用JSON编码,GCD使用二进制格式(protobufs)。如果您发送具有大blob的实体(在这种情况下GCD更有效),这只是一个问题。另一方面,Endpoints允许您编写自定义代码以验证请求,发布流程结果等。

Things might change in the future, however, as GCD will likely become faster and cheaper.

然而,未来情况可能会发生变化,因为GCD可能会变得更快,更便宜。

#1


1  

They are currently very similar. The main difference is that endpoints encodes using JSON and GCD uses a binary format (protobufs). This is only an issue if you send around entities with large blobs (in which case GCD is more efficient). On the other hand, Endpoints lets you write custom code to validate requests, post process results, etc.

它们目前非常相似。主要区别在于端点使用JSON编码,GCD使用二进制格式(protobufs)。如果您发送具有大blob的实体(在这种情况下GCD更有效),这只是一个问题。另一方面,Endpoints允许您编写自定义代码以验证请求,发布流程结果等。

Things might change in the future, however, as GCD will likely become faster and cheaper.

然而,未来情况可能会发生变化,因为GCD可能会变得更快,更便宜。