Using notifications with subscriptions

My preceding example was controlled by a master receiver function, which was invoked on some trigger and then performed the work of calling the worker processes manually. One alternative is to replace the entry point function with a Simple Notification Service (SNS) topic. If you're unfamiliar with SNS, it's just what it sounds like—a system which, when triggered, notifies subscribers that something has happened.

Because our example was focused on transforming an image in multiple ways, it makes sense to set up a trigger when a new file is added. However, what happens when we want to start doing some processing when another type of event occurs? For example, a new user signs up on our website via their ...

Get Serverless Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.