I am researching on building a backend for website using Wolfram. APIFunction is great to use, but I can't figure out how should I store data like using dataset in a local notebook when using APIFunction. There are 3 of that, databin, clouddeploy[dataset], dataexpression, didn't figure out which way should be THE way to go? And can support multithread at the minimum and some volume when multiple users are calling the API the same time.
Here is simple code showing what I am trying to do.
data1 = Dataset[<|"a"->"testa","b"->"testb"|>];
CloudDeploy[APIFunction[{"c"->String}, Block[{dataA,datab},
dataA,datab = somehowGotFrom[c];
AppendTo[data1,<|"a"->dataA,"b"->dataB|>];]
I got the APIFunction working all well, the data reached the cloud deployed API, but the data1 is not in the cloud and didn't collect the data through API.
My question is how should I store data collected through APIFunction. Confused from the docs.
CloudExpression["myList"] = {};andAppendTo[CloudExpression["myList"], something]– Searke Jan 14 '19 at 23:24CloudExpressionfit your needs? Is this essentially the same question: https://mathematica.stackexchange.com/q/153114/5478? – Kuba Jan 15 '19 at 23:01