OxL Reference

kw runs

Contextual keyword — cluster declaration (§12.1)

The list of words: §1.4

Syntax

ebnf
RoleClause  = "serves" IdentList | "hosts" IdentList | "runs" ( "sagas" | "leader" "(" StrLit ")" )
            | "journal" | "shards" IntLit | "replication" IntLit | "replicas" Expr
            | "needs" Expr | "expose" IntLit { Expr } ;

Grammar: App. A

Defined in

  • 12.1 Cluster declaration — A program has at most one cluster.
  • 1.4 Keywords — Reserved (cannot be used as names)
  • 11.3 Sagas — A saga is a sequence of steps (the step syntax is as in a chain, §8.4); after a step there MAY be undo x => compensation, where x is the res
  • 12.6 Distributed computation — cluster.shards(src) is for sharded tables and actors; map runs close to the data, the function MUST be transferable (§7.3).

Related diagnostics

actor-not-hosted, cluster-auth, cluster-decl, cluster-needs, cluster-seeds, placement-conflict, saga-without-role, service-not-served, topic-without-journal, unknown-role, saga-decl, saga-idempotency

See also