跳到主要内容

Primitives

Dex 提供一组精简的 primitive。把它们组合成 Flow,可以实现复杂的业务需求。

  • Flow — 顶层 durable program,包含 Step、Attribute、Channel 和 RPC
  • Step — 在后台运行并支持 retry 的 durable Step
  • Connector — Flow 与外部 provider 之间的 typed integration boundary
  • Attribute — durable variable,支持可选 indexing、storage sync 和 locking
  • RPC — durable communication(Remote Procedure Call)
  • Channel — 用于内部和外部通信的 durable message queue
  • Stream — 用于低延迟 UI update 的 best-effort resumable feed
  • Timer — durable timer
  • SubFlow — 以层级结构启动另一个 Flow
  • Client — 操作 Flow instance 的 API