Skip to main content
XenonStack

Big Data Engineering

Serverless

XenonStack Blog Serverless Architecture for Big Data and Data Lakes

and | Published | Updated

Serverless Architecture for Big Data and Data Lakes
13:14

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.

QuestionShort 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.

Two-column diagram mapping pipeline layers (collect, process, store, query) to AWS services: Kinesis Data Streams, Lambda and Glue, S3 with Data Catalog, Athena.
LayerAWSGoogle CloudAzureOpen source
Event computeAWS LambdaCloud Run functionsAzure FunctionsOpenFaaS, Fission, Apache OpenWhisk
Streaming ingestAmazon Kinesis Data StreamsPub/SubAzure Event HubsApache Kafka
Batch and stream processingAWS GlueDataflow (Apache Beam)Azure Data Factory and FunctionsApache Spark, Apache NiFi
Lake storageAmazon S3Cloud StorageAzure Storage / Data Lake StorageHDFS
CatalogueAWS Glue Data CatalogGoogle Cloud data catalogue toolsAzure data catalogue toolsApache Atlas
Interactive SQLAmazon AthenaBigQueryAzure analytics servicesPresto, 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.

CapabilityWhat it must doExample services
IngestionTake batch and streaming sources and scale without cluster planningAWS Glue, Kinesis, Dataflow, Pub/Sub, Event Hubs
StorageHold any file type for years at object-storage costAmazon S3, Cloud Storage, Azure Storage
CatalogueStay current as data lands, so people can find and trust itAWS Glue Data Catalog, Apache Atlas
QueryServe many users with SQL and charge for useAthena, 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.

StageWhat happensDesign check
CollectSources push events to a stream such as Kinesis, Pub/Sub or Event HubsPlan retries and back-pressure for bursts
ProcessFunctions or a stream engine clean, window and enrich eventsKeep functions stateless and idempotent
ServeResults go to a stream, a NoSQL store or a warehouse for dashboardsPick 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.

FactorServerless functionsContainers
Traffic patternBursty or rare callsSteady or predictable load
Run timeShort tasks. AWS Lambda allows up to 900 seconds (15 minutes) per invocationLong-running jobs and services
MemoryLambda allows 128 MB to 10,240 MBSet by node and pod sizing
ConcurrencyLambda default is 1,000 concurrent executions per Region, adjustable; new accounts can start lowerSet by cluster capacity and autoscaling rules
LanguagesLambda lists managed runtimes for Node.js, Python, Java, .NET and Ruby, with custom runtimes and container images for others such as Go and RustAny language you can containerise
StateKeep it outside the functionPersistent volumes possible
ObservabilityProvider metrics and logs; deep profiling is harderFull control of agents and tooling
CostPay per use, with cold starts on idle functionsPay 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 caseWhy serverless fitsWatch for
Event-driven file processing, such as converting files that land in object storagePay only when files arrive; no always-on clusterFunction time and memory limits for large files
Scheduled ETLJobs run hourly or daily and billing follows run timeRetries, checkpoints and idempotent loads
Ad hoc SQL over a lakeNo cluster to size; many users can queryCost per query on large scans; partition data
Serverless APIs for dashboardsRarely used endpoints cost little when idleCold starts on first call
IoT and log pipelinesFunctions react to stream eventsHot partitions, throttling and alert noise
Scheduled operations, such as database backup jobsRuns briefly on a timerFailure 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.

RiskControl
Cost surprises from scans, retries or runaway triggersBudgets and alerts per service, query limits, and tagging by pipeline
Wide permissions across many functions and bucketsLeast-privilege roles per function, encryption and logged data access
Unclear meaning and ownership of data in the lakeA maintained catalogue, data owners and quality checks at ingestion
AI agents acting on lake data without policyGoverned 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?

StepActionExit check
1Pick one bursty job, such as an hourly ETL or a file-triggered conversionCost and run time measured against the current cluster
2Move storage to object storage and add a catalogueDatasets findable and owned
3Add a serverless query layer for analystsQuery cost visible per team
4Add streaming only where latency mattersRetry and throttling behaviour tested
5Review quotas, security and cost monthlyLimits 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.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue