nginx - Regarding the issue of concurrent bidding of calling interfaces, please take a look
ringa_lee
ringa_lee 2017-05-16 17:20:36
0
1
441

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?

ringa_lee
ringa_lee

ringa_lee

reply all(1)
Ty80

What is incorrect data?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template