Skip to content
cnu.name
Go back

VueMail: Realtime Dynamic Image Compositing Service

Python Django Pillow Redis Docker AWS ECS

VueMail is a image service built on top of Vue.ai Platform. This service can dynamically composite images on the fly when an email newsletter is opened. This is used by Ecommerce stores when sending large email newsletter campaigns.

One of the client had to send email newsletters to 8+ million subscribers with recommendations based on their browsing history and personal preferences. In the traditional approach, they would have to make 8 Million API calls to our recommendation API and embed the images for those products and send them. The problems with that is:

The solution is to build a service which can generate the images on the fly whenever an email is opened. This VueMail service will be hit by millions of requests for images and it has to make sure to synchronize the calls to the backend services and return back the images of the product, dynamically composited with the latest price and stock information.

This service is now running in production with almost no maintenance and is capable of handling tens of thousands of image requests per second.