高并發Key/Value 內存數據庫服務器:KVStore
KVStore: 175行Haskell語言編寫的高并發Key/Value 內存數據庫服務器,去掉空行,只有區區150行。特點是高并發,超級快!客戶端用Python編寫。
It's highly concurrent and pretty fast.
To build and run:
cabal sandbox init
cabal install --only-dependencies
cabal run KVServer +RTS -N<number of cores>
cabal run KVClient +RTS -N<number of cores>
or, with dependencies installed:
ghc -O2 -threaded Client.hs
ghc -O2 -threaded Server.hs
./Server +RTS -N<number of cores>
./Client +RTS -N<number of cores>
To run the Python client:
python3 Client.py
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!