wiki/content/20201126100331-ephemeral.md

41 lines
622 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:04:36 +00:00
date: 20201126
2024-05-06 20:40:05 +00:00
id: 411125af-adb2-4f21-b3bb-99ffdf74a447
title: ephemeral
---
# Origin
Greek ephemeros "lasting only a day".
# Definition
The opposite of persistant.
# Examples
## RAM
- RAM is ephemeral whereas hard disk storage is persistant.
## Data structures
Data structures are ephemeral because properties can be mutated and
there's no way to get back the original object
``` javascript
const dinner = {
main: 'turkey',
side: 'potatoes'
}
dinner.side = 'potatoes'
console.log(dinner) // { main: 'turkey', side: 'potatoes' }
```
## Cloud computing
- AWS Lambda
- Google Cloud Functions