Blockland Forums > General Discussion
RTB not working?
Kalphiter:
Couldn't you just cache successful authentication for an hour or something?
This issue happened before and I also suggested doing that. It would cause less requests to be sent which may or may not fix the problem, but it would at least keep the service usable by many people.
--- Quote from: Kalphiter on October 20, 2011, 03:33:38 PM ---Seriously, hold a cache for an hour, problem solved.
--- End quote ---
Ephialtes:
Well for one that's totally useless with regard to user behavior because people aren't signing in and out constantly. The typical user journey (and this applies to 99% of users) consists of connecting, authenticating, playing for a while then quitting. The cache hit ratio would be like 1%. This isn't an issue stemming from a handful of users disconnecting and reconnecting repeatedly.
Secondly, authentication is one of those things you shouldn't cache, and certainly not for an hour. I'd rather the service wasn't running than have it using stale authentication results which could be used in a variety of ways to cause trouble.
Kalphiter:
--- Quote from: Ephialtes on April 30, 2013, 03:52:01 PM ---Well for one that's totally useless with regard to user behavior because people aren't signing in and out constantly. The typical user journey (and this applies to 99% of users) consists of connecting, authenticating, playing for a while then quitting. The cache hit ratio would be like 1%. This isn't an issue stemming from a handful of users disconnecting and reconnecting repeatedly.
Secondly, authentication is one of those things you shouldn't cache, and certainly not for an hour. I'd rather the service wasn't running than have it using stale authentication results which could be used in a variety of ways to cause trouble.
--- End quote ---
There's a pretty low chance that a key is no longer valid by the time it's re-authenticated. That's a rare event and having a person with an invalid key for a little while is probably not a big deal. 24 hours is a better caching period.
What trouble could be caused? I was thinking that authentication is cached only for chat.
Zeblote:
--- Quote from: Kalphiter on April 30, 2013, 03:56:19 PM ---
--- End quote ---
The auth works with name and ip
My ip tends to change
No thanks
Kalphiter:
--- Quote from: Zeblote on April 30, 2013, 04:02:24 PM ---The auth works with name and ip
My ip tends to change
No thanks
--- End quote ---
Thanks for disregarding a potential solution because it only benefits you 99% of the time that it does for everyone else.