We’re investigating the use of Cloudflare Workers for parts of our stack and were wondering if anyone had thoughts on handling bulk personalised email sendouts. We don’t have any concerns about the Email API as that’s handled by SendGrid, but we’re looking for ways to improve our User Subscription List API and Newsletter Content API. Some context:
We send about 500k personalised emails per week. Each email is customised based on what the user is following on our website. Our initial thoughts were to have a few Cloudflare Workers that handle different stages of the email prep process. For example, getting the list of subscribed users and getting the content for a particular user’s personalised email.
What are the recommendations in the community for dealing with something like this with Cloudflare Workers? We currently use a messaging queue and publish a list of IDs from the User List function. The Newsletter Content function, which is also a subscriber, grabs the IDs and fetches the relevant content, generating the email payload in the process. We then fire that off to SendGrid as a batched request.
How would Cloudflare Workers handle something similar? Could it handle a large number of requests simulataneously if our messaging service pushes these messages to its endpoint?
We’d like to process these emails as quickly and efficiently as possible. From our research, I think we could make some substantial cost savings using Cloudflare Workers, but I’m not sure whether that brings limitations on what we can achieve.
Hoping for some insight, thanks!