search

Home  >  Q&A  >  body text

nginx - Regarding the issue of concurrent bidding of calling interfaces, please take a look

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_leeringa_lee2781 days ago473

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 17:22:36

    What is incorrect data?

    reply
    0
  • Cancelreply