nosql 介紹

relational

http://www.docstoc.com/docs/2996433/Hadoop-and-HBase-vs-RDBMS

http://redmonk.com/sogrady/2009/11/03/amazon-rds-and-the-future-of-mysql/

http://www.eweek.com/c/a/Cloud-Computing/Amazon-Launches-Relational-Database-for-the-Cloud-865321/

nosql

http://oss-tw.blogspot.com/2010/04/hbase-vs-cassandra.html

http://inspire.twgg.org/c/internet/host-setting/written-discussion-nosql-database.html

http://www.javaworld.com.tw/roller/ingramchen/entry/consistency

http://zh.wikipedia.org/zh-tw/Cassandra

??

http://db.apache.org/derby/index.html

http://cloudstoragestrategy.com/cloud-database/

http://www.hellodba.net/2010/02/cassandra.html

hbase vs cassandra
http://www.roadtofailure.com/2009/10/29/hbase-vs-cassandra-nosql-battle/

從比較優劣的角度來描述雙方的優缺點,安裝、使用性、架構等等

PHP 5.3.3 Closure

心血來潮,把本來伺服器上 yum 裝的 PHP 換成 5.3.3 ,搭配 yum 安裝的 httpd 遇到一些小問題,都好解決,紀錄一下

yum install httpd-devel mysql-devel

./configure –with-apxs2=/install-path –with-mysql=/install-path

再裝就沒什麼問題了

然後就來寫一下

$curry = function($a) {
   return function($b) use ($a) {
      return $a+$b;
   }
}
$curry_add= $curry(1);
echo $curry_add(2);// result = 3
($curry(1))(2); //error

感覺學的跟 JavaScript 很像,又多了一些蠻麻煩的語法 (use),本身感覺又不像 Js 開發流程的輕便,感覺有點不太適合這樣寫..

有點怪..

Reactor pattern Non-Block-IO

最近看到的 Event Driven Pattern – Reactor Pattern

還不太懂做什麼的,這投影片似乎有介紹到~

好像跟 nio 有關,之後再整理一下思緒,

紀錄一下之前看書提到 nio 的概要,

一般網路連線都是用執行緒或行程處理每個要求,有時候要求很多時,

會因為網路或檔案鎖定的因素造成而在開很多連線時被某些資源佔住,

這時較後來的連線就算準備好也沒辦法繼續處理,而 non block 就是不佔住資源,

經過要卡住的 io 就直接跑過,如果有資源執行就執行,

沒資源就能馬上去處理下一個連線了,印象大概是這樣~

而最近的 NodeJS 跟 Ruby 好像也有基於此模式的設計,此模式細節還不太理解。

投影片 http://www.docstoc.com/docs/23999735/Scalable-network-services—Reactor-pattern—Java-non

介紹 http://www.cs.bgu.ac.il/~spl051/Personal_material/Practical_sessions/Ps_12/ps12.html

wiki http://en.wikipedia.org/wiki/Reactor_pattern

nio example http://onjava.com/pub/a/onjava/2002/09/04/nio.html?page=1