Lind.DDD.Events事件总线~自动化注册
让大叔兴奋的自动化注册
对于领域事件之前说过,在程序启动时订阅(注册)一些事件处理程序,然后在程序的具体位置去发布(触发)它,这是传统的pub/sub模式的体现,当然也没有什么问题,为了让它支持分布式的场景,我们引用了redis这种存储介质,这一切都早已集成到了Lind.DDD架构中,对些没什么好说的,而今天的重点在于"事件的自动过注册"的理念,这个概念真实在ABP架构中出现了,大叔觉得很不错,所以也集成到了自己的架构中,为些也兴奋了一段时间,其中有解决问题的
Redis只是一种分布式存储介质
对于第一版将事件总线放到内存的情况来说,使用redis这种存储介质确实解决了分布式的事件问题,它可以在更多场合下使用,不用考虑WEB端的负载均衡,不用考虑服务端的存储压力,不用考虑并发时的吞吐量,确实,redis是个存储效率非常高的产物,大叔redis里的事件的Key采用了当前EventData的名字加上自定义的前缀,这样可以同时在多个项目中使用.
/// <summary>
/// 对于事件数据的存储,目前采用内存字典
/// </summary>
private readonly IRedisClient _redisClient = RedisManager.GetClient();
/// <summary>
/// redis事件总线的Key
/// </summary>
private string redisKey = ConfigConstants.ConfigManager.Config.DomainEvent.RedisKey;
/// <summary>
/// 得到当前redis-eventbus-key
/// </summary>
/// <typeparam name="TEvent"></typeparam>
/// <returns></returns>
private string GetCurrentRedisKey<TEvent>()
{
return redisKey + "_" + typeof(TEvent).FullName;
}
/// <summary>
///得到非泛型版本的值
/// </summary>
/// <param name="tEvent"></param>
/// <returns></returns>
private string GetCurrentRedisKey(Type tEvent)
{
return redisKey + "_" + tEvent.FullName;
}
结构图
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWUAAAB9CAIAAAD1FeWuAAAP9UlEQVR4nO2d3VMUV97H8z88d3vBRapyEdmrtbayWmqJuxhW1yUlG1aSYjUZLbIpFkgVWaIGcAcZBRKpRwzjVKnFgsirgEbDroy45cQYowtIIME3EsTgAlsY3fTvnNP7VPlcTGUcpl+me5ihe3q+n/qV1XM4b4N1Pn267f75HAEAgAb/+te/QzFy8+vnrJ6PCTwez4b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85IS8eabYssWOSNDXrVKfvllkZMjtm8XRUV8zx7u8fAjR1hTEzt9mg0MSNeu0fAwjY/TvXvS9LQ0P2/Pd+SlJ0+k+Xlpepru3aPxcRoelq5dYxcusNOnWVMTb2jgHg/fs0f86U9i+3aRkyNv3CivWiVnZIjf/pb/4Q/8nXd4dTXz+Vh3N126RF9+iXvMzgC+iCfSkyfSgwc0MUE3btDgIDtzhrW2Mq+X19XxykpeUsIrKkR+vsjNFdnZclaWnJEhr14tr14tZ2TIWVkiO1vk5or8fLFzpygsZAcO8NLSRSn59u3jbjffv597PPzgQV5Xxz/88Fk+vubmZ/n4PvyQ19Xxgwe5x8P37+duN9+3LzwZHy8t5TU1orBQ7NxpZEqsooK/8w6vrOR1dezoUdbays6cocFBunGDJiak776zp/hAfEk5X3g8ng2LsXpGJD1+LM3NSdPTdPcujY/T0BBdvUqXLpHfz/r7F6X87epiHR2srY21trKWFtbUxE6ceJbvt6npWb7fEydYUxNraWGtraytjXV0sK6u8GS/rL+fLl6kS5fo6lUaGqLxcbp7V5qelubmpMePrf6VAJtia1+YzZQVFY/H43bv//7R41DYwRcAJAu29oWhTFkabFAjJIvgR/gCAFPY2hdpGpmyjBDUQdRQ9UVCHmQGIPmxuy8iMmUZZym+oKTLIgPAsmB3X9CPmbLMKkP1ekQVnaEJvgAgjCTwBRHV1tamp6fPzs4ab5sIXxh5+RJXMcDBJIEvAoFAMJ+FqbZx90XEgfJP1QMAnITdfRGbLCgxvohICUHwBUgx7O6L2GRBidxfhH+EL0BKYWtfLMqUZZKl+CJq1inS8EWoTmxzBsDm2NoXMcuClry/AAAosbUvlgJ8AUDccawvAABxB74AABgFvgAAGCXCF/8PoZCf97Aw/qEAAAAASUVORK5CYII=" alt="" />
主角是SubscribeAll这个方法
对于当前应用程序下的所有DLL进行反射,拿到所有实现了IEventHandler的类型,然后对这么类型(事件处理程序)进行注册即可.
核心代码(Memory版):
/// <summary>
/// 需要过滤的接口
/// </summary>
string[] Excepts = { "IEventHandler`1", "ActionDelegatedEventHandler`1" };
/// <summary>
/// 全局统一注册所有事件处理程序,实现了IEventHandlers的
/// </summary>
public void SubscribeAll()
{
var types = AppDomain.CurrentDomain.GetAssemblies()
.SelectMany(a => a.GetTypes()
.Where(t => t.GetInterfaces().Contains(typeof(IEventHandlers))))
.Where(i => !Excepts.Contains(i.Name))
.ToArray(); foreach (var item in types)
{
if (!item.ContainsGenericParameters)
{
var en = Activator.CreateInstance(item);
foreach (var t in item.GetInterfaces().Where(i => i.Name != "IEventHandlers"))
{
Subscribe(t, en);
}
}
}
}
/// <summary>
/// 订阅非泛型版
/// </summary>
/// <param name="type"></param>
/// <param name="eventHandler"></param>
void Subscribe(Type type, object eventHandler)
{
lock (_objLock)
{
var eventType = type.GetGenericArguments()[];
//var eventType = type.GetType().GenericTypeArguments[0];
if (_eventHandlers.ContainsKey(eventType))
{
var handlers = _eventHandlers[eventType];
if (handlers != null)
{
if (!handlers.Exists(deh => _eventHandlerEquals(deh, eventHandler)))
handlers.Add(eventHandler);
}
else
{
handlers = new List<object>();
handlers.Add(eventHandler);
}
}
else
_eventHandlers.Add(eventType, new List<object> { eventHandler });
}
}
对于这种仓储,在Redis里事实上是以二进制的格式存储的,所以要求你的EventData和EventHandler需要标记为可序列化,我经过测试,对于Json序列化的方式,在进行发布时,不能成功回调"订阅"的代码,原因我目前还不清楚,需要大家一起去研究!
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtYAAACdCAIAAAAfcqgXAAAgAElEQVR4nO2d+V8UV7rG+1+YJLPcSW4mmdy5S2KiGbOrGSaZJJNFJzHjmBhHnSxjNFHBfUMFXGLcETUioIjKKqICgkaRTRZbFummWQRpF4yKooKIQlP3h+oURS2nTlVXVTf08/08Hz7Vp895z1vVTZ2Ht4puyy+eCWQYhmGYXwxybzw0KOihZ4MeejaI+ZmHn5vJiunLI4NnPTJ4FsMwnfe7+O2/GjK7z8Pn5/z6+Tm//uOcX/9xDtf4m6FzfzN0riDgf7wwj6/fv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TdW1V+uc7bYG69aa64WJ885nzjMZZ/C1Af21Ey/nD6K4EIkv3+O5ovrABgAoAoCAABi/h/cNXmbT8djZQAAAABJRU5ErkJggg==" alt="" />
感谢各位的阅读!
Lind.DDD.Events事件总线~自动化注册的更多相关文章
- Lind.DDD.Events领域事件介绍
回到目录 闲话多说 领域事件大叔感觉是最不好讲的一篇文章,所以拖欠了很久,但最终还是在2015年年前(阴历)把这个知识点讲一下,事件这个东西早在C#1.0时代就有了,那时学起来也是一个费劲,什么是委托 ...
- Lind.DDD敏捷领域驱动框架~介绍
回到占占推荐博客索引 最近觉得自己的框架过于复杂,在实现开发使用中有些不爽,自己的朋友们也经常和我说,框架太麻烦了,要引用的类库太多:之前架构之所以这样设计,完全出于对职责分离和代码附复用的考虑,主要 ...
- C#事件总线
目录 简介 实现事件总线 定义事件基类 定义事件参数基类 定义EventBus 使用事件总线 事件及事件参数 定义发布者 定义订阅者 实际使用 总结 参考资料 简介 事件总线是对发布-订阅模式的一种实 ...
- 关于Lind.DDD.Api客户端的使用与知识分享
回到目录 关于Lind.DDD.Api的使用与客户端的调用 作者:张占岭 花名:仓储大叔 框架:Lind.DDD,Lind.DDD.Api 目录 Api里注册全局校验特性 1 Api中设置全局的Cor ...
- ASP.NET ZERO 学习 事件总线
用于注册和触发客户端的全局事件. 介绍 Pub/sub事件模型广泛用于客户端,ABP包含了一个简单的全局事件总线来 注册并 触发事件. 注册事件 可以使用abp.event.on来注册一个全局事件.一 ...
- DDD事件总线
DDD事件总线 基本思路: (1) 在事件总线内部维护着一个事件与事件处理程序相映射的字典. (2) 利用反射,事件总线会将实现了IEventHandler的处理程序与相应事件 ...
- DDD事件总线的实现
基本思路: (1) 在事件总线内部维护着一个事件与事件处理程序相映射的字典. (2) 利用反射,事件总线会将实现了IEventHandler的处理程序与相应事件关联到一起,相当 ...
- ABP的事件总线和领域事件(EventBus & Domain Events)
http://www.aspnetboilerplate.com/Pages/Documents/EventBus-Domain-Events EventBus EventBus是个单例,获得Even ...
- DDD~领域事件与事件总线
回到目录 谈谈它 终于有些眉目了,搜刮了很多牛人的资料,英文的,中文的,民国文的,终于小有成就了,同时也做了个DEMO,领域事件这东西好,但需要你明白它之后才会说好,而对于明白领域事件这件事来说,它的 ...
随机推荐
- [nodemon] Internal watch failed: watch ENOSPC错误解决办法
运行环境:Ubuntu 16.04, WebStorm 2016.1.3, node.js v0.12.5, nodemon 1.9.2 在WS自带的终端输入nodemon server.js启动项目 ...
- 【PRINCE2是什么】PRINCE2认证之七大原则(2)
我们先来回顾一下,PRINCE2七大原则分别是持续的业务验证,经验学习,角色与责任,按阶段管理,例外管理,关注产品,剪裁. 第二个原则:吸取经验教训. PRINCE2要求项目团队吸取以前的经验教训,在 ...
- Elasticsearch5.0 安装问题集锦
使用Elasticsearch5.0 必须安装jdk1.8 [elsearch@vm-mysteel-dc-search01 bin]$ java -version java version &quo ...
- Execute SQL Task 参数和变量的映射
Execute SQL Task能够执行带参数的SQL查询语句或存储过程(SP),通过SSIS的变量(Variable)对参数赋值.对于不同的Connection Manager,在Task中需要使用 ...
- 轻量级前端MVVM框架avalon - 模型转换
接上一章 ViewModel modelFactory工厂是如何加工用户定义的VM? 附源码 洋洋洒洒100多行内部是魔幻般的实现 1: function modelFactory(scope) { ...
- Python第一天 - list\字符串截取
(一)list截取L =['Adam', 'Lisa', 'Bart'] print(L[0:3]) ======>['Adam'(idnex:0), 'Lisa'(index:1), 'Bar ...
- .NET平台开源项目速览(8)Expression Evaluator表达式计算组件使用
在文章:这些.NET开源项目你知道吗?让.NET开源来得更加猛烈些吧!(第二辑)中,给大家初步介绍了一下Expression Evaluator验证组件.那里只是概述了一下,并没有对其使用和强大功能做 ...
- SubSonic3.0插件分页查询速度测试
使用SubSonic3.0一段时间了,一直都想找机会测试一下各种查询分页速度,对比一下插件的查询效率到底怎么样,所以昨天写好了测试程序,准备好1K.1W.10W.50W和100W记录的数据表,早上详细 ...
- spring源码分析之定时任务Scheduled注解
1. @Scheduled 可以将一个方法标识为可定时执行的.但必须指明cron(),fixedDelay(),或者fixedRate()属性. 注解的方法必须是无输入参数并返回空类型void的. @ ...
- jQuery中的Sizzle引擎分析
我分析的jQuery版本是1.8.3.Sizzle代码从3669行开始到5358行,将近2000行的代码,这个引擎的版本还是比较旧,最新的版本已经到v2.2.2了,代码已经超过2000行了.并且还有个 ...