How do you generate globally unique and increasing serial numbers under the application server cluster?

  node.js, question

How do you generate globally unique and increasing serial numbers under the application server cluster?

If not, one solution is based on machine code differentiation.

It is to automatically or manually assign a globally unique machine ID to each server and use the method of “machine ID plus local unique self-increment”.

But this does not meet the requirements of the subject.

Another solution is to send a server to complete serial number service: generate globally unique and increasing serial numbers in series.