Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
erlang riak client pool
Erlang
Branch: connection_pro…
Pull request Compare This branch is 1 commit ahead, 12 commits behind dweldon:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
Makefile
README.markdown
rebar
rebar.config

README.markdown

Overview

riakpool is an application for maintaining a dynamic pool of protocol buffer client connections to a riak database. It ensures that a given connection can only be in use by one external process at a time. By default, riakpool will connect to port 8087 on 127.0.0.1. Fill riak_pb_ip and riak_pb_port in application config for different connection point.

Installation

$ git clone git@github.com:iac/riakpool.git
$ cd riakpool
$ make

Interface

The following example gives an overview of the riakpool interface. Please see the complete documentation by running make doc.

1> application:start(riakpool).
ok
2> riakpool:execute(fun(C) -> riakc_pb_socket:ping(C) end).
{ok,pong}
3> riakpool:count().
1
Something went wrong with that request. Please try again.