Hi,

On Oct 13, 2008, at 10:08 AM, Eric Cestari wrote:

Hi,

Working on disco and result set management, I am wondering why there is no cache management tools in XMPP. Why not implement Etags, If-none-match and If-modified-since XMPP versions ?

for rosters see: http://xmpp.org/extensions/inbox/roster-versioning.html

Best regards,



Stanzas can get very large in some disco cases, and traffic could be greatly reduced, at a low cost of implementation.

Query :
----------
<iq type='get'
   from='[EMAIL PROTECTED]/orchard'
   to='shakespeare.lit'
   id='items1'>
 <query xmlns='http://jabber.org/protocol/disco#items'>
        <if-modified-since>1223888705</if-modified-since>
 </query>
</iq>

Response :
----------------
<iq type='get'
   from='[EMAIL PROTECTED]/orchard'
   to='shakespeare.lit'
   id='items1'>
 <query xmlns='http://jabber.org/protocol/disco#items'>
        <not-modified/>
 </query>
</iq>

While writing the previous example, stpeter's famously large roster also came to my mind. Implementing such a system could greatly reduce the load when the user connect on both the server and the client.

I did a quick googling on XMPP cache managment. Nothing related came up. Was there any previous talks about it ?

Eric Cestari



--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: [EMAIL PROTECTED]
Use XMPP!


Reply via email to