Skip to content

Use RIAK Client in Multithreaded application #317

@meetme2meat

Description

@meetme2meat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions