Kian Karas
2018-10-03 12:21:17 UTC
Hi
The documentation (https://redis.io/topics/transactions) describes how
transactions (MULTI/EXEC) are handled in case of server crash: the
transaction is applied fully or not at all. It also states that "A Redis
script is transactional by definition".
1) Does this mean that Redis script "transactions" are written to
persistent storage as transactions (e.g. with a begin/end marker) and a
partial script execution (e.g. due to power loss) will be detected and
cleaned up during server start?
2) Can partial transactions only be present in AOF files or in RDB too?
I'm working on a product that can loose power at any moment (we haven't
used scripts until now). Hence, I need to be sure that power loss during
script execution will never cause partial modifications.
Regards
Kian
The documentation (https://redis.io/topics/transactions) describes how
transactions (MULTI/EXEC) are handled in case of server crash: the
transaction is applied fully or not at all. It also states that "A Redis
script is transactional by definition".
1) Does this mean that Redis script "transactions" are written to
persistent storage as transactions (e.g. with a begin/end marker) and a
partial script execution (e.g. due to power loss) will be detected and
cleaned up during server start?
2) Can partial transactions only be present in AOF files or in RDB too?
I'm working on a product that can loose power at any moment (we haven't
used scripts until now). Hence, I need to be sure that power loss during
script execution will never cause partial modifications.
Regards
Kian
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.