RMapCacheReactive::computeIfAbsent that accepts Mono<V>, Flux<V>, or CompletableFuture<V> as the second parameter.
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java, redis
- Domain
- backend, databases, distributed-systems
Research direction
Start at the RMapCacheReactive::computeIfAbsent entry point and inspect its existing overloads and reactive behavior. Add support for mapping functions returning Mono, Flux, or CompletableFuture, and verify that the new calls prevent duplicate computation during high load.
Written by the indexing model from the issue text.
Description
Hello. I want to invoke a method similar to RMapCacheReactive::computeIfAbsent, where the second argument is a mapping function returning Mono, Flux, or CompletableFuture, to prevent cache stampede on a single instance under high load. Please add this method.
Currently, I'm writing like this:
cache.get(key)
.switchIfEmpty(reactiveRepository.findById(key)
.flatMap(value -> cache.computeIfAbsent(key, k -> value))
);
I would like to:
cache.computeIfAbsent(key, k-> reactiveRepository.findById(k));
- Dominant language
- Java
- Stars
- 24.4k
- Forks
- 5.5k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 20
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from redisson/redisson
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
IndexOutOfBoundsException in ContainsDecoder.decode from lock watchdog renewal (mutable args list aliased)Possibly taken @ronitgupta138 claimed this 45 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 2 days
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
Maintainers usually reply within 2 days
-
skipResult() batch decoding can consume subsequent command replies and corrupt response alignmentMay be free again @Exar-lab claimed this 9 days ago, and no pull request is open. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
redisson/redisson#7446 · 2 comments ·
Maintainers usually reply within 2 days
-
RLock after a master switch: READONLY is retried, every retry runs the lock script on the new master, and tryLock() still throws the first READONLYPossibly taken @wozhenbang2004 claimed this 36 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 2 days
All issues in redisson/redisson
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
avaje/avaje-metrics#142 ·
-
As a developer using gamma, I would like a click-to-copy button for the client credentials, so it is easier to copy themPossibly taken @Portals claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Lincoln-cn/JAiRouter#1473 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
exercism/java-analyzer#379 ·