Session Management - Architecting State Data episode artwork

EPISODE · Feb 12, 2020 · 19 MIN

Session Management - Architecting State Data

from Develpreneur: Become a Better Developer and Entrepreneur · host Rob Broadhead

Most modern business applications have some state or context.  This model can be easy to implement in a stand-alone application.  However, multi-user applications like web sites can be a challenge when you consider session management.  While security is often a hot topic, tracking data correctly can be an issue to itself.  We need to build our architecture to handle the ways we pass around such data. Session Management Is More Than Global Values One of the "rookie mistakes" of session management is the use of it as a sort of global bucket.  It is not uncommon to see all manner of objects and values shoved into the session.  While this approach makes it easier to pass values, it is not secure and wastes resources.  Therefore, it is important to think through what values should be stored.  As with manner, other design decisions, when in doubt, leave it out (of the session).  There should be a strong reason for each item you store at the user or application level. Now Vs. Later Comparison While we just said it makes sense to keep the session small, there is also caching to take into account.  There are valid reasons to store values in the session rather than make multiple calls to retrieve them.  Thus, this is not an area of architecture that is always cut and dry.  There are application-specific requirements that will come into play.  Keep in mind the trade-off of memory to cache data and network traffic to load it. Design, Not Implementation We can always kick decisions like this down the road.  The implementation team can make choices related to caching data and session management.  However, that can lead to ad-hoc storage and other challenging to maintain situations.  It is worth the time and effort to architect your session situation.  Future developers and maintainers will thank you,

NOW PLAYING

Session Management - Architecting State Data

0:00 19:43

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

Frequently Asked Questions

How long is this episode of Develpreneur: Become a Better Developer and Entrepreneur?

This episode is 19 minutes long.

When was this Develpreneur: Become a Better Developer and Entrepreneur episode published?

This episode was published on February 12, 2020.

What is this episode about?

Most modern business applications have some state or context.  This model can be easy to implement in a stand-alone application.  However, multi-user applications like web sites can be a challenge when you consider session management.  While...

Can I download this Develpreneur: Become a Better Developer and Entrepreneur episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!