Anoma.Node.Examples.EShardSupervisor (Anoma v0.35.0)

I contain examples demonstrating the ShardSupervisor functionality.

Summary

Functions

I test starting a node with a shard configuration, verifying that the ShardSupervisor starts the correct Shard processes via async setup, and that the router correctly maps keys to shard names.

Functions

read_table(table, key)

shard_abcde(node_id \\ Node.example_random_id())

@spec shard_abcde(String.t()) :: String.t()

I'm like shard_dynamically_abcd/1 but with e being empty

shard_dynamically_abcd(node_id \\ Node.example_random_id())

@spec shard_dynamically_abcd(String.t()) :: String.t()

I'm like shard_start_abc/1 but with d being 10

shard_start_abc(node_id \\ Node.example_random_id())

@spec shard_start_abc(String.t()) :: String.t()

I test starting a node with a shard configuration, verifying that the ShardSupervisor starts the correct Shard processes via async setup, and that the router correctly maps keys to shard names.

I create a unique node ID on each call to avoid state collision.