Back to the guides

Serverless vs Containers in Banking (2026): When to Use Each

Serverless suits short, event-driven banking work such as payment notifications, AML batch scoring and data pipelines, while containers on Kubernetes suit the core ledger, card authorisation and other stateful, latency-critical services. Most banks run both, and under DORA each cloud platform needs an exit plan.

Serverless vs Containers in Banking (2026): When to Use Each

Serverless vs containers in banking: the short answer

The choice between serverless and containers in banking depends on the shape of each workload, not on which technology is newer. Serverless platforms such as AWS Lambda, Google Cloud Functions and Azure Functions bill per invocation and scale to zero, so they fit intermittent, event-triggered tasks. Containers orchestrated by Kubernetes keep processes running with predictable latency and state, which is what a ledger or a card authorisation service needs. A bank or EMI that runs a modern stack almost always uses both.

"Serverless" covers three different things. Function-as-a-Service (FaaS) runs a single function per event. Serverless containers (Google Cloud Run, AWS Fargate, Azure Container Apps) run an ordinary container image without a cluster to manage. Serverless databases scale storage and compute separately from the application. The common thread is that you describe what to run, and the provider decides where and on how many machines.

Serverless makes sense when three conditions hold together: the workload is event-driven and intermittent, a delay of a few hundred milliseconds on the first request (a cold start) is acceptable, and the code is stateless or reads its state from an external store. When any of those conditions fails, a container that is already running is usually the safer and cheaper option.

Pay per execution

Cost follows customer activity. No idle capacity overnight when transaction volume drops.

Elastic scaling

A salary-day spike scales out automatically instead of through manual capacity planning.

Less ops work

No OS patching or server fleet. Engineering time moves to business logic, while the provider carries more of the stack.

Both models are now mainstream. Kubernetes in particular has become the default way to run containers in production, as the CNCF survey data below shows. For the wider context of moving a bank to public cloud, see our guide to cloud banking.

Container users running Kubernetes in production
0255075100%2023 · 66 %20232025 · 82 %2025
Show the data
CategoryKubernetes in production (%)
202366
202582

Source: CNCF Annual Cloud Native Survey (published January 2026). Share of organisations that use containers. Cross-industry survey, not banking only.

Let's discuss your project and see how we can launch your digital banking product together

Request demo

Which banking workloads fit serverless, and which do not

Short, event-triggered and stateless banking tasks fit serverless; long-running, stateful and latency-critical ones do not. Matching the workload to the execution model is the decision that separates a sound architecture from an expensive one.

Workload Serverless fit Notes
Payment event handling and notifications Good Event-driven and short; scales with volume spikes
AML / fraud scoring (async batches) Good Fan-out across many concurrent functions shortens batch runs
Statement and report generation Good Runs at month end, idle the rest of the time
ETL and data pipelines Good Transformations triggered by file or event arrival, no standing compute
AI inference with bursty demand Mixed Fine for occasional CPU inference; GPU models usually run on containers
Core ledger / double-entry engine Poor Stateful, latency-critical and needs strict ordering and consistency
Real-time card authorisation Poor Tight end-to-end response budget set by the card scheme; cold starts add risk
Low-latency trading Poor Latency needs are far below what serverless platforms guarantee

The pattern is the one most banking microservices teams arrive at: services that own money movement and balances run continuously on containers, and the work around them (notifications, reconciliation jobs, exports, analytics) is pushed onto events and handled by functions. That split also keeps the ledger out of the blast radius of a misbehaving batch job.

Capital One is the best-known public example. It closed its last data centres in 2020, runs on AWS and has spoken publicly about a serverless-first approach for new applications, while keeping long-running services on containers. Its lesson for smaller firms is that the operating model (observability, cost ownership, guardrails) matters more than the choice of compute.


Serverless containers and Knative: the middle ground

Serverless containers give you a normal container image with serverless billing and scaling, which removes most FaaS limits while keeping the low operations load. For many banking APIs this is the most practical option.

Google Cloud Run, AWS Fargate and Azure Container Apps all run standard OCI images. You keep your own runtime, libraries and language version, request timeouts are longer than for FaaS, and the same image can later move to a Kubernetes cluster without a rewrite. Cloud Run and Azure Container Apps also scale to zero; Fargate bills per running task.

Knative is the open-source layer that brings the same model to any Kubernetes cluster, on-premises or in any cloud. Cloud Run is built on the Knative API, so a service written for one can be moved to the other with limited changes. For a regulated firm this matters because it gives a credible exit route, which DORA expects you to document (see below).

Option What you manage Portability
FaaS (Lambda, Functions) Function code only Low: event formats and APIs are provider-specific
Serverless containers Container image and service config Medium to high: standard images, Knative-compatible on Cloud Run
Managed Kubernetes (EKS, GKE, AKS) Workloads, node pools, add-ons High: CNCF-standard APIs
Self-managed Kubernetes Everything, including the control plane Highest, at the highest operating cost

