Skip to content

Example Catalog

The repository includes runnable examples and integration tests that are better than synthetic snippets when you need to understand real wiring.

dsm-examples

Use dsm-examples when you want reference implementations for:

  • standalone runtime assembly
  • Spring Boot configuration
  • register, lease, and CRDT collection setup

Run the standalone example with:

bash
mvn -pl dsm-examples exec:java

dsm-integration-test

Use the integration tests when you need to see how replication behaves across nodes.

  • TwoNodeIntegrationTest shows manual multi-node register replication.
  • RuntimeIntegrationTest covers broader register, lease, and CRDT flows.

dsm-test-support

Use the test-support module when you want reusable fakes such as:

  • FakeClusterMembership
  • data-plane test transports

Suggested Workflow

  1. Run the standalone example first.
  2. Read the Spring Boot example if your service uses Boot.
  3. Inspect the integration tests before designing your own cluster-level tests.