Hi,
My app allows multiple sources to update the same objects in the database.
To ensure no updates are missed or overwritten, should I use server code to handle the updates?
e.g.
User 1 adds an array item to database1-table1-newsitems[]
at the same time,
User 2 adds an array item to database1-table1-newsitems[]
To ensure both items are added and nothing is overwritten, missing an update, would server code operate sequentially or if the calls happened at exactly the same time, could 2 instances of server code get executed at the same time?
If 2 could get executed at the same time, I could negate this by flagging updates, I just need to know if server code calls are sequential or not?
Or is there a better way if handling this than using server code?