Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 12th, 2010, 07:07 AM
Authorized User
Points: 71, Level: 1
Points: 71, Level: 1 Points: 71, Level: 1 Points: 71, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
 
Old June 13th, 2010, 07:49 PM
Registered User
 
Join Date: Jun 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You might be interested by the XEP-0043: Jabber Database Access.
 
Old June 28th, 2010, 02:22 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

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.








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