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 ?
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
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 ?
How do you prevent out of sequence delivery?
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
Thank you 😊