Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to attach the event trigger to Bigtable

Bigtable is NoSQL database and currently there is no support for event trigger. My use case is that i want add the record to Bigtable and once the record is added there should be listener and it will trigger the event that will get the data from Bigtable and send to another system through API call. How to handle this scenario in Bigtable.

2 3 1,148
3 REPLIES 3

Hi @rakku99,

Welcome to Google Cloud Community!

Bigtable does not have native support for event triggers, but you can use external services to achieve a similar effect. Here are a few options you could consider:
  1. Use Cloud Functions or Cloud Run to create a serverless function that listens for changes to your Bigtable data. You can set up Cloud Functions to trigger on changes to your Bigtable data using Cloud Pub/Sub.
  2. Use the Cloud Bigtable Change API to listen for changes to your data. This API allows you to set up a subscription that sends a message to Cloud Pub/Sub whenever there is a change to a table in your Cloud Bigtable instance. You can then use Cloud Functions or Cloud Run to process the change and send it to another system via an API call.
  3. If you have an on-premises system that needs to be notified of changes to your Bigtable data, you can use a Cloud VPN or Cloud Interconnect to connect your on-premises system to Google Cloud. You can then use the Cloud Bigtable Change API to send notifications to your on-premises system.
Keep in mind that these approaches will require you to set up and maintain additional infrastructure, including Cloud Functions or Cloud Run, Cloud Pub/Sub, and potentially a VPN or Interconnect. You should carefully consider the trade-offs and choose the approach that best fits your needs.

Thank you

Thanks @christianpaula 

Hi @christianpaula , can you please provide documentation for the Cloud Bigtable Change API? I can't seem to find it anywhere. Can you also provide code samples? Thanks.