Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2203

How to make only one consumer for redis message listener in spring boot 3 and spring data redis?

$
0
0

I am using spring boot 3 with spring data redis with functionality like this example example . My solution is deployed in kubernetes cluster in multi pods configuration. I am producing a message from 1 pod and consuming on another pod. (I mean I want to have this behaviour 1 producer will produce message and only 1 will consume the message and delete it) However, I want only one pod to consume the message but right now I can see all pods are consuming same message at same time. How do I restrict this behaviour?

I want only one pod to consume the message but right now I can see all pods are consuming same message at same time. How do I restrict this behaviour?


Viewing all articles
Browse latest Browse all 2203

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>