Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 436085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:26:30+00:00 2026-05-12T20:26:30+00:00

There is a talk here by Stefan Tilkov , where he is describing REST

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T20:26:31+00:00Added an answer on May 12, 2026 at 8:26 pm

    One of the clearest explanations of the disadvantages of session state comes directly from Roy Fielding’s dissertation where he introduces REST. (Emphasis is mine)

    We next add a constraint to the
    client-server interaction:
    communication must be stateless in
    nature, as in the
    client-stateless-server (CSS) style of
    Section 3.4.3 (Figure 5-3), such that
    each request from client to server
    must contain all of the information
    necessary to understand the request,
    and cannot take advantage of any
    stored context on the server.

    Session
    state is therefore kept entirely on
    the client.

    This constraint induces the properties of visibility, reliability,
    and scalability.

    Visibility is
    improved because a monitoring system
    does not have to look beyond a single
    request datum in order to determine
    the full nature of the request.

    Reliability is improved because it
    eases the task of recovering from
    partial failures [133].

    Scalability is
    improved because not having to store
    state between requests allows the
    server component to quickly free
    resources, and further simplifies
    implementation because the server
    doesn’t have to manage resource usage
    across requests.

    Roy does go on to say the application of this constraint is a design trade-off and there are negative impacts of this choice.

    Once you choose not to use session state in your application architecture, then you are left with maintaining things like shopping carts in one of two ways. Either the cart is maintained completely by the client application, or it is stored as Resource state. What makes something a Resource is that it is identified by a URI and can be manipulated by the standard verbs of the interface. If you do store the cart as a Resource, then as Stefan says you can send a link to the resource to a colleague. With this approach, the shopping cart can be implemented as you do any other resource.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there has been previous talk on here about screencasting tools/apps, however I
I realize there's no definitely right answer to this question, but when people talk
There has been some talk of Website performance monitoring tools and services on stackoverflow,
There exists a very good talk about C# vs. Java where H.Mössenböck compares the
I have three applications that talk to each other using sockets. They can all
In the book Fortran 95/2003 for Scientists and Engineers , there is much talk
There are some very good questions here on SO about file management and storing
We talk about java 1.6 here. Since symoblic link is not yet supported, how
There has been a lot of talk about contra-revolutionary NoSQL databases like Cassandra ,
There is a conversion process that is needed when migrating Visual Studio 2005 web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.