Discuss Scratch

codubee
Scratch Team
85 posts

Cloud Data Updated


As of 10 Sept 2017, the cloud data features of Scratch were migrated to use a new infrastructure. The changes include the following:

Encrypted websocket as the communication channel
Projects that send data too quickly to the backend infrastructure will have their connection dropped temporarily

You may notice that when a project that uses cloud data is in the non-running state, there are reconnections to the backend infrastructure. This occurs because web browsers aggressively shutdown websockets that appear to be idle.

Please let us know how well it does or does not seem to work!

Last edited by codubee (Sept. 12, 2017 02:02:27)


jromagnoli
Scratcher
1000+ posts

Cloud Data Updated

codubee wrote:

As of 10 Sept 2017, the cloud data features of Scratch were migrated to use a new infrastructure. The changes include the following:

Encrypted websocket as the communication channel
Projects that send data too quickly to the backend infrastructure will have their connection dropped temporarily

You may notice that when a project that uses cloud data is in the non-running state, there are reconnections to the backend infrastructure. This occurs because web browsers aggressively shutdown websockets that appear to be idle.

Please let us know how will it does or does not seem to work!
Great! Now I can finish working on that multiplayer from 9 months ago.




ROAD TO 10,000 POSTS
████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 64%










If you can read this, my signature cubeupload has been eaten by an evil kumquat!
hehehe!Mytiptopsecrettopicidentifier!ahjdgggfhjadggahjsahasgdjfsdjfga

novice27b
Scratcher
1000+ posts

Cloud Data Updated

codubee wrote:

Projects that send data too quickly to the backend infrastructure will have their connection dropped temporarily


Is this per-session, or per-project?

If it's per-project, wouldn't it be susceptible to a form of DoS attack? i.e. one user sends a whole bunch of data at once, so all the other users get their connections dropped.

i use arch btw
thisandagain
Forum Moderator
500+ posts

Cloud Data Updated

novice27b wrote:

codubee wrote:

Projects that send data too quickly to the backend infrastructure will have their connection dropped temporarily


Is this per-session, or per-project?

If it's per-project, wouldn't it be susceptible to a form of DoS attack? i.e. one user sends a whole bunch of data at once, so all the other users get their connections dropped.

The connection throttling is per-session not per-project and is specifically designed to prevent DoS.
TheUltimatum
Scratcher
1000+ posts

Cloud Data Updated

csf30816
Scratcher
500+ posts

Cloud Data Updated

TheUltimatum wrote:

Yay!
Yay indeed my friend. Yay indeed.

insert my old sig here
WooHooBoy
Scratcher
1000+ posts

Cloud Data Updated

Any chance of getting a real socket interface instead of a singular state value that anyone can edit at any time?

considered harmful
TheUltimatum
Scratcher
1000+ posts

Cloud Data Updated

WooHooBoy wrote:

Any chance of getting a real socket interface instead of a singular state value that anyone can edit at any time?
No.
Locomule
Scratcher
1000+ posts

Cloud Data Updated

Someone just shared a weird cloud data bug with me. While renaming cloud variables, the cloud icon ☁ got included with the new names, effectively turning them into normal variables which no longer accessed cloud data and confusing the user. I diagnosed it after seeing the cloud data page and a variable with two clouds in the name. My suggestion, replacing all the cloud variables, corrected the original project which is now un-shared, but I saved a remix of the bugged project as well as a screenshot of the original project's bugged cloud data included as a Stage costume in my remix.

I'm not sure if this has anything to do with the update, but I've never heard of this rename error before, so I thought I share it here too. I'm not expecting any direct reply or resolution to this post. just a fyi. By the time I saw the bugged, original project, it only set new cloud variables once per second. I asked the user about setting speed but they were aware of the speed limitation and seemed to be taking it into account.

Last edited by Locomule (Oct. 30, 2017 14:51:19)

Powered by DjangoBB