TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why is scaling a web application hard?

2 pointsby drubioover 14 years ago

1 comment

klsover 14 years ago
<i>However, there are two particular design choices that increase complexity when attempting to horizontally scale each tier: Decoupling and sessions.</i><p>Session is by far the deal with the devil that comes back to haunt you later in life. Introducing a stageful concept into a stateless medium was destin to have ramifications. I remember the first implementation of the concept of session in a web framework. I remember a developer that I worked with going on and on about it and I remember thinking right there that is a very dangerous pattern.<p>At our shop we do three things. One we only store the most critical information in session (if at all), we have an audit script on our source control system that generates a warning to the leads any time new access to session is developed and finally we always ensure that session can be recreated from a stateless medium. Therefore session acts like an in memory cache for us.