LiveCloud

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

gagsoft
Posts: 168
Joined: Sat Jun 29, 2013 7:56 pm

Re: LiveCloud

Post by gagsoft » Sat May 18, 2019 7:59 pm

Hi Richard
My apologies...only saw your input now and many thanks

Peter G

mtalluto
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 49
Joined: Tue Apr 11, 2006 7:02 pm
Location: Temecula, CA
Contact:

Re: LiveCloud

Post by mtalluto » Mon Jan 27, 2020 6:48 pm

richmond62 wrote:
Tue Apr 23, 2019 9:27 pm
As far as I understand Cloud-based storage it is nothing more than a fancy way of avoiding
carrying a portable hard-drive in your pocket - and is totally useless when visiting your Uncle
in that village in the mountains where there is no internet.
Wow, am I late on this thread. Please forgive my delayed response.

I agree that cloud terminology is a bit confusing. It sounds a bit over the top in marketing for something we have had all along. Servers are not new. They have been available to everyone for as long as memory serves.

The critical difference is that data in the 'cloud' is spread across multiple systems to protect and improve data availability and integrity. The data systems are also able to grow and move your data as needed to maintain this excellent availability. All of this is managed automatically for you on your behalf.

LiveCloud comes with a database called CanelaDB. There are simple sync APIs that allow you to store the data you need locally. So, when you visit your uncle in the village in the mountains, you have the data you need with you — no need to bring extra hard-drives on this trip.

As you manipulate the data locally on the trip, your changes are on the device. When you return to an area with internet access, the same sync APIs will put the changes back into the cloud. Thus, you can access the same or different data on all your devices.

We have made this very easy to do. It is quite magical when you first experience it. After the glow is over, you get back to work making stuff. I hope this makes sense and opens your view on this topic.
Mark Talluto
--
Canela
http://www.canelasoftware.com
http://www.livecloud.io
http://www.nursenotes.net

mtalluto
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 49
Joined: Tue Apr 11, 2006 7:02 pm
Location: Temecula, CA
Contact:

Re: LiveCloud

Post by mtalluto » Mon Jan 27, 2020 7:18 pm

sphere wrote:
Wed Apr 24, 2019 12:32 pm
I'm not seeing the advantage of Livecloud over sqlite for local storage. Not even over the use of your own DB which you might have on your own webspace.
Also it's not bad to learn the basics of sql. They can help, because it's used almost everywhere on databases. Also many like to know that their info is stored in their own country.
Hi Sphere,

Yep, a bit late here on this thread. I thought it would still be useful to respond to some great questions.

The critical advantage is you use the same APIs for both local and cloud storage. For example:

//BUILD YOUR ARRAY
put "Sphere" into tDataA["name"]
put "Interested in some feedback" into tDataA["content"]

//SAVE YOUR ARRAY TO THE CLOUD
put cdb_create (tDataA,"myDBtableName","cloud") into tRecordID

More info on create: https://docs.livecloud.io/Create/

I could easily have stored this array to the local device by changing 'cloud' to 'local'.

You can sync the data back to the local device in a single line of code.
get cdb_sync("*","myDBtableName","cloud",false,false)

//'*' -DOES A SYNC CONSIDERING ALL RECORDS IN THE TABLE
//"cloud" -THE SOURCE DATA IS FROM THE CLOUD
//"false" -NO LOCAL RECORDS ARE TO BE DELETED IF THEY ARE UNIQUE TO THE CLOUD
//"false" -NO COLLISION DETECTION
More info on sync: https://docs.livecloud.io/Sync/

I would never advocate that learning any technology is a bad investment. SQL is the dominant player in databases. Knowing it will only enrich a developer's toolkit. When you are in control of the whole development stack, and the project needs cloud and local storage, using CanelaDB should save you a lot of time.
Mark Talluto
--
Canela
http://www.canelasoftware.com
http://www.livecloud.io
http://www.nursenotes.net

sphere
Posts: 1047
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: LiveCloud

Post by sphere » Mon Jan 27, 2020 8:19 pm

Hi Mark,

and thank you for your response.
Seems very easy indeed.
Maybe this is something to look into for an future project.
The way you explained it looks like a good advantage for syncing data.

regards,
Sphere

Post Reply

Return to “Talking LiveCode”