p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional XMPP Programming with JavaScript and jQuery (http://p2p.wrox.com/forumdisplay.php?f=542)
-   -   What about NoSQL over xmpp? (http://p2p.wrox.com/showthread.php?t=79730)

flossy June 12th, 2010 07:07 AM

What about NoSQL over xmpp?
 
Due to my thoughts about persistence in xmpp applications I got an idea:
Why not get access to the database directly over xmpp?

For example we could do something like this:

Get documents

Code:

<iq type="get" from="user@domain.tld" to="db@domain.tld" id="query1">
  <nosql type="get">
    <doc id="3f2458e368e3687a68797321ea687135b"/>
  <nosql/>
</iq>

with a result like this
Code:

<iq type="result" from="db@domain.tld" to="user@domain.tld" id="query1">
  <nosql type="result">
    <doc id="3f2458e368e3687a68797321ea687135b">
      [DOCUMENT CONTENT]
    </doc>
  </nosql>
</iq>

Get view

Code:

<iq type="get" from="user@domain.tld" to="db@domain.tld" id="query4">
  <nosql type="get">
    <view id="tasks" limit="5"/>
  </nosql>
</iq>

Code:

<iq type="result" from="db@domain.tld" to="user@domain.tld" id="query4">
  <nosql type="result">
    <view>
      <row id="365435435354">
        <doc id="9873543568">[DOCUMENT CONTENT]</doc>
        </row>
      <row id="68798351687" >
        <doc id="877565654364">[DOCUMENT CONTENT]</doc>
      </row>
    </view>
  </nosql>
</iq>

What do you think about ti? Is it bull****? Or are there better ways to access a database over xmpp?

ka_el June 13th, 2010 07:49 PM

You might be interested by the XEP-0043: Jabber Database Access.

metajack June 28th, 2010 02:22 PM

This is a very neat idea. One thing it buys you is streaming results and asynchronous notifications, which aren't something you can easily get over HTTP.

XML serialization is going to hurt a bit though.


All times are GMT -4. The time now is 01:19 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.