Comments (2)
After some consideration, we decide do not define a domain exception class. We allow user to throw any exception in the domain. And enode framework check if it catch the ENodeException, then the command will be retry authomatically. ENode framework will enusre that the ENodeException will only be throwed by enode framework, and commonly this exception in the command handler is throwed when user call context.Get method. If this method throw ENodeException, that means there are some io exceptions occurrs when accessing the redis memory cache or event store. So in this case, the command should be retried always until success.
from enode.
For the above design, developer should understand the developing rule that if the command handler throws ENodeException, than the command handler will be retried automatically; otherwise the command will not be retried and the error will back to user (like controller).
Developer can throw any exception in the command handler except ENodeException.
from enode.
Related Issues (20)
- CommandHandler增加异步处理方式 HOT 1
- ENode是否可以配置EventSouring开关? HOT 1
- 使用.net core默认依赖注入的计划 HOT 2
- 获取聚合根Handle时如果是级联继承,是否应该将子类以及父类的Handle一起加载 HOT 1
- CommandResultProcessor挂起时,SendReplyService里的SocketRemotingClient遗漏了,没有停止ReconnectServer() HOT 1
- 支持多聚合根的事件批量持久化 HOT 1
- 框架支持流程ID
- ICommandHandler, ICommandAsyncHandler合并为一个 HOT 1
- IMessage接口去掉GetRoutingKey()方法
- 为IDomainEvent增加一个SpecVersion字段
- Add extension key/value info into IMessage object
- ignored bug.
- Enode 批量写入事件流,支持 event store 水平拆分多库的场景
- 希望能用微软的依赖注入框架 HOT 3
- Question: Does Enode has Rebuild read model functionality? HOT 1
- support batch persist events of a single aggregate on query side
- support clean inactive aggregates strategy
- 聚合根的单线程更新PublishedVersion太慢,造成event消费堆积
- 处理UnobservedTaskException时,日志没有输出具体异常内容
- 当执行command用Items传值且CommandReturnType.EventHandled的时候就拿不到返回的结果了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enode.