I currently have three applications a, b, and c. They have a bidding function. a calls the interface of b to process business logic, and b calls the interface of c to save data.
Browser accesses a (nginx corresponds to two a)
a calls the interface of b through nginx (corresponding to two load balancing servers b1 and b2 respectively)
b calls the interface of c through nginx (corresponds to two load balancing servers respectively) Daily load balancing servers c1, c2)
a->b->c
When concurrency is discovered, incorrect data occurs during data writing. How to solve the problem? Is there a problem with nginx configuration, or should synchronized be added to every interface in this case?
What is incorrect data?