UUID Use Case

UUID Node ID

In a distributed system, 'which machine' matters. A UUID node ID is stable per instance and survives IP or hostname changes.

Stable per nodeRestart-safev4

Generated locally with the Web Crypto API — nothing leaves your browser.

What Is UUID Node ID?

How to generate

  1. Generate a v4 UUID at process start (or persist per host).
  2. Advertise it in cluster membership.
  3. Reference it in logs and shard maps.

Use Cases

Code Examples

JavaScript
const id = crypto.randomUUID();
Python
import uuid
id = uuid.uuid4()

Frequently Asked Questions

Persist the node ID or regenerate?
Persist per host so restarts keep identity; regenerate only on true new nodes.
Node ID vs instance ID?
Node ID is the logical member; instance ID may change per deploy. Keep them distinct.

Related tools