Cassandra 安装入门

Cassandra是Apache开源的分布式数据库管理系统,被用于处理大数据量的商用硬件或云设施上。Cassandra提供了高可用,无单点故障的特性。

Cassandra支持不停机的线性扩展机器的方式,增加Read和Write的吞吐量。

每个Cassandra节点在集群中会有相同的角色。数据被分布在各个集群节点上。Cassandra支持复制和多数据中心冗余复制,故障转移,灾难恢复。

Read more

An Akka DDD from scratch

最近的多人游戏开发上,对Akka 的使用非常感兴趣。在我的工作上,我和 @DsFishlabs 使用了 Spring Boot 以及 Spring Cloud 作为我们的内部服务。

在本文,我想尝试基于 Akka 来构建相似的系统,功能方面跟原来差不多,但这里我想尝试一个不同的方式。其中包含有 Scala,Akka Cluster ShardingAkka Persistence aka.Event Sourcing 以及 DDD

所有代码会在Github上,可能需要看看 extractShardId 方面的资料。

Read more

Domain Design Relish

More formally, a domain model is a blueprint of the relationships between the various entities of the problem domain and sketches out other important details, such as the following:

  • Objects that belong to the domain
  • Behaviors that those objects demonstrate in interacting among themselves
  • The language that the domain speaks
  • The context within which the model operates
Read more