I once worked for a Cambridge startup called Sayagle where you would Yagle for SayaCash (don't ask). I started after the website was built by a cheap offshore team. It was built with JSF and we soon found that no one thought about multithreading because they only ever tested it with a single user. Needless to say, when more than 10 users were active on the site, they would start to experience problems, like seeing ea…
>> they would start to experience problems, like seeing eachothers data and stuff. Wait, what? I'm going to need some explanation or story time about how this happened.
Dumb website only lets one user in at a time
31–40 of 104 posts
Re: Dumb website only lets one user in at a time
#32I once worked for a Cambridge startup called Sayagle where you would Yagle for SayaCash (don't ask). I started after the website was built by a cheap offshore team. It was built with JSF and we soon found that no one thought about multithreading because they only ever tested it with a single user. Needless to say, when more than 10 users were active on the site, they would start to experience problems, like seeing ea…
>> they would start to experience problems, like seeing eachothers data and stuff. Wait, what? I'm going to need some explanation or story time about how this happened.
It was a huge mess. At some point we made a video that would explain how the site was to be used. You can find it here: https://www.youtube.com/@sayagle.
Every single person in every video was employed by this company. The tea place in the first video was owned by the founder. :)
Re: Dumb website only lets one user in at a time
#33The queue here seems to work poorly. Looked at the site and I was 162. Looked away and back for literally 2 seconds, I was 164. alt tab and back again, I was 176. Again and I was 188/188. Now I'm 140. What?
Re: Dumb website only lets one user in at a time
#34Re: Dumb website only lets one user in at a time
#35Re: Dumb website only lets one user in at a time
#36About 15 years ago, I knew an online store that was closed on Sundays.
Re: Dumb website only lets one user in at a time
#37Re: Dumb website only lets one user in at a time
#38Earlier quoted context omitted.
>> they would start to experience problems, like seeing eachothers data and stuff. Wait, what? I'm going to need some explanation or story time about how this happened.
It's not that uncommon in some languages where you have a long running monolith (.NET, Java, etc) instead of an instance of something that spins up per request (Node, PHP, etc). If someone does something silly like setting the session handler to be scoped to the monolith app rather than having a scope of a single request you end up with users seeing one another's data. It's dangerously easy to do in some frameworks.
It’s sufficient to simply use the “static” keyword or a singleton service that should be scoped to the session.
The sad thing is that the default is the happy path, you have to go out of your way to break the session scoping by “being too clever”.
Re: Dumb website only lets one user in at a time
#39Earlier quoted context omitted.
>> they would start to experience problems, like seeing eachothers data and stuff. Wait, what? I'm going to need some explanation or story time about how this happened.
It's not that uncommon in some languages where you have a long running monolith (.NET, Java, etc) instead of an instance of something that spins up per request (Node, PHP, etc). If someone does something silly like setting the session handler to be scoped to the monolith app rather than having a scope of a single request you end up with users seeing one another's data. It's dangerously easy to do in some frameworks.
Re: Dumb website only lets one user in at a time
#40I hate it.
There is a special URL that will kill your running transaction. All of the engineers know it and have it bookmarked, but it's undocumented.