There is a talk here by Stefan Tilkov, where he is describing REST architecture at its core. I haven't watched all of it, but in the portion where he talks about the 5 Principles of REST (slides 12-19) he mentions maintaining state through the resource (i.e. -- the URI). His example is a shopping cart. Usually the state of your shopping cart is maintained in the session, but he makes the comment (paraphrasing here) that this is an incorrect interface implementation, since you can't "send" your session to a colleague, but you could send the resource state, which would then have all of the items in your cart. I found the concept to be interesting, and I was wondering if anyone has any additional information, resources, links, videos, etc., that actually discuss architecture implementations for this sort of thing (preferably in Java). Thanks!
EDIT:
Sorry, I'm going to make a brief edit here -- I'm not talking about wanting information on REST implementations per se, but wanting disadvantages/advantages of actually using resource state extensively over session/db state.