Full Stack Data EngineeringEnterprise AI delivery and architecture

Choose serverless, workers or containers from workload constraints

PK
Pankit Kumar
Sr. Data Scientist at Parexel (a Goldman Sachs–backed company) · 20 September 2026 · 2 min read
Technically reviewed by Ishaan Sharma
In this article (4 sections)

Compute choice follows workload shape. Short stateless bursts can fit a function. Long asynchronous jobs need a queue and worker lifecycle. Persistent connections, custom runtimes or steady state may fit containers. Standardizing blindly on one option moves complexity rather than removing it.

Build the decision artifact

Measure execution duration, arrival pattern, concurrency, memory and accelerator needs, state, network behavior, cold-start tolerance and cancellation. Add security boundaries, deployment frequency, observability and the team’s operating capability. Model retry amplification and quota behavior before estimating cost.

The enterprise delivery lab makes this reasoning executable with synthetic data:

python
from enterprise_cases import workload_platform_case

result = workload_platform_case()
assert result["choices"]["thumbnail"] == "serverless"
assert result["choices"]["document_batch"] == "worker"
assert result["choices"]["stream_gateway"] == "container"
assert result["one_platform_for_all"] is False

The fixture maps a two-second thumbnail to serverless, a fifteen-minute document batch to a worker and a long-lived streaming gateway to a container. These are reasoned defaults for the authored constraints, not provider-independent laws. A different runtime limit or traffic profile can change the answer.

Test the failure path

A platform decision based only on nominal price omits idle capacity, egress, queueing, failure recovery and engineering effort. A serverless endpoint that synchronously waits on a model can hit timeouts; a worker without bounded concurrency can overwhelm the same model API.

Save evidence that another reviewer can inspect:

  • workload envelope and burst model
  • platform constraint comparison
  • failure and cancellation test
  • cost model per successful task

This exercise aligns with the enterprise delivery, secure integration, operations and leadership work in the FDE for Professionals course. The course link describes the pathway; this local draft and its synthetic verifier do not claim that a client deployment, security approval or production result occurred.

Practice task

Classify three steps from one AI workflow. Defend a different compute choice for each, then state the measurement that could make you change it.

Continue learning

This article is part of the Enterprise AI delivery and architecture sequence. Use the neighbouring tasks when you need the prerequisite or the next application.

Reference: Kubernetes workload documentation.

PK
Pankit Kumar
Lead Instructor, NeuraPath Academy

Pankit Kumar has 10 years in Data Science & AI, building and shipping production systems in regulated pharma and clinical environments. He is a freelance trainer at Boston Institute of Analytics, AnalytixLabs and Scaler, and has taught this material to thousands of working professionals.

This article is part of our FDE for Professionals programme — 16 weeks (proposed). An accelerated advanced pathway for IT professionals ready to own enterprise AI delivery.

Explore FDE for Professionals
Counselling is free · no obligation

Not sure which programme fits?

Tell us your background and we will map it to the right entry point — including saying so when a cheaper programme is the better fit. A counsellor replies within one working day.