Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Knative versus AWS Lambda and Azure Functions

October 19, 2023
Maarten Vandeperre
Related topics:
KubernetesServerless
Related products:
Red Hat OpenShift

    When we chat about serverless, we often bring up Knative, AWS Lambda, and Azure Functions. Let's not forget Google's version, although I will keep it simple in this article. These tech toys might seem like they compete with each other, but from a clean architecture angle, they are not exactly playing the same game. If you’re new to clean architecture, feel free to check out the article, Implementing clean architecture solutions: A practical example for reference.

    My perspective of clean architecture

    Here's the deal... When I put on my clean architecture glasses, Knative fits snugly in the Kubernetes playground, making it a core part of your platform (Figure 1). In this setup, the platform itself becomes sort of like an application within the clean architecture model, which is similar to the positioning of Red Hat OpenShift within the hypervisors landscape as described in my previous article.

     

    An illustration of clean architecture and onion layered.
    Figure 1: An illustration of clean architecture and onion layered.

    On the flip side, AWS Lambdas, Azure Functions, and their buddies are more about handling the nitty-gritty infrastructure. They're all about storage, triggers, and other techy bits (Figure 2).

    An illustration of the serverless design the clean architecture way.
    Figure 2: An illustration of the serverless design the clean architecture way.

    So, if we map these serverless pals to a clean architecture-style setup, I go back to that onion layer concept we talked about before (see Figure 3). AWS Lambda, Azure Functions, and their gang become part of the infrastructure/data providers layer, which is kind of like the outer layer of the onion. But Knative, it hangs out in the core layer like the cool kid in town.

    The cool thing is that Knative isn't tied to any specific vendor, so you can shift it around – from your own servers to AWS, from AWS to Google, or even to Azure – without messing with the core layer. All the action happens in the infrastructure layer, keeping things neat and tidy. Therefore, this setup lines up with the clean architecture vibes. You can spot this in the illustration below, where we tap into the built-in connection between S3 buckets and AWS Lambda to kickstart a Knative function.

    The blue box is tailored to a specific hypervisor (like AWS in this case), while the green one is flexible and works with any hypervisor. If you ever decide to switch to Azure, all you need to do is recreate the blue box in Azure and copy and paste the green part there too. Since the green part is our clean architecture core layer,"shifting functions between hypervisors becomes a breeze (quick and hassle-free).

    An example of serverless computing with clean architecture style design.
    Figure 3: An example of serverless computing with clean architecture style design.

    Implement clean architecture

    If you want to give clean architecture a try, go explore my demo code on GitHub. Please feel free to comment below. We welcome your feedback.

    Related Posts

    • Implementing clean architecture solutions: A practical example

    • Common architectural elements for modern integration architectures (Part 2)

    • Reference Architecture for Agile Integration

    • My advice for transitioning to a clean architecture platform

    Recent Posts

    • Trusted software factory: Building trust in the agentic AI era

    • Build a zero trust AI pipeline with OpenShift and RHEL CVMs

    • Red Hat Hardened Images: Top 5 benefits for software developers

    • How EvalHub manages two-layer Kubernetes control planes

    • Tekton joins the CNCF as an incubating project

    What’s up next?

    Learn how to create an Apache Camel integration and deploy it as a serverless service using the VS Code extension Karavan.

    Start learning
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.