WhatsApp System Design - Step by Step

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

КОМЕНТАРІ • 5

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

    As I reach to Session Manager - it is not clear. What is session manager ? Session Manager is a very generic and vague term and how sessionId works in distributed env unless it is a sticky session ? what is pid in lookup table ? If we are in distributed env with more than one messaging server then how does this work as we will have multiple session managers ? Also the two important things : concurrency and protocol are not discussed. It seems like that lookup table needs to be cached inside each messaging server. For e.g. if A is connected to messaging server 1 and wants to send message to B which is connected to server 2 then how does it work unless lookup table is cached inside each messaging server ? And another big thing is - how do you keep all the cached table in sync ?

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

    How do you prevent out of sequence delivery?

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

      That's a good question. There are two ways: (1) a message queue or buffer is maintained in the client side that implements a FIFO strategy (2) this involved use of message correlation id but it's a bit more involved

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

    Thank you 😊