In this quick post, I will show you how to build a function in to get the latest using . Serverless Go 9Gag Memes OpenFaaS This tutorial assume that you have: installed — The easiest way to install the is through : faas-cli faas-cli cURL curl -sSL | sudo sh https://cli.openfaas.com or environment configured — See . Swarm Kubernetes Docs 1 — Create a function Create a “ ” file with the following content: handler.go The code is self-explanatory, it uses to parse the website and fetch memes by their tag. 9Gag Web Crawler 2 — Docker Image I wrote a simple using the technique to reduce the image size down: Dockerfile Multi-stage builds 3 — Configuration file Note: If pushing to a remote registry change the name from _mlabouardy_to your own account. Hub 4 — Build Issue the following command: faas-cli build -f ./stack.yml 5 — Deploy faas-cli push -f ./stack.yml faas-cli deploy -f ./stack.yml 6 — Tests Once deployed, you can invoke the function via: cURL: curl -d “GoT” http://localhost:8080/function/memes-9gag FaaS CLI: echo “GoT” | faas-cli invoke memes-9gag UI: JSON Example: Note: all code used in this demo, is available on my Github Taking it further ? You can build an which consumes the function JSON response as below: Android application