vendredi 9 avril 2021

Why Gcloud Pub/Sub is used?

Why Pub/Sub is used? Usecase: There is a http triggered "Cloud function" on which some Data is sent. This function after processing data, publishes Data to a Pub/Sub topic.

Then there is another Cloud function, which is triggered based on publishing to that Pub/sub topic. So, This Cloud function takes published data from pub/sub and inserts it to a BigQuery table.

So in this usecase why pub sub is used, why can't we just have one cloud function which takes data from http hit, and inserts it to BigQuery. What cam be the design thought given for choosing pub/sub here?

Also generally why Pub/sub architecture is used?

Aucun commentaire:

Enregistrer un commentaire