If you think you need to... «Building Microservices: Designing Fine-Grained Systems»
If you think you need to write your own CP data store, read all the papers on the subject first, then get a PhD, and then look forward to spending a few years getting it wrong.