NServiceBus.RavenDB is the official NServiceBus persistence implementation for RavenDB.
It is part of the Particular Service Platform, which includes NServiceBus and tools to build, monitor, and debug distributed systems.
See the RavenDB Persistence documentation for more details on how to use it.
Running the tests requires RavenDB 5.2 and two environment variables:
CommaSeparatedRavenClusterUrls
containing the URLs, separated by commas, to connect to a RavenDB cluster to run cluster-wide transaction testsRavenSingleNodeUrl
containing the URL of a single node RavenDB instance to run non-cluster-wide tests
The tests can be run with RavenDB servers hosted on a Docker container.
The CI workflow requires the following secret, unique to RavenDB, to be defined both as an Actions and Dependabot secret:
- RAVENDB_LICENSE: A RavenDB development license, expressed as JSON, but all on one line, with escaped quotes
\"
The value used by Particular is stored in a secure note called "RavenDB CI Secrets".
This assumes docker and docker-compose are properly setup. It currently works on Windows with Docker Desktop but not on docker hosted in WSL2 only.
- Acquire a developer license
- Convert the multi-line license JSON to a single line JSON and set the
LICENSE
variable. Alternatively the license can be set using an.env
file. - Inside the root directory of the repository issue the following command:
docker-compose up -d
.
The single node server is reachable under http://localhost:8080
. The cluster leader is reachable under http://localhost:8081
.