Best Methodology...
Posted: Mon Mar 11, 2013 1:32 am
Morning,
I need to improve the reliability for one of my mobile Apps (iOS) to edit and maintain a shared register of sorts (actually is just a text filed housed on a FTP Server, only have access to FTP Server)
In terms of reliability speed etc is it better to:
A : Download a copy of the register, place into a Variable and write changes then REPLACE the register with the edited Variable? (please note this is what I am doing now and occasionally if the PUT fails it places an empty file on the Server but I get no error returned ??)
B : Write the changes/additions directly to the server file (this way if it fails it won't empty the file??)
Note - The Application has to be able to store these changes if offline and action them again once it has a connection.
In this situation there will be around 10-20 users reading and modifying this register on a daily basis so if you were doing this what sort of methodology would you apply?
Am I doing this in a generally acceptable way?
I need to improve the reliability for one of my mobile Apps (iOS) to edit and maintain a shared register of sorts (actually is just a text filed housed on a FTP Server, only have access to FTP Server)
In terms of reliability speed etc is it better to:
A : Download a copy of the register, place into a Variable and write changes then REPLACE the register with the edited Variable? (please note this is what I am doing now and occasionally if the PUT fails it places an empty file on the Server but I get no error returned ??)
B : Write the changes/additions directly to the server file (this way if it fails it won't empty the file??)
Note - The Application has to be able to store these changes if offline and action them again once it has a connection.
In this situation there will be around 10-20 users reading and modifying this register on a daily basis so if you were doing this what sort of methodology would you apply?
Am I doing this in a generally acceptable way?