[Standards] pubsub item count

dave at cridland.net dave at cridland.net
Tue May 10 09:39:17 UTC 2011


Why not a subscription type of count, to go along with items and nodes? 
Effectively there's also a hidden one of subscriptions, too, in a sense.

------- Original message -------
> From: Justin Karneges <justin-keyword-jabber.093179 at affinix.com>
> To: standards at xmpp.org
> Sent: 10.5.'11,  4:54
>
> Hi,
>
> We have a need to efficiently monitor the count of items in a pubsub 
> node.
> After some brief discussion with Nathan Fritz, we decided that a simple 
> and
> clean solution is to have pubsub events include an optional count value. 
> This
> could be done with a SHIM header:
>
>   <header name="TotalItems">427</header>
>
> Of course, this means that even if you only care about the count, you 
> still
> end up receiving item payloads.  But this seemed preferable to the 
> alternative
> of offering dedicated "count" nodes for every normal node.
>
> If there are no objections, how would I go about trying to formalize such 
> a
> simple thing?
>
> Justin





More information about the Standards mailing list