Skip to main content

Available workload types

1. Service

  • Long-running processes designed to handle network traffic (HTTP, gRPC, TCP, Websockets).
  • Typically used for APIs, web apps, or microservices.
  • Can be autoscaled based on CPU, memory, or network RPS.
Example:

2. Database

  • Managed databases.
  • Persistent storage enabled.
  • Optimized for durability and stateful workloads.
Example:

3. Worker

  • Worker is a special type of container designed to run indefinitely in the background without exposing any HTTP endpoints or acting as a web server.
  • Unlike typical app containers that handle incoming requests, a worker is focused solely on executing background logic — continuously, or in response to internal events, queues, or schedules.
Example

Choosing the right workload type

Workload TypeUse Case
ServiceWeb apps, APIs, microservices
DatabaseStateful data storage
WorkerJob / Task runner

Best practices

  • Use Services for stateless traffic-handling apps.
  • Run Databases only when you need custom DB setups (prefer managed DBs if available).
  • Ensure Workers have retry logic and error handling.