As part of the talk Serverlessing like a pro, I am presenting a demo in GCP that does the following:
- Upload a meme on Cloud Storage
- This triggers the cloud function in the repo called
image-queuer-function - The image queuer gets the details of the image such as the bucket-name, filename, updated at, created at and metadata and publishes them on an
image-queuetopic created on console. - Next, another cloud run application in the repo called
image-processorsubscribes to this topic gets the details of the image from the topic and then uses Cloud Vision API to detect text in the image. - If the image has words like "aws", "amazon", "google", "gcp", "microsoft" and "azure", then it takes that word and publishes to another topic called
cloud-name-queuecreated on console. - This topic is subscribed by the a cloud workflow, which is triggered as soon as a message is published on this topic. And from there it checks if the word is "aws" or "amazon" - it updates the count of the appropriate column of the sheet that looks like the following:
The code for the workflow is within the final repo called cloud-workflow.
