Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/puzza007/riakc_poolboy
Riak Connection Pool
https://github.com/puzza007/riakc_poolboy
erlang poolboy riak-connection-pool
Last synced: about 1 month ago
JSON representation
Riak Connection Pool
- Host: GitHub
- URL: https://github.com/puzza007/riakc_poolboy
- Owner: puzza007
- License: bsd-2-clause
- Created: 2013-10-23T12:08:37.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-19T03:08:32.000Z (almost 9 years ago)
- Last Synced: 2024-10-05T06:54:41.136Z (about 1 month ago)
- Topics: erlang, poolboy, riak-connection-pool
- Language: Erlang
- Homepage:
- Size: 1.07 MB
- Stars: 3
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Riak Protocol Buffers Client Pool
[![Build Status][travis_ci_image]][travis_ci]
About
=========Riak client connection pool using poolboy
Usage
=========```erlang
SizeArgs = [{size, 10},
{max_overflow, 20}],
WorkerArgs = [{hostname, "127.0.0.1"},
{port, 8087},
{ping_every, 50000}, %% undefined or absent to disable
{sync_connect, true}, %% useful for testing - workers must be connected to be available
{options, [{auto_reconnect, true}]}],
PoolName = badger_pool,
riakc_poolboy:start_pool(PoolName, SizeArgs, WorkerArgs),{ok, Obj} = riakc_poolboy:get(PoolName, <<"a_bucket">>, <<"a_key">>).
riakc_poolboy:stop_pool(PoolName).
```TODO
=========* Support streaming functions
* More tests[travis_ci]: https://travis-ci.org/puzza007/riakc_poolboy
[travis_ci_image]: https://travis-ci.org/puzza007/riakc_poolboy.png