omrikap
omrikap

Reputation: 135

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

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

Upvotes: 6

Views: 1731

Answers (2)

Paul
Paul

Reputation: 11

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

Upvotes: 1

Dan McGrath
Dan McGrath

Reputation: 42008

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.

Upvotes: 4

Related Questions