dice icon indicating copy to clipboard operation
dice copied to clipboard

POC for WebSocket Integration with DiceDB

Open pratikpandey21 opened this issue 1 year ago • 11 comments

Description:

Create a Proof of Concept (POC) demonstrating the use of WebSocket support in DiceDB by developing a new example application called leaderboard-ws. This example will showcase how clients can directly connect to DiceDB via WebSocket to receive real-time updates, similar to the existing leaderboard-go example.

POC Requirements:

Leaderboard Example Using WebSocket:

  1. Develop a new example called leaderboard-ws, where the client connects directly to the DiceDB server via WebSocket.
  2. Demonstrate the use of WebSocket for real-time communication, where the client receives instant updates on changes to the leaderboard data.
  3. Concrete Example with Documentation:
  • Place the example in the examples directory.
  • Include a comprehensive README file that provides:
  • Step-by-step instructions for setting up and running the example.
  • Description of the example’s functionality and its use case.
  • Similarity in style and clarity to the leaderboard-go example to maintain consistency.

pratikpandey21 avatar Sep 12 '24 15:09 pratikpandey21

Depends on #555

pratikpandey21 avatar Sep 12 '24 15:09 pratikpandey21

@pratikpandey21 Would like to pick this up.

Saumay avatar Sep 12 '24 15:09 Saumay

@Saumay thanks for contributing, assigned.

lucifercr07 avatar Sep 12 '24 16:09 lucifercr07

@Saumay Are you still working on this?

Soham041201 avatar Sep 20 '24 01:09 Soham041201

Yes, I'll be working on this issue.

@Soham041201 , this is dependent on #555. It can't be started till #555 is merged.

Saumay avatar Sep 20 '24 02:09 Saumay

@Saumay PR for websocket integration has been merged now.

lucifercr07 avatar Sep 28 '24 13:09 lucifercr07

@lucifercr07 Awesome. Let me get started with this.

Saumay avatar Sep 28 '24 13:09 Saumay

@pratikpandey21 Correct me if I am wrong but this requires DiceDB Websocket server to support QWATCH queries(for receiving real-time updates), right?

Saumay avatar Oct 06 '24 13:10 Saumay

@Saumay - QWATCH support for websocket PR is under review right now. #1090

psrvere avatar Oct 16 '24 09:10 psrvere

Hello @Saumay,

There has been no activity on this issue for the past 5 days. It would be awesome if you keep posting updates to this issue so that we know you are actively working on it.

We are really eager to close this issue at the earliest, hence if we continue to see the inactivity, we will have to reassign the issue to someone else. We are doing this to ensure that the project maintains its momentum and others are not blocked on this work.

Just drop a comment with the current status of the work or share any issues you are facing. We can always chip in to help you out.

Thanks again.

arpitbbhayani avatar Oct 24 '24 13:10 arpitbbhayani

Hey @arpitbbhayani , this was dependent on a few issues and hence didn't look into this actively. Seems those issues are merged now.

Saumay avatar Nov 12 '24 06:11 Saumay