---
title: "Ephemerality"
url: https://www.daytona.com/definitions/e/ephemerality
---

# Ephemerality

Ephemerality is the property of an object, system or process that exists only for a short time and is discarded after use.

In computing, an ephemeral resource is created for one purpose and deleted when that purpose ends. Ephemeral environments, containers and virtual machines all follow this pattern. Nothing inside them is meant to last, unless it is saved to storage outside. The opposite is a long-lived resource that is kept and changed over time.

Ephemerality removes the problems of state that builds up. Each new instance starts from the same known image, so it behaves the same way every time. Configuration drift has no time to appear. A failed instance is replaced, not repaired. Cleanup is also simple, because deleting the instance removes everything it created.

Ephemeral environments appear across software development. Continuous integration jobs run in fresh containers or machines for each build. Preview environments start for one pull request and stop when it closes. Sandboxes for AI agents and untrusted code are often ephemeral, so any damage disappears with the sandbox. Data that must survive goes to volumes or object storage outside the environment.
