I recently wrote a short blog post: OpenFaaS templates for the JVM and created a set of OpenFaaS Kotlin templates. I like the idea of using Docker images as packaging format for Serverless functions, but the image size is quite large. The openjdk:8-jre-alpine base image size is 83 MB and the Kotlin Micronaut template image is 118 MB. But what if we could shrink the image size to 16 MB with improved startup time and reduced memory footprint?
I’ve been wanting to try out OpenFaaS for a long time and finally got some time during the holidays to give it a try. There are some excellent tutorials you can follow to get you started and a self-paced workshop. I used Alex Ellis Getting started with OpenFaaS on minikube to get started.
OpenFaaS templates OpenFaaS templates makes it easy to get started writing and deploying functions using the faas-cli.