mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-23 03:56:23 +00:00
39 lines
607 B
Markdown
39 lines
607 B
Markdown
---
|
|
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
|