after testing, I found that when using dubbo, if the A service a method calls the b method of the B service and
retries N times, the return of the b method obtained by the
a method is the Nth time or some time in the middle
now if method a calls method b to insert a data and returns true (or other results such as the total number of rows returned)
or failed false
due to timeout, retry
is actually successful
the first time, but the second and subsequent times due to database uniqueness check throw exception
, then method a gets an exception. Instead of successfully inserting true
, this should be quite common in microservice architectures, right?
how to deal with it in practice?