google-cloud-platformgoogle-bigquerygoogle-cloud-runsegment-io

Send HTTP POST request to Segment.io from GCP


I am trying to send HTTPS Post Request from GCP to Segment.io

I want to create a service that will read data from BigQuery table and then send calls directly to Segment.io API (link) from where I'll redirect the data to other destinations, but on the GCP site I'm struggling to find the most optimal way to do it. Cloud Run seems like a good option but I'm wondering if there might be an easier way?


Solution

  • The recommended products to be used for this task can be either Cloud Run or Cloud Functions.

    You can either use the Client Libraries or API in order to extract the data from the BigQuery table and use any HTTP request library of your favorite programming language to issue the POST request to the Segment.io API.