Reputation: 1686
I'm tasked with scaling a system for which I need to do a high volume of inserts into the Couchbase server. I'm using Couchbase Server 2.5 by the way, and Couchbase Java Client 1.4.4
I expect to receive around 100K messages from a message queue, and I'm pulling them off and then persisting these messages into Couchbase as fast as possible. I intend to introduce concurrency by leveraging a concurrency framework like Akka. I intend to spawn up new actors for every message and persisting, so at any given point in time it's theoretically possible I'll have > 100K actors live in the system all concurrently trying to persist the message via the Couchbase client.
A few questions:
Thank you!
Upvotes: 0
Views: 1756
Reputation: 2481
First of all, you should really switch to the new Java client - 2.1.2 at the time of this writing. It's faster, has fewer dependencies, and makes it much easier to reason about concurrency.
Upvotes: 2