temporalmodern

module
v0.0.0-...-cf623d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2023 License: MIT

README

Temporal Go API Modernization

Ideas for newer workflow API. Rules for each approach:

  • Must have generic types for workflows, activities, signals, and queries
  • Must make invoking and returning all of the above respect their types
  • Must make workflow and activity registering obey types
  • Can force single-arg and/or single-return functions as needed
  • Do not have to implement yet, just have to demonstrate compile-time safety
  • Examples must show a workflow that can be queried, waits for a signal, then executes an activity and returns

See the approaches below. The links are to the examples which each list their approaches and pros/cons within.

Notes:

  • There are many even crazier ideas that were not included due to impracticality
  • Activity and workflow definitions could define their own default options
    • Just sucks for the untyped users
  • Could offer code gen, but that sucks for users
  • Some of the ideas here can be mixed and matched

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL