Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

MassTransit

117 views

Published on

Early DRAFT, still work in progress
Update 2

I'm a busy and lazy guy, so it might never finish.

Published in: Software
  • Be the first to comment

  • Be the first to like this

MassTransit

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

×