Skip to content

Integration Support with Spring Webflux ? #500

Answered by ben-manes
ShanmugamC asked this question in Q&A
Discussion options

You must be logged in to vote

Reactor provided this as an add-on, see CacheMono. The JavaDoc shows an example using Caffeine.

This design tries to generalize to a Map<K, V> style cache, which leads to cache stampedes. That has become problematic and they may phase it out (reactor/reactor-addons#237). The proposed replacement follows the strategy that we recommend too,

When using a caching solution... that has a future-based async API, we can recommend to just wrap the futures using Mono#toFuture() and Mono.fromFuture(f).

It might be nice if someone wrote an adapter between our async interfaces using CompletableFuture to a set using Mono for convenience of avoiding this wrap/unwrap logic in every use-case. That might…

Replies: 3 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ben-manes
Comment options

You must be logged in to vote
11 replies
@jaesuk-kim0808
Comment options

@ben-manes
Comment options

@jaesuk-kim0808
Comment options

@ben-manes
Comment options

@jaesuk-kim0808
Comment options

Comment options

You must be logged in to vote
3 replies
@sachinsinghsindhu
Comment options

@shaikezr
Comment options

@ben-manes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants