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:javadsm-integration-test
Use the integration tests when you need to see how replication behaves across nodes.
TwoNodeIntegrationTestshows manual multi-node register replication.RuntimeIntegrationTestcovers 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
- Run the standalone example first.
- Read the Spring Boot example if your service uses Boot.
- Inspect the integration tests before designing your own cluster-level tests.