狠狠撸

狠狠撸Share a Scribd company logo
MassTransit
Shengyan Cheng
What is MassTransit
? Lightweight ESB
? Open Source
? FREE (Apache 2.0)
? Easy to Learn
ESB : Enterprise Service Bus
整合異質系統和服務的機制,通常是透過消息服務和事件機制
Comparison with MQ
Feature
? 重試: 依Exception類型決定Retry機制.
? 限速: 指定一定在時間內消費者處理數量
? CircuitBreak: 提供CircuitBreak模式支援
? 異常處理: 內建額外的異常處理攔截機制
? 定時發送: 指定時間發送消息
Queue
? InMemory , RabbitMQ, AzureServiceBus
Serializer
? BinarySerializer, BsonSerializer , JsonSerializer, XmlSerializer
Comparison Summary
NServiceBUS, MassTransit, RabbitMQ, MSMQ
? 若需要商業支援: NServiceBus
? 若需要較多支援種類: Masstransit
? 若需要搭配DTC: MSMQ
? 若需要更多功能和細節控制: RabbitMQ
NServiceBus will support ActiveMQ in next version
Comparison in Github
Request and Forget Patten
Demo 1
Producer
Consumer
Consumer Handler
? Event Handle
? Exception Handle
Result
Different with RabbitMQ
Demo 2
Producer
Consumber

More Related Content

What's hot (13)

PDF
罢颈尘测补苍驳新浪微博设计谈
Cevin Cheung
?
PDF
Hantuo openstack
OpenCity Community
?
PPT
java title
lonegunman
?
PPT
Build scalable microblog qcon beijing 2010
Tim Y
?
PPT
构建基于尝补尘辫的中型网站架构
HonestQiao
?
PPT
张铁安:贵别别诲系统架构浅析
Leechael
?
PDF
构建基于尝补尘辫的网站架构
Cosey Lee
?
PDF
叠测辫补迟博客出品-服务器运维集群方法总结3
redhat9
?
PPT
高性能并发奥别产服务器实现核心内幕
ideawu
?
PDF
豆瓣网技术架构变迁
reinhardx
?
PPT
性能优化
Lu Wei
?
PPT
负载均衡
uptodate
?
罢颈尘测补苍驳新浪微博设计谈
Cevin Cheung
?
Hantuo openstack
OpenCity Community
?
java title
lonegunman
?
Build scalable microblog qcon beijing 2010
Tim Y
?
构建基于尝补尘辫的中型网站架构
HonestQiao
?
张铁安:贵别别诲系统架构浅析
Leechael
?
构建基于尝补尘辫的网站架构
Cosey Lee
?
叠测辫补迟博客出品-服务器运维集群方法总结3
redhat9
?
高性能并发奥别产服务器实现核心内幕
ideawu
?
豆瓣网技术架构变迁
reinhardx
?
性能优化
Lu Wei
?
负载均衡
uptodate
?

Viewers also liked (18)

PPTX
Facebook 2
Tara Cicora
?
DOCX
Proyecto: Enet N? 1
Mauri Angiolini
?
PPTX
Unidad 5
angiemeylin
?
DOCX
Programa de governo de Geraldo
Marcela Balbino
?
DOCX
Proyecto institucional
Facurocha195
?
PPSX
Tecnologia
casa
?
PDF
sustainable-business-mag-sunpump-solar-nov2015
SunPump Solar
?
PPTX
Day in the life of product manager
Carlos González de Villaumbrosia
?
DOCX
Prueba matemática técnico 2015
Centro de Tutorías Sigma
?
PDF
bilans_slides_publics
Lionel Ancelet
?
PPTX
Tarea de cta
Jonathan Huayta Ramos
?
PPTX
Islam in the Philippines
Mitzie Rameri
?
PDF
Business Information and ICT
Marcus9000
?
PDF
38. análisis costes del producto
Emagister
?
PPTX
IEFI Práctica Docente II
Juli Romero
?
PPTX
П?дгайний О.М.
elenasurprise
?
PPTX
Marketing B2B-les 7 affections chroniques du content marketing
Stéphanie Wailliez
?
Facebook 2
Tara Cicora
?
Proyecto: Enet N? 1
Mauri Angiolini
?
Unidad 5
angiemeylin
?
Programa de governo de Geraldo
Marcela Balbino
?
Proyecto institucional
Facurocha195
?
Tecnologia
casa
?
sustainable-business-mag-sunpump-solar-nov2015
SunPump Solar
?
Day in the life of product manager
Carlos González de Villaumbrosia
?
Prueba matemática técnico 2015
Centro de Tutorías Sigma
?
bilans_slides_publics
Lionel Ancelet
?
Islam in the Philippines
Mitzie Rameri
?
Business Information and ICT
Marcus9000
?
38. análisis costes del producto
Emagister
?
IEFI Práctica Docente II
Juli Romero
?
П?дгайний О.М.
elenasurprise
?
Marketing B2B-les 7 affections chroniques du content marketing
Stéphanie Wailliez
?
Ad

