タグ

ブックマーク / fallabs.com (6)

  • Kyoto Tycoon: a handy cache/storage server

    Overview Kyoto Tycoon is a lightweight database server with auto expiration mechanism, which is useful to handle cache data and persistent data of various applications. Kyoto Tycoon is also a package of network interface to the DBM called Kyoto Cabinet. Though the DBM has high performance and high concurrency, you might bother in case that multiple processes share the same database, or remote proc

    nemurin48
    nemurin48 2010/10/05
  • 開発メモ: Kyoto Tycoonベータ版リリースすた

    ここのところ必死こいて作り込んでいたKyoto Tycoonだが、主要機能を実装しきって文書もそこそこ書けてきたので、ベータリリースということにした。プロジェクトページもちゃんと作ってある。 公式には英語の文書しか作らない方針なのだが、それだと国内ではなかなか使ってもらえないので、この場でチュートリアルを書いてみる。 Kyoto Tycoonとは プロセス組み込み軽量データベースライブラリであるKyoto Cabinetをネットワーク越しに利用できるようにするためのツールキットである。KCのデータベースを内部に持ったサーバプログラムと、それに接続してデータベースを操作するためのクライアントライブラリからなる。また、コマンドラインからサーバにアクセスするためのユーティリティもついてくるので、簡単に使い始められる。 製品コンセプトは、「永続的キャッシュサーバ」もしくは「memcachedの永続

    nemurin48
    nemurin48 2010/10/05
  • Technical Memo

    The new class "GrassDB" was added to Kyoto Cabinet 1.2.2. It provides associative array while it saves you much memory by organizing records in pages of B+ tree. In ideal case, the memory usage will be reduced to no more than one twelfth! Assumption B tree and its variant such as B+ tree tend to decline the frequency of I/O operations by organizing records whose keys are nearby in the given order.

    nemurin48
    nemurin48 2010/09/23
  • 開発メモ

    「Kyoto Tycoonの設計 その四」改め、50行でWebサーバを書く方法を解説する。前回実装した「多重I/Oマルチスレッド汎用TCPサーバ」の上にHTTPの処理を行う層をつけて、「多重I/Oマルチスレッド汎用HTTPサーバ」を司るクラスを実装してみたので、それを使ってちょちょいとやる。 URLクラス HTTPと言えばURLが使えないと始まらない。URLは単なる文字列として扱ってもよいのだが、様々なシーンで分解や加工が必要になり、その処理はなにげに複雑で面倒なので、予めクラスとして導出しておいた方がよいだろう。 class URL { public: // 文字列のURLを解析して内部構造を作る void set_expression(const std::string& expr); // スキーム要素を設定する void set_scheme(const std::string&

    nemurin48
    nemurin48 2010/09/23
  • FAL Labs

    こんな疑問、悩みに答えます。 記事では「SESを半年で辞めるか悩んでいるエンジニア」に向けて、以下の内容・目的で記事を書いていきます。 SESを半年で辞めることは可能なのかどうか。 でも実は、退職可否を気にするより、も […]

    FAL Labs
    nemurin48
    nemurin48 2010/09/23
  • Kyoto Cabinet: a straightforward implementation of DBM

    Overview Kyoto Cabinet is a library of routines for managing a database. The database is a simple data file containing records, each is a pair of a key and a value. Every key and value is serial bytes with variable length. Both binary data and character string can be used as a key and a value. Each key must be unique within a database. There is neither concept of data tables nor data types. Record

    nemurin48
    nemurin48 2010/09/23
  • 1