Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome or Safari browser. Firefox 10 (to be released soon) will also handle it.

Otorigi の自動再接続のはなし

@tsucchi

自己紹介

はじめに

背景

DB の自動再接続とは

Otogiri の自動再接続について

DB の自動再接続時の主な問題

トランザクション

$db->txn_begin();
$db->insert('people', { ... });
... #ここで接続が切れたとする
$db->insert('item', { ... }); #この insert が再接続で有効になったら困る
$db->txn_commit();

prefork 型のサーバへの対応

失敗時の対応について

テストについて

実装について

結論

おしまい

Use a spacebar or arrow keys to navigate