Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
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?
  #2 (permalink)  
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.
  #3 (permalink)  
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.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off



All times are GMT -4. The time now is 02:55 AM.


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