Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use RIAK Client in Multithreaded application #317

Open
meetme2meat opened this issue Jul 9, 2018 · 0 comments
Open

Use RIAK Client in Multithreaded application #317

meetme2meat opened this issue Jul 9, 2018 · 0 comments

Comments

@meetme2meat
Copy link

meetme2meat commented Jul 9, 2018

Maybe this is not the right place for a Q&A section but lack of attention to the SO post and unable to figure out any other alternative or resource has brought me over here.

I'm integrating RIAK on our application which heavily uses thread to get the job done. But I'm not sure how to define a pool of connections so that no a connection is shared between threads.

Although I found the Pooling library internally used by RIAK called innertube but no clue on how to use it. And also use of ||= in the client code for fetching bucket detail has kept me sceptical thus far.

My best bet right now is to use ConnectionPool library for managing RIAK client pools but since ConnectionPool recommended on use Client that can auto reconnect. I'm not entirely sure if that is the right thing to do here?

Other details

  • Riak-client (2.3.2)
  • JRuby 9.1.15.0
  • Riak version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant