#Service Fabric Journal Service A replicated journal on Service Fabric. Demonstrates how to write a persistent, stateful service which uses Service Fabric for replication.
Common Log File System (Windows component) is used as the as the store.
I give zero guarantees about any of this. It's surprising that it appears to work at all, it is certainly not a correct implementation (see, for example, the #warning
s in code where some correctness issues are highlighted).
- Install Service Fabric SDK.
- Open in VS 2015, and deploy the application to your local cluster.
- Run TestApp.exe on your local cluster and watch your hard drive slowly fill with replicated operations.
Also check out Fabric Table Service, a distributed database on Service Fabric which uses ESENT as the storage engine and co-operates transactionally with Fabric's provided IReliableDictionary
& IReliableQueue
.
There is significant room for optimization, this project was just a learning excercise.
TODO:
- Don't persist consistent read operations, merely replicate them.
- Test everything...