Kubernetes for banking: platform design

Kubernetes is the standard way to run banking services that need persistent processes, predictable latency or control over the runtime. In a regulated firm the cluster has to be designed for isolation, audit and recovery from the start.

Most firms now use a managed control plane (Amazon EKS, Google GKE or Azure AKS) rather than running their own, which moves patching of the API server and etcd to the provider. What stays with you is listed below.

Area Banking requirement
API server access Private endpoint, OIDC authentication tied to the corporate identity provider, no static tokens
etcd and secrets Envelope encryption of Secrets with a KMS key you control
Tenancy Separate namespaces or clusters per environment and, where needed, per client
Networking Default-deny network policies, mTLS between services, controlled egress
Resilience Nodes across availability zones, tested backups of cluster state and data, documented recovery time

How you isolate clients is a design choice with cost and compliance consequences; our guide to multi-tenant banking platforms compares the options. Databases need the same thought: stateful sets on Kubernetes are possible, but many teams keep the ledger database on a managed service, as covered in banking database design.


Kubernetes security for regulated workloads

A banking cluster is secured through identity, network policy, secret handling, observability and change control, applied together from the first deployment.

Zero-trust networking. Treat every pod-to-pod connection as untrusted. Use RBAC bound to your identity provider through OIDC, apply Pod Security Admission with the "restricted" profile by default, and add network policies so only services that need to talk can do so.

Secret management. Keep credentials out of environment variables and plain Kubernetes Secrets. Use a secrets engine such as HashiCorp Vault or the cloud provider's secret manager, backed by an HSM or KMS for key material, and mount secrets as short-lived volumes. Our guide to key management covers the HSM side.

Observability. Supervisors expect you to detect and explain incidents, so metrics, logs and traces are a control, not only an engineering tool:

Metrics

Prometheus collects cluster and application metrics; Grafana dashboards serve the SRE team and audit evidence.

Logs

Structured logs shipped to a central store (for example the EFK stack) with retention that matches your record-keeping duties.

Traces

OpenTelemetry or a service mesh such as Istio follows one payment request across every service it touches.

GitOps for change control. Tools such as Argo CD or Flux apply cluster state from a versioned Git repository. Every change is a reviewed pull request, which gives you the approval trail auditors ask for and a fast way to rebuild a cluster after an incident.

PCI DSS scoping. If cardholder data passes through the cluster, PCI DSS v4.0.1 applies to the nodes, network and pipelines involved. Keep card workloads in dedicated namespaces or a dedicated cluster with enforced segmentation, so the rest of the platform stays out of scope. Short-lived containers help, but you still need image scanning, logs that survive the container and evidence that segmentation works.


Serverless vs containers: the decision table

Choose per workload: serverless for intermittent, event-driven and stateless work, containers for continuous, stateful or latency-critical services. The table compares the two on the points that matter in a bank.

Dimension Serverless (FaaS / serverless containers) Kubernetes containers
Billing model Per request and per unit of execution time Per node or per vCPU and memory reserved
Startup latency Cold start from around 100 ms to a few seconds, depending on runtime and package size Pods already running; tail latency under your control
State Stateless; state lives in an external store Stateful services supported through persistent volumes
Execution limits AWS Lambda: 15 minutes per invocation; serverless containers allow longer requests No limit; long-running services work natively
Operations Provider runs the infrastructure Cluster upgrades, node pools, add-ons
Portability Low for FaaS, better with containers and Knative High: CNCF-standard across clouds and on-premises
Typical banking fit Event handlers, reporting, data pipelines, back-office jobs Ledger, payments core, card processing, API gateways

A quick test: if the task runs for minutes at most, starts on an event and can wait a moment on the first call, use serverless. If it runs all the time, needs predictable latency or holds state, use containers. Where these two worlds meet is part of your overall digital banking architecture.

Organisations using serverless, by cloud
%AWS customersAWS customers · 70 %70Google Cloud customersGoogle Cloud customers · 60 %60Azure customersAzure customers · 49 %49
Show the data
CategoryUse one or more serverless services (%)
AWS customers70
Google Cloud customers60
Azure customers49

Source: Datadog, The State of Serverless (2023). Datadog customers only, all industries. AWS figure is reported as over 70%.


Cold starts, cost and when serverless gets expensive

Cold starts can be managed, and serverless is cheaper only while traffic is uneven; at steady high volume, reserved container capacity usually wins.

Cold starts. A function that has been idle needs time to start a new instance, from roughly 100 ms for a small runtime to several seconds for a large Java package. Background jobs do not notice. A customer-facing API with a tight latency target will. The fixes are provisioned concurrency or minimum instances (which you pay for while idle), smaller packages, or keeping the critical path on always-on containers.

