Urgent.News

What's breaking now, across thousands of outlets.

Tech

What is a serverless cold start, really?

A cold start is the extra time a serverless platform spends creating an execution environment before your code can handle a request: finding compute, starting an isolated sandbox, booting the language runtime, loading your code and running its top-level initialisation. A warm request reuses an environment that already exists, which is why the first request after idle can take 2–3 seconds and the…

Serverless functions experience a delay when they first receive a request, known as a cold start. This occurs because the platform must allocate resources, create an isolated execution environment, initiate the language runtime, load the deployment artifact, and run module-level initialisation before executing the handler. In contrast, a warm invocation reuses an existing environment, resulting in faster processing times.

The cold start process is influenced by the size of the code bundle, with larger bundles taking longer to load. Developers can reduce cold starts by minimizing code, lazy initialisation, using lighter runtimes, and keeping instances warm with provisioned concurrency or minimum instances. Although cold starts are not bugs, they are the cost of creating compute resources on demand, and developers can choose to optimize them based on their specific use cases.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Model Vendor Routing Through 2 Admission Gates (When Tenants Pin or Exclude)

Consider a proposed page for a gaming service: a tenant's scoped key has been revoked, but its previously admitted model requests still hold budget reservations.

  • Revoked tenant keys still allow model admissions through routing constraint.
  • Pinning preferred for single provider permission, exclusion for multiple.
  • Revocation doesn't revoke spend ceiling or key, handled separately.

What actually happens to your Windows license when you replace the motherboard

If you've ever swapped a motherboard and then seen a "Windows isn't activated" message on your next boot, you know how annoying that is. Nothing is wrong with the install.

  • Replacing motherboard triggers Windows activation issue
  • Retail license can be reactivated on new hardware
  • OEM license may not transfer to new motherboard

OpenStatus status pages need an access model before publication

OpenStatus status pages need an access model before publication OpenStatus monitors endpoints and publishes status pages, incidents, reports, and maintenance windows.

  • OpenStatus requires clear access model for status pages before publication.
  • Four access modes: public, password-protected, email-domain-restricted, IP-restricted.
  • API keys with write permissions need server-side storage, limited operations, and regular rotation.

More from Thursday 5 November →