# An Akka DDD from scratch

## 通用语言 & 第一个模型

" Each Player has some amount of XP as well as Credits "

• Player 游戏玩家，它有唯一标识
• XP 每个游戏玩家通过经验值(the amount of XP)成长
• Credits 该游戏中用于交易的通用货币

“A new Player will be created when a Person registers on the Backend.
It will the be initialized with a given amount of XP and Creadits (in this case 0) When a Player requests his information from the backend then it should return the Id and the amount of XP as well as the amount of Credits

## 主函数

extractEntityId方法的引用
extractShardId方法的引用
player绑定为分片actor的引用，用作依赖注入实现

## 测试

10秒内得到10000新用户，令人印象深刻(我们的spring 服务甚至接近的水平都未到…)