Comments (6)
I got a branch somewhere where I refactored out a hasher interface for this exact purpose. When I get the cycled I can dig it up.
from folsom.
@spkrka @protocol7 I'm trying to migrate from another memcached library to Folsom and I'm also missing this feature. I need to be able to customize the call to Continuum.findClient(byte[] key)
.
For example I want to customize so that all the keys that start with some common prefix go to the same node:
prefix1-sufix1
key - goes to node 1prefix1-sufix2
key - goes to node 1prefix2-sufix3
key - goes to node 2
from folsom.
Some kind of SessionLocator
or NodeLocator
abstractization would be nice to have. Then we can provide custom implementations or extend/reuse the existing ones(e.g. KetamaSessionLocator
).
from folsom.
@azagorneanu I never got around to finishing up my branch, but I would still agree that a node locator would be a nice abstraction to have pluggable. If you're up for proposing a PR, I would be happy to take a look.
from folsom.
I agree it would be useful. I tried playing around with adding something, but without having an explicit use case in mind it is harder, so I would also prefer having a proposal to review.
from folsom.
Cool! I will try to send a PR for review. Thanks.
from folsom.
Related Issues (20)
- file descriptor leak HOT 3
- Configurable number of connections to memcached server HOT 2
- Binary client doesn't obey TTL in some cases HOT 14
- ReconnectingClient prints "Lost connection" for old nodes when another one is added - while requests go through just fine HOT 4
- Remove or shade/hide guava dependency HOT 4
- Reusable buffers as parameter for getters HOT 1
- Support for incr/decr commands HOT 1
- let's add docs how to run build and tests locally? (Docker container) HOT 1
- Add tracing HOT 2
- Feature request: per node telemetry
- Exceptions with java 11 HOT 1
- Add Micrometer metrics HOT 3
- Folsom - Spring Boot DevTools class loader HOT 3
- Release notes or CHANGELOG HOT 1
- Extending MemcacheClientBuilder to more easily allow other AbstractMultiMemcacheClient impl HOT 2
- Folsom
- Introduce OpenTelemetry metrics and tracing HOT 3
- Last 2 versions were not released HOT 1
- Client failure after responding to too many requests where value is too large HOT 2
- How can I connect a sasl memcached server via folsom HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from folsom.