Tag Archives: php

Facebook 的 Memcache 架構…

在 NSDI ’13 上 Facebook 的工程師有講到 Facebook 內的 Memcache 的架構:「Scaling Memcache at Facebook」,有影片可以看,也有 PDF 投影片可以下載。 其實 2013 年這次的 conference 提到的架構以前就有提過了… 雖然一時間找不到之前提到架構的投影片,但還是可以配合著以前提到各種架構的文章與投影片看出 Facebook 怎麼利用 Memcache 架構 cache layer: 2007 年的「Largest production memcached install?」 2008 年的「Scaling Out」。 2008 年的「Caching Performance Lessons From … Continue reading

Posted in Computer, Database, Murmuring, Network, Programming, Software, WWW | Tagged , , , | Leave a comment

Percona 將辦 Webinar 說明資料庫讀寫分離時的處理…

MySQL replication 通常是資料庫擴充的第一步,因為架設很簡單。但一般 MySQL replication 的讀寫必須分開 (寫入只能在 master)。 在「Webinar on Read/Write Splitting with PHP」看到 Percona 下星期會辦 Webinar,說明在 MySQL replication 架構下要如何處理讀寫分離。 看起來包括對 replication lag 時的處理 (slave 因為各種原因,導致跟不上 master),有興趣的人可以去報名聽聽看… 雖然是講 PHP,但這個問題在其他的語言也會遇到,聽觀念也應該有幫助。

Posted in Computer, Database, MySQL, Network, Programming, Software | Tagged , , , , , , , , , | Leave a comment

最近找人… (然後,KKBOX 正在徵才)

看到布長輩提到: 剛開始用 104 的系統找履歷時,都用一些很爛的關鍵字搜尋: php mysql ccna 最近找起來比較有心得了,用這些關鍵字: github & bitbucket slideshare & speakerdeck 各 conference 的名字 還有一些相關領域的關鍵字拿來找也還蠻不錯的… 另外最後宣傳一下,敝公司找人,包括 client 開發與 server 開發都有缺。(我主要是 server 的部份,client 的部份我會轉給我同事) 有興趣可以用 gslin at kkbox.com 聯絡… (不過話說回來,我下星期去日本,cc 一份給 hr at kkbox.com 會比較好)

Posted in Computer, Murmuring, Network | Tagged , , , , , , , , , , , , , | 2 Comments

可能是未來的 PSR-3:LoggerInterface

Jordi Boggiano 在 PHP-FIG 上提案整合 log interface,參考「One logger to rule them all」這篇,提案本身可以參考「Logger Interface」這裡。 如果通過的話,這很有可能是 PSR-3… 所以 PHP-FIG 接下來的想法是建立 interface 嗎?hmmm…

Posted in Computer, Murmuring, Programming, Software | Tagged , , , , , , , | Leave a comment

PHP 5.5 的改善…

因為 PHP 5.5.0 Alpha1 在十一月放出來,國外論壇上也陸陸續續都開始在討論 PHP 5.5 的文章,像是這篇列出了 PHP 5.5 的新功能:「What to Expect From PHP 5.5」。 目前看起來,PHP 5.5 導入 Generators 與 yield,可以讓 iterator 的行為寫得更自然,以前要自己得用 class 包起來模擬… 不過,可以直接寫 “Hello World”[1] 得到 “e” 究竟會讓 PHP community 產生出來的 code 變成什麼樣子呢…

Posted in Computer, Murmuring, Programming, Software | Tagged , , , , , | Leave a comment

PHP 的 PSR-{0,1,2} 中文版翻譯…

查資料的時候發現有人已經翻譯好 PSR-{0,1,2}: PSR-0 Autoloading Standard PSR-1 Basic Coding Standard PSR-2 Coding Style Guide 想要快速了解 PSR 在定義什麼,可以直接看中文版,如果有覺得不懂的地方再去翻英文版的原文敘述。

Posted in Computer, Murmuring, Programming, Software | Tagged , , , , , , , | Leave a comment

Facebook HipHop 的效率

一直都知道 HipHop 是拿 compile time 換原始的 PHP 效能,但一直都沒有去找資料,不知道成本有多高,直到剛剛在「Alternative PHP Runtimes」這邊看到… 大概有個概念… :o

Posted in Computer, Murmuring, Programming, Software | Tagged , , , , | Leave a comment

Zend Framework 1.12 系列…

本來以為 Zend Framework 1 只會出到 1.11 (以前有說過嗎?),結果剛剛發現 1.12.0rc3,這真是太驚人了 XDDD 這樣看起來 Zend Framework 1.11 與 PHP 5.4 之間的問題就有解了…

Posted in Computer, Murmuring, Network, Programming, Software, WWW | Tagged , , | Leave a comment

關於可維護的 PHP 專案:PHP-FIG 的 PSR-0、PSR-1、PSR-2

一個組織裡要導入 coding standatd & coding style 時是功夫最少的時候,除非有特殊理由,不然我一向都是建議: 不要自己發明 coding standard 與 coding style,如果社群的規範合理,就照著社群的規範走。 社群中比較完整的包括: Zend Framework Coding Standard for PHP。 PHP-FIG (PHP Framework Interop Group) 提出的: PSR-0 (Autoloading Standard) PSR-1 (Basic Coding Standard) PSR-2 (Coding Style Guide) 第一份文件主要是講 Framework 架構 … Continue reading

Posted in Computer, Murmuring, Programming, Software | Tagged , , , , , , , | 1 Comment

PHP 康莊大道

前陣子看到的「PHP The Right Way.」網站。網站的開頭就先提到這並不是說明 PHP 怎麼寫才是對的,而是告訴你許多前人經驗所得到的建議:(血淚史 XD) Disclaimer There is no canonical way to use PHP. However, this website is a humble display of best practices, available options, and good information. It aims to introduce new PHP developers and to … Continue reading

Posted in Computer, Murmuring, Programming | Tagged , , | Leave a comment