I have a messaging queue which is reading the messages and doing DB operations like select and upsert , FYI - i execute query on code
example :
var queryResult = await _cluster.QueryAsync(queryStatementInsert,
new QueryOptions()
.Parameter(“$id”, couchbaseSpaStatusModel.Id))
.ConfigureAwait(false);
Before it was
var result = await this.Bucket.GetDocumentAsync(couchbaseDocumentKey).
Since the server is not upgraded i couldn’t use Bucket.GetDocumentAsync because the new upgrade has Scopes and collections which is not there in the server, so i hade this challenge of using query to do DB operations and its making latency and sometimes “WaitAsync” exceptions and stalling the whole process
please provide me with a better approach to get messages from a queue and do DB operations with the upgraded package and old server which has no scopes and collections.
Note: i receive 5+ messages per seconds in the queue, so need to read and process it as fast as i receive
Thanks in advance.