Re: the meaning of stateless

Mark Baker <[email protected]> Sun, 5 May 2013 18:52:49 -0400
Newsgroups gmane.comp.web.services.rest
Message-ID <CALcoZioxZWd2dPswSb66uWfVOtmfmYajsy+XhTt5=BV+StSKaw@mail.gmail.com>
[reposting as I initially sent it from the wrong address]

On 2013-05-04 3:08 AM, "Mike Schinkel" <[email protected]> wrote:
>
> On May 3, 2013, at 10:54 AM, Mark Baker <[email protected]> wrote:
>>
>> But using a server-side shopping cart typically *does* violate that
>> constraint... not while you're shopping and adding/removing stuff
>> to/from the cart, but when you checkout by sending a message which
>> means "Purchase what's in that cart", when the intended meaning is
>> "Purchase size 9 Nike Air Max for $199".
>
>
>> Forgive me, still trying to improve my evolving understanding.
>>
>> From comments in [1] Roy says the following:
>>
>>> Don’t confuse application state (the state of the user’s application of computing to a given task) with resource state (the state of the world as exposed by a given service). They are not the same thing.
>>
>>
>> Isn't the server-side shopping cart not then "resource state?"

Thanks for asking that question, Mike. It's why I've found that
there's not as much enlightenment as you'd think in looking at the
problem that way.

Yes, the shopping cart is resource state, but it's also
session/application state in the context of that final purchase
message.

When you think about it, *any* state can be given a URI, but doing so
doesn't un-make it session state if its being used that way.


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/rest-discuss/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/rest-discuss/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/