Is there a way to trigger a Google Cloud Function with a Google Datastore event?

心不动则不痛 提交于 2019-12-21 17:49:49

问题


It seems like you can get events from Google Cloud Platform, but not from Google App Engine services. Why is that? Thanks


回答1:


Cloud Functions is a new service on GCP, whereas Cloud Datastore is a high query per second (QPS) service that is more sensitive to latency changes.

This means it's still early and integration with Cloud Datastore is more complex than most other systems. It's been looked into, but nothing to announce yet.




回答2:


Have you looked at Datastore Callbacks? They're somewhat analogous to triggers in an RDBMS environment. For example, you could write callback methods that get invoked every time an entity of a particular Kind is put or deleted.

https://cloud.google.com/appengine/docs/standard/java/datastore/callbacks



来源:https://stackoverflow.com/questions/42804507/is-there-a-way-to-trigger-a-google-cloud-function-with-a-google-datastore-event

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!