sir can i do it with postman without using redis , i tried to connect WebSocket using postman but failed . would like to tell me how can i connect simply using postman similar application without Redis
if i am not using database here then redis memory can lost. i think using springboot+websocket+redis+mongodb can be a best solution. can you plz le me know i am right? if possible make a video with it
Hi Shilpa, I did not get your question. Do you mean: can we code in asynchronous way in front end? If so, yes that is exactly been done here. When you write ws.onmessage on your code, you register a call back & your code will not be blocked for the message. You can clarify here OR you can ping me on Linkedin and I will definitely try to help you.
@shilpa5472 Ohh I see. Yes you can use reactive too. Checkout github.com/lettuce-io/lettuce-core/wiki/Reactive-API. There is some help present here too: www.baeldung.com/java-redis-lettuce. Let me know if it helps.
thanks Anubhav for taking the time to share this, have a great day!
Amazing content Anubhav!
Please make more videos like these with spring boot backend!!
Great job, appreciate your efforts :)
Thank you! Glad that you liked it
Hey Anubhav, what is your thought on storing historical messages for a user in DB to build full fledged chat app with Redis pub sub?
yes , that data could be stored in any of the databases like cassandra or dynamo.
We would need to publish data to those topics and persist the same.
Nice Anubhav! Recently, it seems you stopped producing system design video. Produce more system design video if time permits you. Thanks.
Thanks Virendra
Have started posting now again.
Hello Anubhav Excellent content.
One doubt ?
If Reciver is Offline then how to handle this.
Then you need to store in a db and then when receiver logs in, then you provide the data from there.
Hi Anubhav,
can you please create a details video of this?
And if possible, can you also using with Kafka.
Thank you !
we cannot use kafka here. check out; Redis pub-sub vs Kafka? What to use for a chat application?
ua-cam.com/video/73Utd7nDYDs/v-deo.html
don't worry about less views make a video daily we will help you😍
thanks. Daily would be hard for me as I have 5 working days in office.
Right now I am trying 1 video per week. Keep supporting :)
sir can i do it with postman without using redis , i tried to connect WebSocket using postman but failed . would like to tell me how can i connect simply using postman similar application without Redis
can you checkout this video which does not use redis : ua-cam.com/video/sj9kJdFAVDY/v-deo.htmlsi=PP10OHYDtdT8BRPM
thanks for the video
if i am not using database here then redis memory can lost. i think using springboot+websocket+redis+mongodb can be a best solution. can you plz le me know i am right? if possible make a video with it
Yes you are right. I have not covered the persistence scenario here. And you need to handle it separately.
Nice Video Sir..Can we do this code reactive
Hi Shilpa,
I did not get your question. Do you mean: can we code in asynchronous way in front end?
If so, yes that is exactly been done here. When you write ws.onmessage on your code, you register a call back & your code will not be blocked for the message.
You can clarify here OR you can ping me on Linkedin and I will definitely try to help you.
@@anubhav_shrivastava Sir I meant that can we convert the spring boot backend code reactive..the code were we publish and subscribe
@shilpa5472 Ohh I see. Yes you can use reactive too. Checkout github.com/lettuce-io/lettuce-core/wiki/Reactive-API. There is some help present here too: www.baeldung.com/java-redis-lettuce. Let me know if it helps.
👍👍
In this design , if there are 1 million users chatting , you are creating 1 million channels ( topics) ???
Yes, you can horizontally scale the number of channels in redis :
redis.io/docs/manual/pubsub/
They are not expensive like kafka too.