I&#39;m currently working on implementing distributed events via XMPP PubSub (XEP-0060, XEP-0248), and I have a couple of design choices to make.<br><br>First, the access model for publishing items.  I&#39;m leaning towards using whitelist, because it limits what JIDs have access while being easy to implement.  What I&#39;m wondering about here is whether it makes sense to reuse the &quot;buddy&quot; configuration elements in jabber.conf to add JIDs to the whitelist.  The alternative is to have a very similar configuration option for affiliations, and the associated structure to hold that information.<br>
<br>The primary downside to the latter option is simply that it complicates the aji_client structure for what amounts to the same kind of information.<br><br>I&#39;m not sure I&#39;ve thought my cunning plan all the way through here, so flames/trolls/comments/alternatives are highly welcome.<br>
<br><br>The second thing that I need input on is with respect to the actual items being published.  For instance, for device states one option is to use PIDF (RFC3863) with extensions.  But that seems a little heavy, and may perhaps not be entirely applicable.<br>
<br>I&#39;d prefer to use some kind of standard representation if one exists, but I don&#39;t want to put any square pegs in round holes as it were.  So here, too, all comments are appreciated.<br><br>Thanks in advance.<br>