O'Reilly logo

Mobile Intelligence by Bala Srinivasan, Ling Tan, Jianhua Ma, Agustinus Borgy Waluyo, Laurence T. Yang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4.4 CLIENT MOBILITY

Cugola et al. were among the first to support mobility in distributed publish/subscribe systems [10]. They introduce the “movein” and “moveout” operations that offer clients the ability to disconnect from and reconnect to the system. However, these standard distributed publish/subscribe algorithms may not perform well when the clients in the system experience frequent mobility [5, 20]. Various algorithms to address client mobility are presented below. We distinguish between subscriber and publisher mobility as the solutions to deal with each are different.

4.4.1 Subscriber Mobility

We first describe the subscriber mobility algorithm proposed by Cugola et al., which we refer to as the STANDARD algorithm [10]. Then we present a set of optimizations to this algorithm.

4.4.1.1 Standard Algorithm

Figure 4.4 illustrates a timeline of a subscriber going into a period of disconnection and reconnecting to a different broker. During period t1, the client is connected to Broker 1 and can receive events. At the end of period t1, the client disconnects from Broker 1 and reconnects after period t3 to Broker 2. Period t2 is used by an optimization described in Section 4.4.1.2. Period t4 is required to complete the reconnection phase, which involves retrieving and playing back events that the client missed while disconnected. Finally, during period t5, the client receives newly published events as in period t1.

The objective of the algorithm is to reconfigure the event multicast ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required