Chat application using Redis & Web-sockets

Поделиться
HTML-код
  • Опубликовано: 10 окт 2024

Комментарии • 27

  • @mukulsharma3384
    @mukulsharma3384 3 месяца назад

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

  • @Juanj0se22
    @Juanj0se22 10 месяцев назад

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

  • @sid31ful
    @sid31ful Год назад +1

    Great job, appreciate your efforts :)

  • @veerendrashukla
    @veerendrashukla 3 месяца назад

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

  • @biswajitsarkar9775
    @biswajitsarkar9775 2 месяца назад

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

    • @anubhav_shrivastava
      @anubhav_shrivastava  2 месяца назад

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

  • @veerendrashukla
    @veerendrashukla 3 месяца назад

    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  3 месяца назад

      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.

  • @harshwardhanshetty4683
    @harshwardhanshetty4683 Год назад

    thanks for the video

  • @ManishSharma-kf5zt
    @ManishSharma-kf5zt 8 месяцев назад

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

    • @anubhav_shrivastava
      @anubhav_shrivastava  8 месяцев назад

      Thank you !
      we cannot use kafka here. check out; Redis pub-sub vs Kafka? What to use for a chat application?
      ruclips.net/video/73Utd7nDYDs/видео.html

  • @akankshasrivastava2287
    @akankshasrivastava2287 Год назад

    👍👍

  • @hkkabir2024
    @hkkabir2024 10 месяцев назад

    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  10 месяцев назад

      can you checkout this video which does not use redis : ruclips.net/video/sj9kJdFAVDY/видео.htmlsi=PP10OHYDtdT8BRPM

  • @hkkabir2024
    @hkkabir2024 8 месяцев назад

    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  7 месяцев назад

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

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

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

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