Pub/Sub Messaging with NServiceBus

  • View
    46

  • Download
    1

Embed Size (px)

DESCRIPTION

Pub/Sub Messaging with NServiceBus. Bernard Kowalski, Microdesk Inc email: bkowalski@microdesk.com. PART I Introduction and Basic Concepts of NServiceBus What is NServiceBus ? Transport MSMQ Messaging models Endpoint configuration Generic host Define and send a message - PowerPoint PPT Presentation

Transcript

Slide 1

Pub/Sub Messaging with NServiceBusBernard Kowalski, Microdesk Incemail: bkowalski@microdesk.com1PART I Introduction and Basic Concepts of NServiceBus What is NServiceBus? Transport MSMQMessaging modelsEndpoint configurationGeneric hostDefine and send a messageHandling a message Sagas Unit testingOther NServiceBus processes

PART II - Code ExamplesSimple send message configuration Pub/SubSaga

PART III - Discussion

2

www.nservicebus.comWhat is NServiceBus ?

3Message transport - MSMQDurable and Transactional

4Messaging models:

Store and ForwardRequest/ResponsePublish/Subscribe5Store & ForwardMessaging

6Request / Response

7Publish / Subscribe

8

Publish / Subscribe

9Endpoint configuration

10Endpoint configuration

11Endpoint configuration

12Generic Host

13Generic HostNServiceBus.Host.exe

14

Generic Host15

Three built in configuration options:

AsA_ClientAsA_ServerAsAPublisherGeneric Host16

Generic Host17Define and send a message

18Define and send a message

19Handling a message

20Sagas

21Unit Testing

Other NServiceBus Processes

DistributorGatewayProxyTimeout

Distributor

http://www.nservicebus.com/

Gateway

http://www.nservicebus.com/Proxy

http://www.nservicebus.com/Site A

Site BClientRemote ServerHash(MSG)ClientClientClientNo ProxyProxy

Site ASite BClientRemote ServerClientClientClientProxyClient

http://www.nservicebus.com/Timeout

http://www.exaclair.com/PART II Demo Application

PART III Discussion

References:

http:// www.nservicebus.comhttp://tech.groups.yahoo.com/group/nservicebus/