I have practically no experience with Redis, please have patience in case this is a stupid question, but I wasn't able to find an answer in the available docs.
Let's assume both RDB and AOF are enabled and working as intended. There is data being read, written and deleted, all as intended. Then the daemon is stopped and started again.
Is Redis going to read from RDB or AOF or somehow both? Can be loading behavior be influenced? The link above doesn't speak to that, neither the comments in redis.conf.
#How does loading of persisted data at startup time work in detail?
3 messages · Page 1 of 1 (latest)
https://redis.io/docs/latest/operate/oss_and_stack/management/config-file/
Search for appendonly the documentation above talks about both being enabled
This section also talks about both enabled.
For startup AOF will be used, replication can use the RDB files
RDB is a read only file, no process will be using it while the server is running, so it can be used while the server is running.
The self-documented redis.conf file that's shipped with every version.
How Redis writes data to disk
you're just linking to the same documents that i already referred to.
the comments about replication and the R/O nature of RDB are entirely off-topic.
For startup AOF will be used
yeah, i figure that, but there must be more to it.
when i configure redis to use RDB and no AOF, write data into it, stop the daemon and start it again, the data is there, hence i conclude that the daemon loads it from RDB on startup.
what i am looking for is detailed insights into the interaction between RDB and AOF.