(Really) simple Erlang Riak client process pool based on riak-erlang-client and poolboy.
- Erlang (>= R15B01)
- rebar
make all
[
{pool, [
{size, 10},
{max_overflow, 20}
]},
{riakc, [
{address, "127.0.0.1"},
{port, 8087},
{options, []} % riakc_pb_socket options
]}
]
application:start(riakc_pool)
riakcp:exec(Function, Args)
, whereFunction
isriakc_pb_socket
module function name andArgs
is a list of its parameters excludingPid
.