2013-07-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¨ãã½ã¯ã©ãã¹ãè¨ã£ãã¨ãè¨ããªãã¨ãã
ååã®è¨äº: More Transactional Redis (1) - Redis is not a transactional storage - æã¨åæ°ã¨ç¼¶ãã¼ã«Lua Scriptingã§atomicãªå¦çãå®ç¾ã§ããããï¼ã£ã¦ã¨ãã§ååã®è¨äºã¯çµãã£ã¦ãã¾ãããä»åã¯ãLua Scriptingã試ãéã«è¸ãã¨ããã§ãããstepâ¦
ãªãã¹ï¼ãªã©å«æ空ï¼ã¿ããªå æ°ã«ãã¦ã£ãï¼çªç¶ã ãã©ããªã©ãRedisã«ä¿åãã¦ããã¼ã¿ã«ä»¥ä¸ã®ãããªæä½ããã¦ã¿ãããªã£ã¡ã¾ã£ããã ï¼ããæ¬ä¼¼ã³ã¼ããªï¼ 1: score = ZSCORE {key} {member} 2: if ( ! score ) { 3: score = defaultScore 4: } 5: ZADDâ¦
ããã©ã«ãã®è¨å® (zset-max-ziplist-entries, zset-max-ziplist-value) ã§ã¯ 該å½ããSorted Setã®ã¨ã³ããªæ°ã128åä»¥ä¸ è©²å½ããSorted Setã«å«ã¾ããmember (not score) ã®ãã¼ã¿é·ãå ¨ã¦64byteä»¥ä¸ ã¨ãã2ã¤ã®æ¡ä»¶ãæç«ãã¦ããå ´åãSorted Setã®è¡¨â¦
ä¸é¨ï¼ï¼ï¼ã«éè¦ããã£ããããªã®ã§ãåæ²ãå®ã¯ã¾ã å ¨é¨èªãã§ããããç©ç層ããã©ã³ã¹ãã¼ã層ã®è©±ãè±ãã¦ã¢ããªã±ã¼ã·ã§ã³å±¤ã¨ãããHTTPã«æ¥ãæãåã主ã«èå³ãæ¹ãããã®ã¯TCPå¨ãã®è©±ãªã®ã§ããã®è¾ºã ãã¾ã¨ãããèªãã æ¬ã®è¦ç´ï¼ã¨ããã®ã¯ããâ¦
訳ãããªããGoogleå¢å°ãï¼ããããããããã ã£ãã訳ãããã¨ã«ä½ã®æå³ããªãã®ã ãã©ãhttp://www.wordstream.com/articles/retired-google-projectsããããã£ã¦ãGoogleã¯ãã¤ãµã¼ãã¹ãçµäºãããåããããããä¿¡ç¨ã§ããªãããã¤ãã®ãµã¼ãã¹ã使â¦