I re-wrote an API app that I had written a while back, updating it to work better with devcontainers. One of the cool things is that it runs either as an express app of express apps, or as individual serverless functions using the serverless-http library. It‘s just one environment variable you have to set to switch between environments. Means you can run your apps on serverless, but if you decide for whatever reason you need to move over to a VPC server or kubernetes, you can easily do that. It's the very same code running in both places. I had an idea I could do this a while back, but it‘s the first time I‘ve got it working. It‘s pretty cool. #

For enquiries about my consulting, development, training and writing services, aswell as sponsorship opportunities contact me directly via email. More details about me here.