This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
martin509's profile picture

Cloud Computing?

Started by martin509, 02 March 2013 - 03:45 PM
martin509 #1
Posted 02 March 2013 - 04:45 PM
Title: Is cloud computing (multiple computers processing data for one program) possible in CC via rednet?
Kingdaro #2
Posted 02 March 2013 - 05:09 PM
Probably. Could have some sort of parallel running in the background that uploads files in a certain directory to a server every couple seconds, just like how dropbox works, but with more abstraction.
Kryptanyte #3
Posted 02 March 2013 - 05:12 PM
could you give more of an example of what you mean?
Lyqyd #4
Posted 02 March 2013 - 05:12 PM
Yes, this is possible, but actually would give you worse performance and take longer to do the same amount of computations.
martin509 #5
Posted 02 March 2013 - 05:20 PM
Could you explain?
Lyqyd #6
Posted 02 March 2013 - 05:34 PM
All the computers run in coroutines. Only one computer is ever executing code at a time, so there is no benefit to having a different computer do the work. Passing the work off adds a bit of complexity and time, so you come out having spent more time to do the same amount of work.
Kryptanyte #7
Posted 02 March 2013 - 05:41 PM
Well, technically if you have one computer executing a code the whole time, then it receives messages that can relate to the program, for example.

Say you have a door that only some people can access, instead of having said computer handle the passwords and say a sensor, you have basically a server with the passwords, then a sensor under the door so that even if someone else gets your password for the door, they do not have access because it has to be the person who is related to that login/pass.

Having the sensor on a different computer is really better as you can have it running checks for a player instead of having to work through a parallel on the door computer.

At least, I think its better that way.
martin509 #8
Posted 02 March 2013 - 05:45 PM
All the computers run in coroutines. Only one computer is ever executing code at a time, so there is no benefit to having a different computer do the work. Passing the work off adds a bit of complexity and time, so you come out having spent more time to do the same amount of work.
Oh. Thanks for clearing that up!
3ydney #9
Posted 02 March 2013 - 09:34 PM
I'm trying to make it using one server… (One computer as file host)

Its a big project….


It is going to be called CSS Cloud Storage System
Tiin57 #10
Posted 03 March 2013 - 05:02 AM
What good would it do? CC computers have as many resources as they need.
Lyqyd #11
Posted 03 March 2013 - 08:45 AM
Well, technically if you have one computer executing a code the whole time, then it receives messages that can relate to the program, for example.

Say you have a door that only some people can access, instead of having said computer handle the passwords and say a sensor, you have basically a server with the passwords, then a sensor under the door so that even if someone else gets your password for the door, they do not have access because it has to be the person who is related to that login/pass.

Having the sensor on a different computer is really better as you can have it running checks for a player instead of having to work through a parallel on the door computer.

At least, I think its better that way.

Neither the other computer nor a parallel call are necessary. One computer running one program in a single coroutine can easily handle your posted example.
Left4Cake #12
Posted 03 March 2013 - 04:48 PM
Say you have a door that only some people can access, instead of having said computer handle the passwords and say a sensor, you have basically a server with the passwords, then a sensor under the door so that even if someone else gets your password for the door, they do not have access because it has to be the person who is related to that login/pass.

Having the sensor on a different computer is really better as you can have it running checks for a player instead of having to work through a parallel on the door computer.

Neither the other computer nor a parallel call are necessary. One computer running one program in a single coroutine can easily handle your posted example.

Unless you wanted many doors to access the same database for passwords so that you would not have to worry about keeping it all in sync. May be even set up privileges to that players with different ranks can open only certain doors.
Kryptanyte #13
Posted 03 March 2013 - 06:01 PM
^ What he said.
LuaEclipser #14
Posted 04 March 2013 - 07:20 AM
yes this is possible


nitrogenfingers crested an email server that uses multiple computers to send an email a distance
it is on youtube
Dlcruz129 #15
Posted 04 March 2013 - 07:29 PM
yes this is possible


nitrogenfingers crested an email server that uses multiple computers to send an email a distance
it is on youtube

This was not the question.