3 ms·
Why should it ever be written to permanent storage?
by cma 14y ago
Why should it ever be written to permanent storage?
- loeg 14y agoBecause RAM is orders of magnitude more expensive than spinning rust, or even SSDs.
- cma 14y agoThese are messages that last 20 seconds, there is no time that they will be on disk and not cached to ram anyway. (edit: well I guess it is 20 seconds after it is received)
- loeg 14y agoThe messages are stored for two days. Backups for 90… And: writing to (spinning) disk takes on the order of milliseconds. 20 seconds of RAM storage time (versus milliseconds) means several orders of magnitude larger working set size, which may well be larger than you can afford…