Skip to content

tdx/riakpool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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

About

erlang riak client pool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 100.0%