I wanted others to explain to me, which approach is better: using a session or designing it sessionless. We are starting development of a new web application and have not yet decided on what path to follow.
Session-less design IMO is more preferable:
Pros:
Cons:
Are there any topics we need to mind before taking the final decision?
Today's apps can quickly grow extremely big (just have a look at all those "tiny, simple" tools like pastebin, jsfiddle etc !). And at some point a 16 core high end machine is not enough (some people might say "you have to recode your app in order to save cpu power bla-bla", but the http-connection-limit per server is also a problem). So, if you are planning to build a public application that might become more popular than expected, starting "sessionless" is the way to go! To be honest, this will only affect people who write really big things.
The killer pros for sessions are: much less traffic to the mySQL database and much easier coding. But you will have to rewrite your entire system when your app goes big.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With