Where is my server? This is the joke that I always hear from a colleague every time we talk about serverless. But all kidding aside, I believe that this is what most people think about when the serverless topic comes up, and this leads me to wonder if we all really understand the concept and the technologies that enable it.
In this article, I will try to provide some answers about what serverless is, and touch on some technologies behind the buzzword. In addition, I will introduce OpenShift Serverless, along with its features, and discuss why it should be considered as the preferred platform for your serverless workloads.
To understand OpenShift Serverless better, go to this article for an OpenShift Serverless demo.
What is Serverless:
Serverless computing as we know it is a concept where you can build and run an application without needing a server, hence the quote “where is my server?”
As per CNCF definition, It describes a finer-grained deployment model where applications, bundled as one or more functions, are uploaded to a platform and then executed, scaled, and billed in response to the exact demand needed at that moment.
But serverless computing does not mean that you really don’t need servers and other components like networking, firewall and storage to host and run your applications. Serverless computing still needs an operations team to maintain and manage the servers and networking components and to perform provisioning, maintenance, updates, scaling, and capacity planning.
Instead, serverless computing provides a platform that is capable of abstracting the operations requirement so the consumers of the platform - especially the developers - can focus on writing business critical applications while the operations team focus on business critical tasks.
Furthermore, serverless is actually a combination of Function as a Service (FaaS) and Backend as a Service (BaaS). FaaS, is simply event driven computing, using simple code created by a developer that can be deployed without depending on the implementation of related parts, while BaaS is defined as an API based service to provide infrastructure that can autoscale.
Serverless Offerings:
Looking at the major public cloud providers, all of them have their own version of serverless offerings and the options keep growing over time. This information is based on the following survey
AWS Lambda: AWS Lambda was GA in 2015 and is the overwhelming top offering in terms of usage as per the Serverless community survey. AWS Lambda supports JavaScript, Go, Python, Ruby, Java, and C#. Lambda functions can be triggered by AWS services like S3 buckets, HTTP requests from API Gateway, record changes in DynamoDB tables, messages arriving on SNS topics, and Kinesis streams.
Azure Functions: Azure Functions was GA in 2016 and is the second most popular serverless offering. Azure Functions support JavaScript, C#, Python, PHP, Scripting tools. Azure functions can be triggered by Azure services like Azure blob storage notifications, CosmoDB, HTTP requests, scheduled events and events from event hubs.
Google Cloud Functions: Google Cloud Functions was GA in 2017 and is the third most popular serverless offerings. Google Cloud Functions has the least language support which include JavaScript, Go and Python for now and can be triggered by Cloud storage bucket notifications, HTTP requests, Cloud events and Firebase events.
IBM Cloud Functions: GA in 2016 - IBM Cloud functions supports JS, Go, Python, Ruby, Java, C# and can be triggered by HTTP requests, messages from Apache Kafka or Message Hub topics, changes in Cloudant noSQL DB tables, scheduled events, virtually any type of external system, provided an integration has been created for it.
OpenShift Serverless:
So what is OpenShift Serverless and why should you consider it as your next platform for your serverless workloads?
OpenShift Serverless is based on the Knative project and supports almost any containerized application as it is designed to utilize many of the baseline features of OpenShift. Beyond auto-scaling for HTTP requests, you can trigger serverless containers from a variety of event sources and receive events such as Kafka messages, file upload to storage, timers for recurring jobs, and 100+ event sources like Salesforce, ServiceNow, email, etc, and is powered by Camel-K.
Unlike the serverless offerings by the major public clouds and similar, OpenShift serverless removes the lock-in concerns while enjoying the features developed by the open source community.
In addition, when you think about Serverless, you need to have an application that can startup quickly, respond quickly that requires low memory and small disk size. Quarkus is an ideal framework for this use case. Quarkus is a full-stack, Kubernetes-native Java framework made for Java virtual machines (JVMs) and native compilation, optimizing Java specifically for containers and enabling it to become an effective platform for serverless, cloud, and Kubernetes environments. More information about Quarkus can be found here.
OpenShift Serverless provides you a comprehensive serverless platform that enables speed and agility with low resource footprint. In short, OpenShift Serverless provides more than just the serverless primitives because all of OpenShift features inherent to the platform are automatically inherited, such as deploying new application features or revisions, performing canary, A/B or blue-green testing with gradual traffic rollout can be done easily.
Using OpenShift Serverless, developers will enjoy a simplified developer experience to deploy applications/code on serverless containers, abstracting infrastructure to focus on developing code that matters. This makes hybrid cloud readiness automatically attainable as well because you can run OpenShift on premise or on any public cloud. Most importantly with the use of operators, you can build loosely coupled and distributed applications which can then connect with a variety of built-in or third-party event sources or connectors.
Conclusion:
The Serveless space is rapidly evolving. This means that the serverless capabilities will likely change and evolve with the growing innovations from the open source. To make sure you benefit from this rapid, open source innovation and to avoid lock-in, one should consider looking at OpenShift Serverless as the platform of choice for serverless applications.
With OpenShift and the immutable architecture that it brings to the table, one can attain a serverless implementation that can handle more complex orchestration and integration patterns combined with some level of state management. Essentially, serverless will just be another application since most enterprises will want to be running a combination of serverless and non-serverless workloads.
References:
- https://www.martinfowler.com/articles/serverless.html
- https://medium.com/r/?url=https%3A%2F%2Fgithub.com%2Fjeremydaly%2Fserverless-community-survey-2020
- https://www.openshift.com/learn/topics/serverless
- https://quarkus.io/
- https://www.oreilly.com/radar/an-introduction-to-immutable-infrastructure/
- https://camel.apache.org/camel-k/latest/index.htm
- https://knative.dev/
About the author
Browse by channel
Automation
The latest on IT automation for tech, teams, and environments
Artificial intelligence
Updates on the platforms that free customers to run AI workloads anywhere
Open hybrid cloud
Explore how we build a more flexible future with hybrid cloud
Security
The latest on how we reduce risks across environments and technologies
Edge computing
Updates on the platforms that simplify operations at the edge
Infrastructure
The latest on the world’s leading enterprise Linux platform
Applications
Inside our solutions to the toughest application challenges
Original shows
Entertaining stories from the makers and leaders in enterprise tech
Products
- Red Hat Enterprise Linux
- Red Hat OpenShift
- Red Hat Ansible Automation Platform
- Cloud services
- See all products
Tools
- Training and certification
- My account
- Customer support
- Developer resources
- Find a partner
- Red Hat Ecosystem Catalog
- Red Hat value calculator
- Documentation
Try, buy, & sell
Communicate
About Red Hat
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
Select a language
Red Hat legal and privacy links
- About Red Hat
- Jobs
- Events
- Locations
- Contact Red Hat
- Red Hat Blog
- Diversity, equity, and inclusion
- Cool Stuff Store
- Red Hat Summit