Hello Paul, thank You for Your reply which fully covers the topic :)
Dear Gastón, please feel free to ask additional questions if more answers needed.
Hi, Paul.
Sounds like you're talking about REST API. And that your are overwriting data with older values if B managed to read record before A finished to update it. Classic conflict resolution ...