Ticket server

ID generatorticket-server

Flickr-style central auto-increment id server.

Provider
default
Category
Data
Properties · 5 set by this component
propertytypevaluesrequiredkind defaultthis component
backingStore · component propertyref—no—inherited
batchSizeinteger—no—inherited
centralboolean—nofalse▸ true
clockRollbackGuard · advancedboolean—nofalse▸ false
interleaveStep · component propertyinteger—no1inherited
managedboolean—nofalseinherited
replicatedboolean—nofalse▸ false
strategyenumuuid | ulid | snowflake | counter | counter-batched | hashyes—▸ counter
timeSortableboolean—nofalse▸ true
Rules that apply · 0

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

No rule reads this kind yet. That is a gap, not a guarantee.
Use it in a design
nodes:
  - { id: "ticket-server", component: "ticket-server" }
Other ID generator products · 4
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# Flickr-style ticket server: a central auto-increment row handing out ids; pairing two servers
# on odd/even sequences is how it is replicated.
schemaVersion: "1"
type: "component"
id: "ticket-server"
kind: "id-generator"
provider: "default"
docs: "https://en.wikipedia.org/wiki/Auto-increment"
defaults:
  strategy: "counter"
  central: true
  replicated: false
  timeSortable: true
  clockRollbackGuard: false
properties:
  backingStore:
    type: "ref"
    refKind: "sql-database"
  interleaveStep:
    type: "integer"
    default: 1

The same page as markdown, for an agent: /catalogue/components/ticket-server.md