-
Notifications
You must be signed in to change notification settings - Fork 1
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
Aerospike Connection Pooling #37
Comments
Noting some tie-ins |
Further digging shows potential existing mechanism for handling Aerospike connection pooling.
|
Current shortest distance solution: rather than instantiating the |
Add support for sharing Aerospike connections.
Let's also review the Aerospike connection options passthru. |
From tooling in 33832ba, we observe with 200 |
v0.16.1, while not ideal, is sufficient to mark this work as complete. Testing tools are included in 0d95dfc. Will spin off usage and handling of |
At Viant, we're leveraging this library on both the client and server.
There are some ideas that do not belong exclusively to this repository, mainly the Aerospike connection management system.
Complexities
1. Automated Configuration
The configuration and Aerospike connections are determined by server configurations.
Each
mly
client is instantiated separately.Any connection pooling needs to be provided.
Solution 1 - Default global Aerospike connection pooler
Choices:
Concerns:
singleflight
:singleflight
may provide a logically coherent form of load shedding. Note thatsingleflight
uses first-in-as-truth (which makes sense given howsingleflight
returns a value), but in this case, since we are effectively modifying a state, it should be last-in-as-state. We can check if there is a lock-free form of concurrency control provided by Aerospike, that may be leveraged for this.The text was updated successfully, but these errors were encountered: