[DATAREDIS-712] Reuse of reactive types for multiple subscriptions Created: 05/Oct/17 Updated: 14/Jun/18 Resolved: 14/Jun/18
|Project:||Spring Data Redis|
|Affects Version/s:||2.0 GA (Kay)|
|Reporter:||Mark Paluch||Assignee:||Mark Paluch|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Currently, command execution allows only a single subscription from a Flux/Mono:
Template API calls assemble publishers that pre-allocate connections and operate on that particular connection. Once the first subscription terminates, the collection is returned and no longer usable for subsequent subscriptions.
Publishers without a subscription stay with the allocated connection which causes a resource leak because the associated connection is never released.
On a different note: Connections are allocated through a synchronous API which may incur blocking.
|Comment by Mark Paluch [ 14/Jun/18 ]|
Was solved with