Nov. 6th, 2012

Suppose we need to load data from Redis, change it, and save it back. Looks easy. Here's the pseudocode.

data = redis.get(id);
do_stuff(data);
redis.set(id, data);


Now, we notice that several threads (processes, execution contexts, whatever) may access the same data, and overwrite it! So, let's use transactions.

Read more... )

Profile

dallaylaen

November 2012

S M T W T F S
    123
45 678910
11121314151617
18192021222324
252627282930 

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 20th, 2017 08:29 pm
Powered by Dreamwidth Studios