在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):BardurArantsson/cqrs开源软件地址(OpenSource Url):https://github.com/BardurArantsson/cqrs开源编程语言(OpenSource Language):Haskell 89.2%开源软件介绍(OpenSource Introduction):CQRS for HaskellIntroductionThis is a Haskell implementation of the CQRS+ES architectural pattern. It combines two patterns which are each powerful in their own right, but whose combination is exponentially more powerful yet. The first pattern is Command Query Responsibility Segregation (CQRS) which is about separating the portion of your application that does writes or updates from the portion of your application that performs queries against data. Martin Fowler has a lovely introduction to CQRS which I recommend reading if you're new to CQRS. The second pattern is Event Sourcing (ES) which is about representing all state change in your application as a sequence of semantic immutable events rather than modifying data in-place. A simple analogy is to think of an accounting ledger: Every single monetary transaction is recorded as a new line in the ledger rather than by going in and changing any existing lines. When you want to know the current balance you sum up all entries. Martin Fowler also has an introduction to Event Sourcing which I recommend reading if you're not already familiar with ES. Example ApplicationA simple example application is provided in the
cqrs-example
directory. It's a basic TODO-list webapp which uses the API Stability and Planned/Missing FeaturesAt least the following changes are currently planned:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论