▲ | telgareith a year ago | ||||||||||||||||
Server side session state for more than authentication is way worse than "code smell." It requires a ping to a shared data source on every request. And, the same one for all of them. No sharding, No split domains... That gets expensive fast! | |||||||||||||||||
▲ | naasking a year ago | parent | next [-] | ||||||||||||||||
You just described how the whole web operates. It works just fine. | |||||||||||||||||
| |||||||||||||||||
▲ | CrimsonRain a year ago | parent | prev | next [-] | ||||||||||||||||
I add some products in phone. Then I login to desktop later for modification and order. Cart is empty. That's engineering smell. A really bad one. | |||||||||||||||||
| |||||||||||||||||
▲ | paledot a year ago | parent | prev [-] | ||||||||||||||||
Wait, you can't shard on session ID? And this is an ephemeral key-value store here, which is basically a best-case scenario from a performance standpoint. It's basically the last thing you're going to need to think about sharding, which is why session stores traditionally cohabitate(d) with web servers. No, session storage doesn't get expensive fast. It's extraordinarily cheap unless you screw up the configuration very badly indeed (Apparently PHP still defaults to writing session data to disk?!) |