I shifted from serverless functions to web workers and I’m now saving my company 100s of dollars a month.
We were using a serverless function, which uses puppeteer to capture and store an image of our page. This worked well until we got instructions to migrate our infrastructure from AWS to Azure. In the process of migration, I found out that Azure functions don’t scale the same way that AWS Lambda does, which was a problem. After a little introspection, I realised we don’t even need a server/serverless function since we can just push the frontend code around a little, restructure a bit, and capture and upload images right on the client. However, since the page whose image we’re capturing c




