Problems with repeated invocation of dubbo services

the dubbo service of the project is deployed on 4 servers. There is a problem that I call the dubbo interface in controller, and the interface will insert some data, but I found in the background that 2 dubbo servers executed this interface in the same second, resulting in repeated insertion of a piece of data. why did this happen?

May.23,2022

even if you have only one machine, the retry mechanism of dubbo may lead to repetition, so you have to design your interface as idempotent


. The retry of any link will not affect
by adding trace to check, or look at the requested link. Why


is the cause of load balancing strategy? Take a look at the loadbalance settings of your consumer


I have this problem because the entity that returned the value is not serialized, and the entity serialization problem is resolved.

Menu