From the course: Google Cloud Platform (GCP) Essential Training for Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Emailing subscribers using the fan-out pattern - Google Cloud Tutorial
From the course: Google Cloud Platform (GCP) Essential Training for Developers
Emailing subscribers using the fan-out pattern
- [Instructor] All right, now we're going to learn how to send a lot of emails to our users using App Engine in Cloud Tasks, using the fan-out pattern. Before we can create tasks, we need to do two things first. First, we need to enable the Cloud Tasks API. Let's do that by going to the Cloud Tasks API, then pressing Enable. Next, we need to create two queues. We can do that by going to the terminal and using gcloud. The commands are gcloud, tasks, queues, create email task generator, which is the name of our first queue, and gcloud, tasks, queues, create email sender, which the name of our second queue. Let's verify that our queues have been created by going back to the cloud tasks page, and we can see our cues over here. Next, let's look at our code. I am using Node JS, but this is implementable in other programming languages as well. I'm not going to focus on syntax, but rather on the concept of how to implement the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.