问题
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