Redis Lua: Store JSON as MessagePack and Retrieve MessagePack as JSON JSON is nearly universal in the web world, and Redis Lua scripting supports encoding and decoding it, which can be very useful for having advanced logic based on JSON values without having to fully normalize your database. Redis Lua scripting also has bindings to MessagePack, which is a structurally compatible format that is muc
redis2.6 + lua scripting 㧠snowflake 風㮠timestamp based id ãçæ https://github.com/twitter/snowflake twitterã®IDçæã«ä½¿ç¨ããã¦ããã¨ããåã®snowflakeã§ããããã¡ãã¯å°å ¥ã«ZooKeeperãCassandraãå¿ è¦ã¨ããäºããããè¥å¹²æ·å± ãé«ãã§ãã ããå°ãã«ã¸ã¥ã¢ã«ã«åããããæ段ã¨ãã¦ãredisã¨ã2.6以éããæ©è½è¿½å ãããLua Scriptingæ©è½ãçµã¿åããã¦ãå種ã®idçæå¦çã試ãã¦ã¿ã¾ããã â¯snowflake snowflakeã¯ãtimestampã®æ°å¤ããã¼ã¹ã¨ãã64bit idãçæããããã®ä»çµã¿ã§ãã timestampå¤ãåºã«idçæãããã¨ã§ã以ä¸ã®ã¡ãªãããå¾ããã¾ãã çæãããidãããidãçæãããæå»ã復å ãããã¨ã
1. / 30 Using ngx_lua in pixiv Harukasan a.k.a MICHII Shunsuke 2013-06-24 2. / 30 ã¯ãããã ã¤ã³ãã©é¨æå± 2å¹´ç® Nginx / Apache / MySQL / MongoDB Kyototycoon / Solr / Traffic Server / Fluentd Capistrano / Ruby on Rails / Macbook Air / Vim 2 3. / 303 ⢠about pixiv Image Cluster ⢠ngx_lua ⢠directives in nginx.conf ⢠nginx api in lua scripts ⢠ex. code from pixiv Image Cluster Agenda
Abdelkader ALLAM brain clouding blogI'm a consultant in telecom/network, developer, wanna be entrepreneur. I live in Dakar, Senegal (West Africa) and I'm trying to launch projects like telecom analytics and reporting tools, mobile banking tech, peering exchange, etc and all this with a cloud oriented approach in mind. The Basics Redis is currently one of the ultimateâs swiss army knifes for coders
人éã¨ã¦ã§ãã®æªæ¥ï¼æ§ï¼ ãã¦ã§ãã®æ´å²ã¯äººé¡ã®æ´å²ã®ç¹°ãè¿ããã¨ãã観ç¹ããè²ã åå¼·ãã¦ãã¾ãã2014å¹´ã¾ã§ã®äººéã¨ã¦ã§ãã®æªæ¥ã®æ§ããã°ã§ãã ã¨ããã¤ã¤ããããã¾ã§å¤§ãããã¨ã¯ãã¦ããªãã luaã¨ããé«éã«åä½ããçµã¿è¾¼ã¿ç³»ã®ã¹ã¯ãªããè¨èªã§éãã§ã¿ããã£ãã®ã¨ãããã ã£ãmod_luaã§éãã§ã¿ãã°ãããªã¨æã£ãã ãã§ãããã§ãå®éã«mod_luaãã³ã³ãã¤ã«ãã¦éãã§ã¿ããã³ã³ãã¤ã«ãªãã·ã§ã³ã¯ä»¥ä¸ã ./configure --prefix=/usr/local/apache2.4 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --enable-modules=all --enable-mods-shared=all --enable-mpms-shared='prefork worker event' -
Nginxã¯é常ã«å¼·åãªhttpdã§ãããç¬èªã®ã¢ã¸ã¥ã¼ã«ãå®è£ ãããã¨ããã¨ããã¾ãé常ã«æ·å± ãé«ãå°è±¡ã§ãã è¿½è¨ ãã®è¨äºãããåã« http://openresty.org/#DynamicRoutingBasedOnRedis ã§ã»ã¨ãã©åãå 容ã®ã¨ã³ããªãæ¸ããã¦ãã¾ããããã¡ããåç §ãã ãã ã¢ã¸ã¥ã¼ã«ã®éçºã¯ããããã ã¾ãéçºç¨ã®ããã¥ã¡ã³ãã¯ã»ã¨ãã©ããã¾ãããå¿ ç¶ æ¢åã®ã¢ã¸ã¥ã¼ã«ããææ¬ã¨ãã¾ãããã³ã¡ã³ããå°ãªãã®ã§ã½ã¼ã¹ã ããé ¼ãã§ãã {ãã¡ã¤ã«,ãããã¯ã¼ã¯} I/O ãä¼´ãå¦çã§ã¯ãNginxã®ãã³ããããã³ã°/ã¤ãã³ãããªãã³ã®ã¢ã¼ããã¯ãã£ã«ã®ã£ã¨ã£ã¦ã³ã¼ã«ããã¯ãé§ä½¿ããCã§å®è£ ããå¿ è¦ããããLLã§è²ã£ããã¨ãè³ã§ã¯å¤ªåæã¡ã§ãã¾ããã§ãã lua-nginx-module ã代ããã«ãªããã ãªãããã®Nginxã¢ã¸ã¥ã¼ã«ãéçºããªããã°ãªããªã
apacheã®2.4ç³»ãã Luaã§apacheã®ããã¯ãå¶å¾¡ã§ãã mod_luaã¢ã¸ã¥ã¼ã«ãå ¥ãã¨ãããã¿ãè¦ãããã®ã§ãsvnã®trunkç(2.3.*) ãå¼ã£å¼µã£ã¦è©¦ãã¦ã¿ã¾ããã (å ã mod_wombatã¨ããååã§éçºããã¦ãã¢ã¸ã¥ã¼ã«ã2.4ç³»ããã¯mod_luaã¨ãã¦ãªãªã¼ã¹ãããã£ã¦çµç·¯ã½ããããã¥ã¡ã³ãã¯ãã¡ã) ç¾ç¶ã®mod_luaã§ãµãã¼ããã¦ãApacheã®ããã¯ã¯ä¸è¨ã®éãã«ãªãã¾ãã ap_hook_translate_name ap_hook_map_to_storage ap_hook_header_parser ap_hook_access_checker ap_hook_check_user_id ap_hook_auth_checker ap_hook_type_checker ap_hook_fixups ap_hook_insert_fil
lighttpd-1.4.15 + FastCGI ãªç°å¢ã§ãHTTP ãªã¯ã¨ã¹ããããä¸ã®ä»»æã®ã¬ã³ã¼ããåç §ãã¦ããã®å 容ã«ãã£ã¦ç°å¢å¤æ°ãè¨å®ãã¦ãããããã¨ããç¶æ³ã http://blog.tmty.jp/archives/54761462.html mod_magnet ã¯åãã¦ä½¿ãããã§ãããåºæ¥ãããããªãããªããã¨æã£ã¦ãã£ã¦ã¿ããã©åºæ¥ãªãã£ããã¨ãã話ã ã¾ããmod_magnet ã¨ããã®ã¯ Lua ã¨ããè¨èªã lighttpd ã«çµã¿è¾¼ãã§ãªã¯ã¨ã¹ããã³ããªã³ã°ãåºæ¥ãããã«ããã¢ã¸ã¥ã¼ã«ã§ãã1.4.12 以éã«ã¯æ¨æºã§ä»ãã¦ãã¿ããã§ãã ããã¥ã¡ã³ãã¯ãã¡ã Docs ModMagnet - Lighttpd - lighty labs lighttpd.conf $HTTP["url"] =~ "printenv\.cgi$" { magnet.attr
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}