If it is not incremented, there is a solution based on machine code differentiation.
It is to automatically or manually assign a globally unique machine ID to each server, using the "machine ID + local unique auto-increment" method to complete.
But this does not meet the requirements of the topic.
Another solution is to set up a server to complete the serial number service: serially generate a globally unique and incremental serial number.
If it is a server cluster, the database should be the same, so the above problem does not necessarily exist. Please also ask the author to describe the problem carefully.
If it is not incremented, there is a solution based on machine code differentiation.
It is to automatically or manually assign a globally unique machine ID to each server, using the "machine ID + local unique auto-increment" method to complete.
But this does not meet the requirements of the topic.
Another solution is to set up a server to complete the serial number service: serially generate a globally unique and incremental serial number.
If it is a server cluster, the database should be the same, so the above problem does not necessarily exist. Please also ask the author to describe the problem carefully.
redis incr