Re: the meaning of stateless
Mike Kelly <[email protected]> Fri, 3 May 2013 09:10:06 +0100
| Newsgroups | gmane.comp.web.services.rest |
|---|---|
| Message-ID | <CANqiZJaYki_Ln1ESpBbcmAs650Aoit8EifOJCi=3BWChdxRpig@mail.gmail.com> |
On Fri, May 3, 2013 at 8:39 AM, Eric J. Bowman <[email protected]> wrote: > Mike Kelly wrote: >> >> (It has nothing to do with server persisted shopping carts.) >> >> As long as you don't create an interaction described by the above you >> aren't violating the stateless constraint. >> > > Right, and exactly the problem! Examples tailored to one constraint > often lead to solutions which miss the point of the style, ergo my > advice vis-a-vis the cross-style lunar lander example. Server-side > shopping carts may be stateless, but can it really be argued that all > those extra round trips better meet the goals of the style? No. But it's not significantly worse in that regard, either. Shopping carts are better off on the server side, so a client side shopping cart is a horrible thing to use as an example because it immediately conflicts with how people need to build stuff in practice. Just pick another example that's a bit more realistic, like a multi-step wizard or something. Cheers, M