Why not just use a catchup subscription for this? It will when caught up even subscribe and push events for you (eg true warm replica). At the least it will be less code even for just copying a db
Also what you have here is a warm replica. In the OSS code you can now support multiple hot nodes (with paxos quorums).
It’s not very well documented at the moment (and we haven’t released any binaries yet so you’ll have to build from source - dev branch). However, if you build from source, you’ll want to start multiple nodes like this:
This will start three in-memory nodes running on the same machine (172.16.7.146) but running on ports starting with 1xxx, 2xxx or 3xxx respectively. Gossip seeds for each node will need to point to every other node. There are tools which make this kind
of config significantly easier which come with the commercial support etc.
This is the same stuff as is running the HA showcase at
http://ha.geteventstore.com (though that’s down right now as the web server running it has decided it wants activating and I don’t have the Windows key for it to hand right now… doh!)
The whole reason for my version of replication was because we can’t quite afford the commercial offerings at the moment. We’ve been running a SingleNode for a very long time and lately we’ve been fearing the day that POOF, our data is gone.
Backups are manual and tedious.
Really though. Thanks for OSing this stuff! My Monday is now spoken for.
If you have issues feel free to stop us an email and we can get the HA stuff setup for you. You may want to keep a subscription to a warm replica as well. To do this just use a catchupsubscription and write into another node (very similar to what you have now). A common use case for this is 3 nodes in the cloud and a warm replica in your office (just in case of catastrophic occasions