PubSub Messaging with NService Bus Bernard Kowalski Microdesk
Pub/Sub Messaging with NService. Bus Bernard Kowalski, Microdesk Inc email: bkowalski@microdesk. com
PART I – Introduction and Basic Concepts of NService. Bus 1. What is NService. Bus? 2. Transport – MSMQ 3. Messaging models 4. Endpoint configuration 5. Generic host 6. Define and send a message 7. Handling a message 8. Sagas 9. Unit testing 10. Other NService. Bus processes PART II - Code Examples 1. Simple send message – configuration 2. Pub/Sub 3. Saga PART III - Discussion
What is NService. Bus ? www. nservicebus. com
Message transport - MSMQ Durable and Transactional
Messaging models: 1. Store and Forward 2. Request/Response 3. Publish/Subscribe
Store & Forward Messaging
Request / Response
Publish / Subscribe
Publish / Subscribe
Endpoint configuration
Endpoint configuration
Endpoint configuration
Generic Host
Generic Host NService. Bus. Host. exe
Generic Host
Generic Host Three built in configuration options: 1. As. A_Client 2. As. A_Server 3. As. APublisher
Generic Host
Define and send a message
Define and send a message
Handling a message
Sagas
Unit Testing
Other NService. Bus Processes • • Distributor Gateway Proxy Timeout
Distributor http: //www. nservicebus. com/
Gateway http: //www. nservicebus. com/
Proxy No Proxy Site A Site B Client Remote Server Client Hash(MSG) http: //www. nservicebus. com/
Proxy Client Site B Site A Client Proxy Client http: //www. nservicebus. com/ Remote Server
Timeout http: //www. exaclair. com/
PART II – Demo Application
PART III – Discussion
References : 1. http: // www. nservicebus. com 2. http: //tech. groups. yahoo. com/group/nservicebus/
- Slides: 31