Similar to MassTransit (20)

KEY
新浪微博平台与安全架构
n716
?
PDF
企業導入微服務實戰 - updated
Paul Chao
?
PDF
廣宣學堂: 企業導入微服務實戰
Paul Chao
?
PDF
微服务自己动手做
YenChen Liu 劉晏辰
?
PDF
03.辞蝉产概览
Meng He
?
PDF
阿里云技术实践
drewz lin
?
PDF
Databases on AWS
Chien Chung Shen
?
PPT
构建可扩展的微博系统
lonegunman
?
PDF
MongoDB at Qihoo 360
MongoDB
?
PDF
搁别诲颈蝉在唯品会的应用实践.辫诲蹿
jaydenhu
?
PDF
Golang 高性能实战
rfyiamcool
?
PPTX
微服務架構 導入經驗分享 吳剛志 - Community Open Camp
Andrew Wu
?
PDF
企業導入微服務實戰 - updated
Paul Chao
?
PPTX
Kafka cluster best practices
Rico Chen
?
PPT
Large-Scale Cluster Mangement & Kubernetes Under The Hood
Lei (Harry) Zhang
?
PDF
V ds深入探究
ITband
?
PDF
主库自动切换 V2.0
jinqing zhu
?
PDF
惭测厂蚕尝自动切换设计与实现
orczhou
?
PDF
OpenStack Resource Scheduling
Guangya Liu
?
PDF
IBM Cloud Private Introduction
Guangya Liu
?
新浪微博平台与安全架构
n716
?
企業導入微服務實戰 - updated
Paul Chao
?
廣宣學堂: 企業導入微服務實戰
Paul Chao
?
微服务自己动手做
YenChen Liu 劉晏辰
?
03.辞蝉产概览
Meng He
?
阿里云技术实践
drewz lin
?
Databases on AWS
Chien Chung Shen
?
构建可扩展的微博系统
lonegunman
?
MongoDB at Qihoo 360
MongoDB
?
搁别诲颈蝉在唯品会的应用实践.辫诲蹿
jaydenhu
?
Golang 高性能实战
rfyiamcool
?
微服務架構 導入經驗分享 吳剛志 - Community Open Camp
Andrew Wu
?
企業導入微服務實戰 - updated
Paul Chao
?
Kafka cluster best practices
Rico Chen
?
Large-Scale Cluster Mangement & Kubernetes Under The Hood
Lei (Harry) Zhang
?
V ds深入探究
ITband
?
主库自动切换 V2.0
jinqing zhu
?
惭测厂蚕尝自动切换设计与实现
orczhou
?
OpenStack Resource Scheduling
Guangya Liu
?
IBM Cloud Private Introduction
Guangya Liu
?
Ad

MassTransit

Editor's Notes

  • #3: MassTransit 是 .net 的 輕量級esb solution 免費開源,可用於商品環境 相較於直接存取RabbitMQ簡化許多
  • #5: NServiceBus will support ActiveMQ in next version
  • #7: NServiceBus will support ActiveMQ in next version
  • #11: Actually , this is the result of RPC patten
  • #12: NServiceBus will support ActiveMQ in next version
  • #13: Masstransit 操作上省去了exchange 的定義宣告較為簡化 若要加上retry機制等功能,也只要加上一行
  • #14: Masstransit 部分多了exception處理