Coder Social home page Coder Social logo

dmps's Introduction

DMPS

分布式管理系统, 包括日志收集,消息订阅,SOA,集群管理,性能数据监控 配置文件 Event.Bindings.config

<eventProvider>
	<queues>
		<queue id="DMPHubEvent" class="DMPSystem.Core.EventBus.Utilities.QueueContext,DMPSystem.Core.EventBus">
			<property name="appRuleFile" ref="rule"/>
			<property name="dataContextPool" value="event_sample">
				<map name="RabbitMq">
					<property value="guest:[email protected]::test"/>
				</map>
				<map name="MsMq"></map>
				<map name="PushEvent"></map>
			</property>
			<property name="connectTimeout" value="120"/>
			<property name="CunsumerNum" value="5"/>
			<property name="UseRetryNum" value="5"/>
		</queue>
	</queues>
</eventProvider>

push publisher:

EventContainer.GetInstances<IEventPublisher>("PushEvent").Publish(new ChanageStateEvent() { UserID = manager.UserID });

rabbitmq publisher:

EventContainer.GetInstances<IEventPublisher>("DMPHubEvent.RabbitMq").Publish(new ChanageStateEvent() { UserID = manager.UserID });

UseRateLimit 每分钟消息消费数限定在多少之内
UseRetryNum 消息消费失败后重试次数,每次间隔1分钟
增加注册消费者模块注册的方法,这样就不需要依赖Autofac
EventContainer.RegisterConsumeModule(params Type[] types)

dmps's People

Contributors

dorisoy avatar fanliang11 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.