Skip to content

ergo-services/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitbook Documentation Telegram Community Reddit Discord

Here you can find examples demonstrating features of Ergo Framework 3.0 (and above).

demo

This is an "umbrella"-example that demonstrates most of the Ergo Framework features. It was generated by ergo tool with just a single command. See README.md file in demo for the details.

image

call

This example project shows how to make synchronous requests to the local and remote processes. It starts two nodes (node1@localhost and node2@localhost); node1 spawns processes a and b; node2 spawns process b. Process a is making Call requests sequentially to the process b on node1@localhost (locally) and to the process b on node2@localhost (remotely)

image

events

Ergo Framework provides the "Events" feature that implements the distributed "Publisher/Subscriber" design pattern. This example demonstrates this feature in action. It starts node node-pub@localhost with a producer process and second node node-sub@localhost with two consumer processes.

image

erlang

This example demonstrates how the node built with Ergo Framework and enabled Erlang network stack natively communicates with the Erlang node.

image

websocket

The following example starts Web server with websocket-handler at "/" and spawns 3 processes to handle websocket-connections.

image

docker

Demonstrates running a multi-node Ergo cluster in Docker with etcd as a registrar. Three nodes discover each other through etcd, exchange messages, and react to real-time configuration changes. Shows service discovery, actor communication across nodes, typed hierarchical configuration, and cluster event monitoring.

port

The Ergo Framework allows you to run external programs and interact with them using standard input and output. This example demonstrates this functionality. It launches two programs: one that uses a text format for communication, and another that uses a binary format.

image

observability

Demonstrates Ergo Framework's built-in observability stack: a 5-node cluster running realistic workloads with Prometheus metrics collection, pre-configured Grafana dashboards, Observer web UI, and MCP-based cluster diagnostics via Claude Code. Includes four scenario applications (latency, messaging, lifecycle, events) that generate different types of load to exercise all framework metrics. Runs with Docker Compose.

radar

Demonstrates the Radar application -- a sidecar that bundles Kubernetes health probes and Prometheus metrics on a single HTTP port. Three demo workers (database, cache, API gateway) register health signals and update custom metrics through Radar helper functions.

About

examples for demonstrating Ergo Framework features

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors