---
id: "id-generator"
type: "component"
kind: "id-generator"
provider: "default"
category: "data"
url: "https://localhost:3000/catalogue/components/id-generator"
---

# Generic ID generator

Vendor-neutral ID generator. Use when the real product is not in the catalogue; every rule for this kind still applies.

| | |
|---|---|
| Provider | [default](https://localhost:3000/catalogue?provider=default) |
| Kind | [ID generator](https://localhost:3000/catalogue/kinds/id-generator) |
| Category | Data |
| Official docs | not recorded |
| Generic? | Vendor-neutral: the kind itself |

## Properties

| property | type | values | required | default |
|---|---|---|---|---|
| `batchSize` | integer | — | no | — |
| `central` | boolean | — | no | false |
| `clockRollbackGuard` (advanced) | boolean | — | no | false |
| `managed` | boolean | — | no | false |
| `replicated` | boolean | — | no | false |
| `strategy` | enum | `uuid`, `ulid`, `snowflake`, `counter`, `counter-batched`, `hash` | yes | — |
| `timeSortable` | boolean | — | no | false |

## Rules that apply · 0

No rule selects this kind or its category.

## Other products of the same kind · 4

- [Snowflake ID](https://localhost:3000/catalogue/components/snowflake-id.md) `snowflake-id` — default
- [Ticket server](https://localhost:3000/catalogue/components/ticket-server.md) `ticket-server` — default
- [ULID service](https://localhost:3000/catalogue/components/ulid-service.md) `ulid-service` — default
- [UUID generator](https://localhost:3000/catalogue/components/uuid-generator.md) `uuid-generator` — default

## Use it in a design

```yaml
nodes:
  - { id: "id-generator", component: "id-generator" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# The vendor-neutral ID generator: the kind itself, with no product behind it. It sets no
# defaults and adds no properties, so every required kind property stays required on the node.
schemaVersion: "1"
type: "component"
id: "id-generator"
kind: "id-generator"
provider: "default"
```

Human page: https://localhost:3000/catalogue/components/id-generator
