Re:Common REST Mistakes
by derefr on Friday February 12, 2010 @09:03PM
(#1122377)
By "sessions are irrelevant", he basically means "don't recreate circuit switching on top of your packet-switched TCP/IP connection." Each HTTP request should carry with it all the state required to do what it needs to do (including state stored in cookies et all); it shouldn't be dependant on what has come before or what will come after it.
[ Parent
| on HN ]
Right this is a huge item when it comes to scalability. I argue this with developers all the time. The problem is that session is like Crack, it starts with just a little. It is so easy to get caught up in storing off some info in a property bag or List for later use, but it binds you to so much hardware and software infrastructure, by using just one little pattern.
I am old enough to remember the first time the session pattern was used in a web framework, I remember cringing then just as I do now when I see it used.