Cost break-even. Per-request pricing has no idle cost, but each request costs more than the same work on a busy container. The point where they cross depends on request duration, memory and how evenly traffic is spread. Check your own numbers with the providers' price calculators: model the month's request count and average duration on FaaS, then price the containers that would serve the peak with headroom. A service that is busy around the clock almost always comes out cheaper on containers; one that is idle most of the day almost always comes out cheaper on serverless.

Operational maturity. Serverless spreads logic across many small functions. Without distributed tracing and central logs, a failed payment that crossed seven functions takes hours to investigate. Build observability and cost ownership (per-team budgets, tools such as Kubecost or the cloud's own cost reports) before widening serverless use.

Phase 1 - internal jobs

Batch and back-office work first. Build tracing and cost reporting before customers depend on it.

Phase 2 - digital channels

Event-driven customer features: notifications, onboarding steps, document processing.

Phase 3 - cost governance

Cost per service tracked and reviewed; workloads moved between models when the numbers say so.


DORA, cloud concentration and exit plans

Under DORA, which has applied since 17 January 2025, every cloud service that supports a critical or important function must be in your register of information and covered by an exit strategy, whatever compute model you use.

Serverless raises the stakes of that requirement. The deeper you rely on provider-specific triggers, queues and identity, the harder an exit becomes. DORA Article 28 expects documented exit plans that you could actually execute, and the European Supervisory Authorities now oversee designated critical ICT third-party providers, a list that includes the large cloud platforms. Our guide to DORA for payment institutions covers the register and testing duties in detail.

In practice, a defensible position looks like this:

  • The ledger and payment services run as containers on standard Kubernetes APIs, so they can be redeployed to another provider.
  • Event-driven functions sit behind your own interfaces (a message schema you own, not a provider's event format), so they can be rewritten without touching the core.
  • Data is backed up in a form you can restore outside the provider, and the restore is tested.
  • The register of information names each cloud service, the function it supports and the exit route.

How Crassula splits workloads

Crassula keeps money-critical services on always-on containers and pushes surrounding work onto events, the same split this guide recommends.

Crassula Core runs the ledger, accounts, payments and card services as continuously running services with predictable latency. Notifications, webhooks, reporting and integrations with external providers are handled asynchronously, so a slow third party does not hold up a balance update. Clients get the platform through APIs and do not have to run the cluster themselves, which removes most of the operations work this guide describes. If you are replacing an older system, our guide to core banking modernization explains how to move in stages.

To see how the architecture fits your licence and roadmap, request a demo.


FAQ

Serverless works well when a workload is event-driven, short-lived and stateless. Good banking examples are payment notifications, AML batch scoring, statement generation and data pipelines. If the task runs for minutes at most, has uneven traffic and can tolerate a brief cold start, serverless is usually the right model.

Keep the core ledger, real-time card authorisation, low-latency trading and long-running stateful processes off FaaS. These need predictable latency, strict ordering or in-memory state, which per-invocation platforms do not guarantee. Run them as containers instead.

Yes, if it is configured and governed properly. The provider secures the infrastructure, while you remain responsible for identity and permissions, secrets, data encryption, logging and the outsourcing controls DORA requires. Most incidents come from over-broad permissions and missing logs, not from the platform itself.

Yes. Kubernetes is widely used in financial services for core services, payment processing and API platforms, usually on a managed service such as EKS, GKE or AKS. Across all industries, the CNCF reported that 82% of container users ran Kubernetes in production in 2025.

Only for uneven or low traffic. Serverless has no idle cost, but each request costs more than on a well-used container, so a service that is busy around the clock is usually cheaper on Kubernetes. Model both options with the provider's price calculator using your real request counts and durations.

A cold start is the delay when a platform starts a new instance for a function that has been idle, from around 100 ms to several seconds. You can reduce it with provisioned concurrency or minimum instances, smaller deployment packages and lighter runtimes, or by keeping latency-critical paths on always-on containers.

Use a private, OIDC-authenticated control plane, default-deny network policies with mTLS, and the restricted Pod Security profile. Keep secrets in Vault or a cloud secret manager backed by a KMS or HSM, collect metrics, logs and traces, and deploy through GitOps so every change is reviewed. Segment card workloads to keep PCI DSS scope small.

DORA does not ban either model, but every cloud service that supports a critical function must be in your register of information with a tested exit strategy. Heavy use of provider-specific serverless services makes exit harder, so many firms keep core services on portable containers and wrap functions behind their own interfaces.

Serverless containers such as Cloud Run, Fargate or Azure Container Apps run your container image without a cluster to manage and bill by use. Kubernetes gives you full control over scheduling, networking and stateful workloads, at the cost of running the cluster. Knative brings the serverless container model onto any Kubernetes cluster.

Other Guides

Create a digital bank in a matter of days

Request demo
Companies using Crassula
150+ companies already with us
Top