dice icon indicating copy to clipboard operation
dice copied to clipboard

Pub-Sub Feature in Dice db

Open rohan-naik07 opened this issue 11 months ago • 9 comments

Hi @arpitbbhayani @JyotinderSingh, I basically know the approach which is used in redis to implement pub sub feature. I wanted to contribute to dice db by implementing pub sub as a feature.

Please reply to this conversation so that we can discuss further.

My LinkedIn profile : https://www.linkedin.com/in/rohan-naik07/

rohan-naik07 avatar Jan 05 '25 06:01 rohan-naik07

Glad to see you interested in this feature @rohan-naik07! Would be great if you can kick off this discussion on our discord channel, we can talk about the design and implementation details there.

https://discord.gg/6r8uXWtXh7

JyotinderSingh avatar Jan 05 '25 07:01 JyotinderSingh

Sure! Will post the design and analysis on the channel soon so that we can begin the discussion

rohan-naik07 avatar Jan 05 '25 08:01 rohan-naik07

@rohan-naik07 I am interested in collaborating on this

VipinRaiP avatar Jan 08 '25 03:01 VipinRaiP

@rohan-naik07 are you working on this ? i am interested too. thanks

raghavbabbar avatar Feb 02 '25 14:02 raghavbabbar

Ok... I have kicked off the discussion on discord server. You can share your insights. Will start working on prototype soon. @JyotinderSingh can we create a seperate channel for discussion regarding this?

rohan-naik07 avatar Feb 03 '25 16:02 rohan-naik07

Hi @arpitbbhayani @JyotinderSingh , I have prepared the first draft of the document describing the pub sub feature design and architecture. I have also started to implement a prototype and soon will post further updates once you are free to go through this. Please share your insights accordingly. Attaching the link of the doc below. https://docs.google.com/document/d/1VsWePFuCsDoJ2PZIBdVSMKWtsZ4u5i2ndmdO6qJ0K78/edit?usp=sharing

rohan-naik07 avatar Mar 12 '25 18:03 rohan-naik07

Hi @rohan-naik07 I would also like to contribute. Here is my LinkedIn profile - https://www.linkedin.com/in/harshit-singhal-975456171/

harshitalpha avatar Mar 17 '25 10:03 harshitalpha

@rohan-naik07 Will this be supported in cultured and multi threaded setups? Currently redis has limitations with clustered setups.

atmnksd avatar Mar 20 '25 15:03 atmnksd

Here we arrive at two scenarios which we can consider Multithreading - DiceDB is multithreaded server which make use of threads called shards to concurrently serve client requests. Similarly read write of messages in the pub/sub feature are multisharded using special commands made for sharded pub sub requests,similar to redis. Cluster setup : the cluster management feature is listed in dicedb's roadmap (See docs). I am also looking into some insights of how Apache Kafka manages clusters which can help in our clustered pub/sub approach.

rohan-naik07 avatar Mar 20 '25 16:03 rohan-naik07