{
  "id": 21963111,
  "title": "What a cold start actually costs on DigitalOcean Functions",
  "url": "https://urgent.news/2026/11/26/what-a-cold-start-actually-costs-on-digitalocean-functions",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-26T11:00:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/alexgeorgiev17/how-slow-a-digitalocean-function-is-before-anyone-has-called-it-278e"
  },
  "original_language": "en",
  "account": "DigitalOcean Functions incur significant costs during cold starts, which this report uncovers by measuring the platform's performance on newly initialized containers versus warm containers. A cold start involves DigitalOcean finding or starting a container before running the function code, which takes between 1 to 3 milliseconds, while a warm start, where the container has been idle, can take as little as 42 milliseconds. The platform reports waitTime, which represents the time before code execution begins, highlighting the difference between a first call and subsequent calls. Initial tests using plain requests.post() calls revealed misleading results due to separate TLS handshakes on every invocation, hiding the true cost of cold starts. Reusing connections with requests.Session() reduced warm call times to 140-150ms, revealing the substantial impact of connection setup. A burst test of ten simultaneous requests further demonstrated the cost, with each request waiting 656-984ms before execution, mirroring a cold start. The study emphasizes the need for developers to understand connection costs when timing serverless functions, especially when over HTTPS.",
  "summary": "RevSofia, the car-meet planner I built for Sofia, runs its planning endpoint as a DigitalOcean Function. I'd never measured what the first call to a function costs compared with the ones after it, or whether ten requests arriving at once are any worse than one, so this week I did. I built a throwaway namespace with two trivial actions, one in Node.js 22 and one in Python 3.12, each just returning…",
  "key_points": [
    "Cold starts incur significant costs in DigitalOcean Functions",
    "WaitTime reveals difference between first and subsequent calls",
    "Connection setup adds 140-150ms to warm call times"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}