Key takeaway
- Serverless data architecture for big data: how ETL, streaming, data lakes and SQL scale on AWS, Google Cloud and Azure, with limits and trade-offs.
Serverless architecture for big data means running ingestion, transformation, storage and query on managed services that scale with the workload and bill for what runs, so your team does not provision or patch Spark, Hadoop or Kafka clusters. It suits bursty and unpredictable data work: hourly ETL jobs, event-driven processing, ad hoc SQL over a data lake and spiky APIs. It fits less well where you need long-running jobs, deep tuning or fixed, high utilisation.
This guide gives enterprise architects and data leaders a layer-by-layer view across AWS, Google Cloud and Azure, with limits taken from vendor documentation, a serverless versus containers decision table, and the governance questions that decide whether a serverless data platform stays under control. For platform detail, see our guides to AWS serverless, Azure serverless and Google Cloud serverless.
What is serverless architecture for big data?
Serverless does not remove servers. It moves their provisioning, scaling and patching to the cloud provider, so you deploy code or SQL and pay for usage. Our overview of serverless computing covers the general model. For data platforms, the practical effect is that Spark clusters, stream brokers and query engines become services you configure rather than machines you run.
| Question | Short answer |
|---|---|
| What do you stop managing? | Cluster sizing, node patching and idle capacity for the managed service you use. |
| What do you still own? | Data design, schemas, access policy, cost limits, quotas, testing and monitoring. |
| How is it billed? | By usage, such as queries run, data processed, function execution time or capacity consumed. Check each service's pricing page. |
| What changes in operations? | Less cluster work, more attention to quotas, cold starts, retries and cost per job. |
How does a serverless data pipeline work?
A serverless data pipeline chains managed services so each layer scales on its own. The table maps the common layers to services named in each provider's documentation; open source alternatives sit in the last column.
| Layer | AWS | Google Cloud | Azure | Open source |
|---|---|---|---|---|
| Event compute | AWS Lambda | Cloud Run functions | Azure Functions | OpenFaaS, Fission, Apache OpenWhisk |
| Streaming ingest | Amazon Kinesis Data Streams | Pub/Sub | Azure Event Hubs | Apache Kafka |
| Batch and stream processing | AWS Glue | Dataflow (Apache Beam) | Azure Data Factory and Functions | Apache Spark, Apache NiFi |
| Lake storage | Amazon S3 | Cloud Storage | Azure Storage / Data Lake Storage | HDFS |
| Catalogue | AWS Glue Data Catalog | Google Cloud data catalogue tools | Azure data catalogue tools | Apache Atlas |
| Interactive SQL | Amazon Athena | BigQuery | Azure analytics services | Presto, Trino |
Several of these are described in the vendors' own words. AWS says AWS Glue is a serverless data integration service with a central Data Catalog, and Amazon Athena is serverless so you pay only for the queries you run. Google says Dataflow is a fully managed service built on Apache Beam that uses one programming model for batch and streaming, and BigQuery separates storage and compute, which operate independently of each other.
How do you build a serverless data lake?
A serverless data lake keeps raw data in object storage and attaches managed ingestion, cataloguing and query services. Four capabilities matter, whichever cloud you use.
| Capability | What it must do | Example services |
|---|---|---|
| Ingestion | Take batch and streaming sources and scale without cluster planning | AWS Glue, Kinesis, Dataflow, Pub/Sub, Event Hubs |
| Storage | Hold any file type for years at object-storage cost | Amazon S3, Cloud Storage, Azure Storage |
| Catalogue | Stay current as data lands, so people can find and trust it | AWS Glue Data Catalog, Apache Atlas |
| Query | Serve many users with SQL and charge for use | Athena, BigQuery |
ETL or ELT for a lake?
In ETL you transform before loading into the warehouse. In ELT you land the data as it arrives and transform later. ELT suits a lake because raw files in formats such as JSON, Avro or Parquet can be explored first, and transformations defined once the shape is understood. ETL still fits when you must filter or mask data before it is stored. For batch design choices, see our guide to modern batch processing.
How does serverless handle real-time analytics?
Real-time analytics needs a stream that absorbs unpredictable write rates, a processing layer that scales with it, and a serving layer for dashboards. Amazon says Kinesis Data Streams in on-demand mode needs no capacity planning, but also warns that write throttling can occur if traffic more than doubles the previous peak within 15 minutes, so retries must be built in. Provisioned mode suits predictable traffic and gives finer control over shards.
| Stage | What happens | Design check |
|---|---|---|
| Collect | Sources push events to a stream such as Kinesis, Pub/Sub or Event Hubs | Plan retries and back-pressure for bursts |
| Process | Functions or a stream engine clean, window and enrich events | Keep functions stateless and idempotent |
| Serve | Results go to a stream, a NoSQL store or a warehouse for dashboards | Pick one source of truth for each metric |
Azure says Event Hubs natively supports Apache Kafka, AMQP 1.0 and HTTPS, and can capture streams to Blob Storage or Data Lake Storage, which links the streaming and lake layers (see the Event Hubs overview). For a Spark and Kafka design with its own trade-offs, read our guide to real-time streaming. Time-stamped metrics are often better held in a time-series store, covered in our time-series database guide.
What about serverless databases?
A serverless database separates compute from storage and scales compute automatically. Amazon's Aurora Serverless v2 documentation says capacity is added in half-ACU steps, scaling typically happens with no pause in processing, and usage is measured per second. Whether a cluster can scale to zero and pause, and any limits that apply, should be confirmed on the official page for your engine and version before you design around it.
Serverless or containers for data workloads?
Choose by workload shape, not by fashion. Serverless suits intermittent, event-driven and stateless work. Containers on Kubernetes suit steady load, long jobs, custom runtimes and tight control. Many platforms use both, as in our Kubernetes architecture guide.
| Factor | Serverless functions | Containers |
|---|---|---|
| Traffic pattern | Bursty or rare calls | Steady or predictable load |
| Run time | Short tasks. AWS Lambda allows up to 900 seconds (15 minutes) per invocation | Long-running jobs and services |
| Memory | Lambda allows 128 MB to 10,240 MB | Set by node and pod sizing |
| Concurrency | Lambda default is 1,000 concurrent executions per Region, adjustable; new accounts can start lower | Set by cluster capacity and autoscaling rules |
| Languages | Lambda lists managed runtimes for Node.js, Python, Java, .NET and Ruby, with custom runtimes and container images for others such as Go and Rust | Any language you can containerise |
| State | Keep it outside the function | Persistent volumes possible |
| Observability | Provider metrics and logs; deep profiling is harder | Full control of agents and tooling |
| Cost | Pay per use, with cold starts on idle functions | Pay for provisioned capacity, even when idle |
Figures come from the Lambda quotas page and the Lambda runtimes page; quotas and runtimes change, so confirm on the official page before you design around them. Azure Functions has its own plan choices: Microsoft says Flex Consumption is the recommended serverless plan for new apps and that hosting Linux function apps on the Consumption plan is retiring on 30 September 2028 (see the Azure Functions hosting plans).
Which serverless data use cases work well?
| Use case | Why serverless fits | Watch for |
|---|---|---|
| Event-driven file processing, such as converting files that land in object storage | Pay only when files arrive; no always-on cluster | Function time and memory limits for large files |
| Scheduled ETL | Jobs run hourly or daily and billing follows run time | Retries, checkpoints and idempotent loads |
| Ad hoc SQL over a lake | No cluster to size; many users can query | Cost per query on large scans; partition data |
| Serverless APIs for dashboards | Rarely used endpoints cost little when idle | Cold starts on first call |
| IoT and log pipelines | Functions react to stream events | Hot partitions, throttling and alert noise |
| Scheduled operations, such as database backup jobs | Runs briefly on a timer | Failure alerts and access rights |
For IoT specifics, see our IoT analytics platform guide.
How do you govern cost, security and context?
Serverless lowers infrastructure toil but widens the number of small, independently deployed pieces. A few controls keep it manageable.
| Risk | Control |
|---|---|
| Cost surprises from scans, retries or runaway triggers | Budgets and alerts per service, query limits, and tagging by pipeline |
| Wide permissions across many functions and buckets | Least-privilege roles per function, encryption and logged data access |
| Unclear meaning and ownership of data in the lake | A maintained catalogue, data owners and quality checks at ingestion |
| AI agents acting on lake data without policy | Governed context, versioned policy and decision traces above the agents |
Where AI agents query or act on lake data, the same discipline applies to their decisions. ElixirData Context OS keeps governed context, versioned policy and decision traces in one decision layer above AI agents, and AgentAnalyst lets teams ask questions of enterprise data in plain language and get real-time insights.
How should you adopt serverless for data?
| Step | Action | Exit check |
|---|---|---|
| 1 | Pick one bursty job, such as an hourly ETL or a file-triggered conversion | Cost and run time measured against the current cluster |
| 2 | Move storage to object storage and add a catalogue | Datasets findable and owned |
| 3 | Add a serverless query layer for analysts | Query cost visible per team |
| 4 | Add streaming only where latency matters | Retry and throttling behaviour tested |
| 5 | Review quotas, security and cost monthly | Limits and budgets reviewed |
When not to use it: sustained high utilisation, jobs that exceed function limits, workloads that need custom kernels or GPUs, or teams that cannot yet monitor many small services. Open source options such as OpenFaaS, Fission and Apache OpenWhisk run functions on Kubernetes or your own infrastructure; check each project's official page for current status before adopting one. Our guide to OpenFaaS with Java shows one such design.
To map one data decision your agents should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.
FAQ
What is serverless architecture for big data?
It is a design where ingestion, processing, storage and query run on managed services that scale with the workload and bill for usage, so teams do not run Spark or Hadoop clusters. Servers still exist; the provider manages them.
Is a serverless data lake cheaper than a cluster?
It can be for bursty or intermittent work, because you pay when jobs and queries run. For steady, high-volume workloads, provisioned capacity can cost less, so compare real usage against each provider's pricing page.
What are the main limits of AWS Lambda for data processing?
According to AWS documentation, a function can run for up to 900 seconds and use 128 MB to 10,240 MB of memory, with a default of 1,000 concurrent executions per Region. Confirm current quotas on the official page.
When should I choose containers instead of serverless functions?
Choose containers for long-running jobs, steady load, custom runtimes or tight control over networking and monitoring. Serverless fits short, stateless, event-driven tasks.
Does Azure still offer the Consumption plan for Linux functions?
Microsoft says hosting Linux function apps on the Consumption plan is retiring on 30 September 2028 and recommends Flex Consumption for new serverless apps. Confirm on the Azure Functions hosting page.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE