circle-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[circle] caching channels subscribers


From: thomasV1
Subject: [circle] caching channels subscribers
Date: Fri, 30 Jan 2004 02:01:48 +0100 (MET)

I just had an idea:

Currently, if you are posting to a channel, circle firsts queries the dht 
for the list of subscribers, and then it sends messages to them.

It would make sense to cache the list of people that are listening to a 
channel. So, when I post to #welcome, my client would:

  - immediately send the message to all #welcome 
    subscribers that I already know (the list in my cache)
  - query the dht in order to know if my list of subscribers was correct
  - send the message to the people that were missing in my cache.
  - update my cache.

if a client receives a message that was posted to a channel to which 
he is not listening anymore, then he would simply not display the 
message, and maybe notify the sender.

It should be faster that way, but I am not sure how much.
Anyway, the cost in terms of messages sent over the network
is almost identical to the non-caching algorithm, so it cannot hurt 
to implement it.

Thomas

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail





reply via email to

[Prev in Thread] Current Thread [Next in Thread]