scratchattach icon indicating copy to clipboard operation
scratchattach copied to clipboard

Ghost requests are back.

Open TheCommCraft opened this issue 10 months ago • 4 comments

#130 is back I think

TheCommCraft avatar Apr 25 '24 07:04 TheCommCraft

When does this bug occur?

phrzip avatar May 05 '24 09:05 phrzip

Whenever the program starts anew I'd say

TheCommCraft avatar May 05 '24 09:05 TheCommCraft

hmm, weird I'm gonna take a look at the code

phrzip avatar May 05 '24 09:05 phrzip

i had this too

crzylemon avatar May 12 '24 02:05 crzylemon

I believe this has nothing to do with scratchattach but is something with the scratch servers itself:

See https://en.scratch-wiki.info/wiki/Cloud_Data

In October of 2016, the cloud infrastructure started to fail occasionally. As a result, many multiplayer-focused projects did not work correctly. This has been attributed to the ever-increasing number of active users who are using cloud variables, with some projects sending up to 30 requests per cloud variable per second. This effectively "spammed" the cloud server with a load that couldn't be handled by the current infrastructure and shut it down.

As a temporary fix, cloud variables have switched to using a different polling method, which is more reliable but significantly slower. Furthermore, the polling interval time was increased, to prevent spam. This new method works but may cause cloud variables to "rubber band" and reset to a previous value after it has been changed, as well as making many multiplayer projects less "real-time" or completely breaking them in general.

I believe this "rubber-band" effect is causing these "ghost requests"

blazgocompany avatar Sep 04 '24 14:09 blazgocompany

Yes, but this can be mitigated by ignoring initial cloud variable values

blazgocompany @.***> schrieb am Mi., 4. Sept. 2024, 16:15:

I believe this has nothing to do with scratchattach but is something with the scratch servers itself:

See https://en.scratch-wiki.info/wiki/Cloud_Data

In October of 2016, the cloud infrastructure started to fail occasionally. As a result, many multiplayer-focused projects did not work correctly. This has been attributed to the ever-increasing number of active users who are using cloud variables, with some projects sending up to 30 requests per cloud variable per second. This effectively "spammed" the cloud server with a load that couldn't be handled by the current infrastructure and shut it down.

As a temporary fix, cloud variables have switched to using a different polling method, which is more reliable but significantly slower. Furthermore, the polling interval time was increased, to prevent spam. This new method works but may cause cloud variables to "rubber band" and reset to a previous value after it has been changed, as well as making many multiplayer projects less "real-time" or completely breaking them in general.

I believe this "rubber-band" effect is causing these "ghost requests"

— Reply to this email directly, view it on GitHub https://github.com/TimMcCool/scratchattach/issues/200#issuecomment-2329189032, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCKMZQTZXSWAXOAL3T2ITLZU4IYLAVCNFSM6AAAAABGYJPCJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZGE4DSMBTGI . You are receiving this because you authored the thread.Message ID: @.***>

TheCommCraft avatar Sep 04 '24 15:09 TheCommCraft