4 ms·
Redis is not an ephemeral database when used in Twilio's configuration. When configured with an AOF with fsync set to 'always', Redis will be as durable if not
by dkulchenko 13y ago
Redis is not an ephemeral database when used in Twilio's configuration. When configured with an AOF with fsync set to 'always', Redis will be as durable if not more durable than postgres and the like.
- VladRussian2 13y ago>Redis will be as durable if not more durable than postgres and the like guessing by your username where you may be from, you may be aware that freshness... err... durability comes in only one grade - first grade :)
- recuter 13y agoI understand how the AOF can be considered similar to a postgres WAL file but what makes you say its even more durable?
- pjscott 13y agoTo expand on that a bit: when redis is in AOF mode, all write commands are appended to a journal file. When fsync is set to 'always', this journal file is fsynced on every write. Redis has a reputation as an "ephemeral database", because it's usually used as one, but there's nothing inherently ephemeral about it. This isn't magic; it's just file I/O.