examples/

directory
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: MIT

README

/examples

cd /

[!NOTE] asyncmachine-go is a declarative control flow library implementing AOP and Actor Model through a clock-based state machine.

Table of contents:

Examples

aRPC Setup
DAG Dependency Graph
  • #relations #handlers #async #auto #dependency-graph
Fan Out Fan In
  • #relations #handlers #async #auto #concurrency
FSM - Finite State Machine
  • #relations #handlers #negotiation #auto
  • origin
NFA - Nondeterministic Finite Automaton
  • #relations #handlers #async #multi
  • origin
PATH Watcher
  • #relations #handlers #async #negotiation #multi
  • origin
Pipes
  • #handlers #composition
  • origin
Raw Strings
  • #relations #handlers #async #negotiation #auto
  • origin
Relations Playground
Subscriptions
Temporal Expense Workflow
  • #relations #handlers #async #negotiation #auto #temporal
  • origin
Temporal FileProcessing Workflow
Tree State Source
  • #relations #negotiation #auto #arpc #otel #metrics #grafana #generator #data
  • origin

Benchmarks

Benchmark gRPC
  • #relations #handlers #negotiation #arpc #grpc
  • origin
Benchmark libp2p PubSub
  • #relations #handlers #async #negotiation #libp2p
Benchmark State Source
  • #docker #go-wrt #caddy
  • origin

Demos

Debugging Sessions

Interactively use the TUI debugger with data pre-generated by:

  • libp2p-pubsub-simulator
    • web terminal: http://188.166.101.108:8080/wetty/ssh
    • remote terminal: ssh 188.166.101.108 -p 4444
    • local terminal: go run github.com/pancsta/asyncmachine-go/tools/cmd/am-dbg@latest --import-data https://pancsta.github.io/assets/asyncmachine-go/am-dbg-exports/pubsub-sim.gob.br
  • remote integration tests
    • web terminal: http://188.166.101.108:8081/wetty/ssh
    • remote terminal: ssh 188.166.101.108 -p 4445
    • local terminal: go run github.com/pancsta/asyncmachine-go/tools/cmd/am-dbg@latest --import-data https://pancsta.github.io/assets/asyncmachine-go/am-dbg-exports/remote-tests.gob.br

Case Studies

monorepo

Go back to the monorepo root to continue reading.

Jump to

Keyboard shortcuts

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