cqrs distributed platform foundation