Chat application using Redis & Web-sockets

Поділитися
Вставка
  • Опубліковано 1 лис 2024

КОМЕНТАРІ • 27

  • @Juanj0se22
    @Juanj0se22 11 місяців тому

    thanks Anubhav for taking the time to share this, have a great day!

  • @mukulsharma3384
    @mukulsharma3384 4 місяці тому

    Amazing content Anubhav!
    Please make more videos like these with spring boot backend!!

  • @sid31ful
    @sid31ful Рік тому +1

    Great job, appreciate your efforts :)

  • @veerendrashukla
    @veerendrashukla 4 місяці тому

    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?

    • @anubhav_shrivastava
      @anubhav_shrivastava  4 місяці тому

      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.

  • @veerendrashukla
    @veerendrashukla 4 місяці тому

    Nice Anubhav! Recently, it seems you stopped producing system design video. Produce more system design video if time permits you. Thanks.

  • @biswajitsarkar9775
    @biswajitsarkar9775 3 місяці тому

    Hello Anubhav Excellent content.
    One doubt ?
    If Reciver is Offline then how to handle this.

    • @anubhav_shrivastava
      @anubhav_shrivastava  3 місяці тому

      Then you need to store in a db and then when receiver logs in, then you provide the data from there.

  • @ManishSharma-kf5zt
    @ManishSharma-kf5zt 9 місяців тому

    Hi Anubhav,
    can you please create a details video of this?
    And if possible, can you also using with Kafka.

    • @anubhav_shrivastava
      @anubhav_shrivastava  9 місяців тому

      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

  • @hash7915
    @hash7915 Рік тому +1

    don't worry about less views make a video daily we will help you😍

    • @anubhav_shrivastava
      @anubhav_shrivastava  Рік тому +1

      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 :)

  • @hkkabir2024
    @hkkabir2024 11 місяців тому

    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

    • @anubhav_shrivastava
      @anubhav_shrivastava  11 місяців тому

      can you checkout this video which does not use redis : ua-cam.com/video/sj9kJdFAVDY/v-deo.htmlsi=PP10OHYDtdT8BRPM

  • @harshwardhanshetty4683
    @harshwardhanshetty4683 Рік тому

    thanks for the video

  • @hkkabir2024
    @hkkabir2024 9 місяців тому

    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

    • @anubhav_shrivastava
      @anubhav_shrivastava  8 місяців тому

      Yes you are right. I have not covered the persistence scenario here. And you need to handle it separately.

  • @shilpapatil8146
    @shilpapatil8146 Рік тому

    Nice Video Sir..Can we do this code reactive

    • @anubhav_shrivastava
      @anubhav_shrivastava  Рік тому

      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
      @shilpa5472 Рік тому

      ​@@anubhav_shrivastava Sir I meant that can we convert the spring boot backend code reactive..the code were we publish and subscribe

    • @anubhav_shrivastava
      @anubhav_shrivastava  Рік тому

      ​ @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.

  • @akankshasrivastava2287
    @akankshasrivastava2287 Рік тому

    👍👍

  • @satyajit2007
    @satyajit2007 Рік тому

    In this design , if there are 1 million users chatting , you are creating 1 million channels ( topics) ???

    • @anubhav_shrivastava
      @anubhav_shrivastava  Рік тому

      Yes, you can horizontally scale the number of channels in redis :
      redis.io/docs/manual/pubsub/
      They are not expensive like kafka too.