Five kinds, each with one job.
The schema declares each atom: its kind, its connection and its timeout. The engine decides when to call it, and with what.
| Kind | What your code does |
|---|---|
| Source | Deliver returns the change sets after a cursor, a batch for each call. A trigger starts it. |
| Enricher | Enrich derives the derived fields of one layer at each change, or rejects a record. |
| Gate rule | Judge returns a verdict on the difference of one layer: pass, reject or hold. |
| Handler | Handle does a job, and returns its outcome, its change sets and its events. |
| Converter | Convert gives the new values when a deployment changes a key or a type. |
One procedure for each kind
Reads never call an atom. When an atom fails or stays silent, its run publishes nothing, and every read continues.
atoms {
name: "check_limit"
connection: "rules"
timeout { seconds: 5 }
gate_rule {
layer { entity: "setting" layer: "value" }
}
}
connections {
name: "rules"
settings {
name: "strict"
type: FIELD_TYPE_BOOLEAN
default_value { boolean: false }
}
}
Declared in the schema
A gate rule on the layer value, and the setting that every call through its connection carries.