Understand Serverless use-cases in this fireside chat with Alex Ellis from OpenFaaS and David McKay from Equinix Metal
Exploring Serverless use-cases
In this blog post I’ll introduce you to use-cases for Serverless, a video recorded with David McKay from the DevRel team at Equinix Metal, and some resources for how to learn more and to start applying this to your own workflows.
David and I have known each other for several years and are both active in Open Source, he’s also contributed to OpenFaaS in the past.
OpenFaaS is a platform that makes Open Source serverless easy and accessible on any cloud or host, even on a Raspberry Pi. Every week our community is inundated with support requests, feature suggestions and feedback. However, one of the things that seems elusive is an understanding of what people use it for, and how it’s being used.
Over the past 4 years I’ve spent time getting to know end-users, and asking probing questions, and in some cases users have gone ahead and written up a submission to the OpenFaaS ADOPTERS file. The first time I saw the concept of ADOPTERS files was in the Cloud Native Computing Foundation (CNCF)’s requirements for donating a project. It seemed like a good idea, and like it would help answer the question we often got: “what can I use serverless for?”
There’s no stringent requirements for sending a Pull Request, but ideally we are looking for the company or project name, and one or two sentences explaining the value or how it’s being used.
- “We’re Canada’s leading personal finance comparison site.”
- “We’re breaking apart our monolithic PHP and Java codebases into Node, PHP and Java OpenFaaS functions.”
- “There’s not much that we don’t plan on moving to FaaS!”
Another, more recent example comes from Simon Emms, a DevOps consultant from the UK contracted to a government body.
HM Planning Inspectorate -is the UK Government body responsible for dealing with planning appeals, national infrastructure planning applications, examinations of local plans and other specialist casework in England and Wales. OpenFaaS eased the communication between the new planning appeals website and the monolithic back-office application and allowed easy retries in the event of network failure.
First Baptist Church Carrollton - “We use faasd as the backend for a Slack bot connected to our internal Slack workspace. The bot was initially created to facilitate remote question and answer sessions at our church by allowing viewers of our live stream to text or email questions in, have a staff member ask their question in the room, and then allow the staff member to send a response back to the sender. The texting is facilitated by Twilio while the email is done by interacting with a Gmail account via IMAP and SMTP.”
You may ask why there are only ~ 110 lines in this file, when there are 26k GitHub Stars on the OpenFaaS organisation.
That would be a valid question. One of the main challenges is that only a small amount of companies using Open Source software are happy to talk about their use-case. At one point we collected end-user logos where permission had been granted and had around 60 logos listed on the OpenFaaS website before moving over to the text file.
The other part of this is where a developer through so-called “bottom-up” adoption deploys OpenFaaS to make his, or his team’s life easier and doesn’t have permission to mention the company’s name. There’s actually over 3500 people that have signed up to OpenFaaS Slack for free community support, and most of those said they were planning on or actually using OpenFaaS for work, which is reassuring.
However, we still have a problem of getting those users to submit something and share. But why should that matter?
Sharing use-cases helps demystify the technology. It leads the way and shows how to solve real problems. For that reason David and I met on YouTube to walk through our own personal use-cases and to highlight some from the community.
I hope you’ll enjoy the video.
Catch up with the recording
Here’s some of what you’ll get from the video:
- 0:30 - Introduction to our hosts
- 3:55 - How can you tell if you’re “ready for serverless”?
- 07:48 - What is serverless?
- 10:40 - Derek and GitHub webhooks
- 11:40 - Okteto generated changelogs
- 14:03 - Workflows with Stripe
- 19:08 - Gumroad automation
- 22:30 - Webhooks for automation
- 23:45 - Mixing static pages and functions
- 29:27 - OpenFaaS end-users (adopters)
- 32:35 - Rawkode’s Pipedream demo
- 36:50 - Contentful
- 41:19 - Web scraping
- 43:48 - Serverless For Everyone Else eBook
You can view the show notes here
Where could you start today?
Do you use a CDN to serve a static webpage, docs or a blog?
You can get dynamic data and run a function from your app deployed to GitHub Pages or Netlify. You’ll learn how in the video. Example: Leaderboard app
Do you have repos on GitHub?
Connect webhooks, so you can forward star events to your Slack workspace or Discord server. Example: alexellis/github_gazing
Do you use a SaaS or a proprietary system and wish it did a bit more?
Is there a portal or internal website that could save you or your colleagues time by automating something?
Example: my Treasure Trove Sponsors Portal
Do you sell something with Stripe?
Do something with those events using functions. Example: Tracking Stripe Payments with Slack and faasd
Do you want to scrape data from a webpage, or to generate social sharing images?
Learn how to use CSS + HTML to generate images with headless Chrome, example: Web scraping that just works
Find out more
If you’re an OpenFaaS end-user, think about sending us a PR to the ADOPTERS.md.
Read on for a couple of ways to get started, or to support the community’s work.
Figure out Serverless in a weekend
Still not sure what Serverless is, or if it could be of use to you at home or at work?
You can run OpenFaaS on a cloud VM, your laptop, or a Raspberry Pi. In the hands-on video I’ll show you how to build functions in Node.js.
Until Monday 22nd Feb, you can get the video workshop upgrade for free when you buy the DevOps PRO tier.
You can also see how I wrote an OpenFaaS function to get notifications from Gumroad for sales, and how the free upgrades work, including the logic for sending emails and the promotion end-date.
Check it out on Gumroad: Serverless For Everyone Else
Already using OpenFaaS?
Join GitHub Sponsors for 25 USD / mo for access to discounts, offers, and updates on OpenFaaS going back to mid-2019. Taking this small step, has a huge collective impact on the sustainability of the project.