Search the web
Sign In
New User? Sign Up
rest-discuss · REST Discussion Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Click here for the latest updates on Groups Message search

Messages

  Messages Help
Advanced
Re: Amazon Simple Queue Service "REST"fulinterface?   Topic List   < Prev Topic  |  Next Topic >
Reply  | 
Re: [rest-discuss] Amazon Simple Queue Service "REST"fulinterface?

On Tue, 2004-11-09 at 15:33, Jan Algermissen wrote:

> So, we should develop a counter example to give people a chance to
> compare. I think REST WS desparately need live examples. That's how
> people learn.

Yeah ... you're right.

Attached is a simple python script [depending on twisted] implementing
most of a /queue web service. Specifically:

GET / [overall docs]
GET /queue
POST /queue => /queue/{name}
GET /queue/{name}
DELETE /queue/{name}
POST /queue/{name} => /queue/{name}/{key} = {item}
GET /queue/{name}/{key}
DELETE /queue/{name}/{key}

...are supported. The response is mostly HTML, with html:form's for the
POSTS and an escaped version of a "queue" XML format ... if I spent more
than a couple of hours on it I'd probably go with RDF.

./queue.py to run [assuming python + twisted]; binds to port 8000.

Notably absent are:
* auth [HTTP or otherwise]
* queue configuration
* the weird timeout/locking thing...
* persistance, stability, &c...


> I'll start doing that this week. If anybody's interested to join in I;d be
> happy. Let me know.

Sorry ... this has [obviously] been bothering me today. :)

...jsled

--
http://asynchronous.org/ - `a=jsled; b=asynchronous.org; echo ${a}@${b}`


Wed Nov 10, 2004 2:44 am

joshsled
Offline Offline
Send Email Send Email

Attachment:
queue.py
Type:
text/x-python
 | 
Expand Messages Author Sort by Date

... So, we should develop a counter example to give people a chance to compare. I think REST WS desparately need live examples. That's how people learn. I'll...
Jan Algermissen
algermissen1971
Offline Send Email
Nov 9, 2004
7:31 pm

... When I saw the list of operations after chasing the link from my blogroll, I thought like this: 1. Managing Queues CreateQueue POST /queues ...
Vincent D Murphy
johnfoobar1
Offline Send Email
Nov 9, 2004
8:16 pm

... Probably better: Read GET /queues/queue_key/an_item Where an_item is a sentinel value. This is distinct from GET /queues/queue_key which...
Vincent D Murphy
johnfoobar1
Offline Send Email
Nov 9, 2004
8:16 pm

... Yeah ... you're right. Attached is a simple python script [depending on twisted] implementing most of a /queue web service. Specifically: GET / [overall...
Josh Sled
joshsled
Offline Send Email
Nov 10, 2004
2:43 am

... And because the yahoo groups web interface drops attachments... http://asynchronous.org/blog/archives/2004/11/09/a_fitful_rest.html ...jsled -- ...
Josh Sled
joshsled
Offline Send Email
Nov 10, 2004
3:09 am

... That's what I was thinking too. For this specific example - a queue - I was thinking a simple servlet with filesystem storage for messages would be super...
S. Mike Dierken
mdierken
Offline Send Email
Nov 10, 2004
4:46 am

... I think this is the only tricky one. I imagine a client would like to 'guarantee' that only one consumer processes a message. I was thinking of conditional...
S. Mike Dierken
mdierken
Offline Send Email
Nov 10, 2004
4:46 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help