Learning NServiceBus

Learning

David BoikeAugust 2013

Calling all .NET developers suffering unreliable web services. This tutorial will teach you the stabilising force of Service Oriented Architecture using NServiceBus. Now you can build systems that automatically compensate for failure.

$23.99

$39.99

RRP $23.99

RRP $39.99

eBook

Print + eBook

Want this title & more?

$16.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782166344

Paperback136 pages

About This Book

Replace batch jobs with a reliable process

Create applications that compensate for system failure

Build message driven system

Who This Book Is For

This book is for .NET developers who are looking for ways to overcome problems related to buggy third party web service integrations, codebases that have grown into a big ball of mud, and batch jobs failure.

Table of Contents

Chapter 1: Getting on the IBus

Why NServiceBus?

Getting the code

Creating a message assembly

Creating a service endpoint

Creating a message handler

Sending a message from an MVC application

Running the solution

Summary

Chapter 2: Messaging Patterns

Commands versus events

Events

Message routing

Summary

Chapter 3: Preparing for Failure

Fault tolerance and transactional processing

Error queues and replay

Express messaging

Messages that expire

Auditing messages

Web service integration and idempotence

Summary

Chapter 4: Self-Hosting

Web app and custom hosting

Summary

Chapter 5: Advanced Messaging

Modifying the NServiceBus host

Additional bus settings

The unobtrusive mode

Message versioning

Specifying the handler order

Message actions

Unit of work

Message mutators

Property encryption

Transporting large payloads

Exposing web services

Summary

Chapter 6: Sagas

Long-running processes

Defining a saga

Finding saga data

Ending a saga

Dealing with time

Design guidelines

Unit testing

Scheduling

Summary

Chapter 7: Administration

Service installation

Profiles

Managing configurations

Monitoring

Scalability

Multiple sites

Managing RavenDB

Virtualization

Summary

Chapter 8: Where to Go from Here?

What we've learned

What next?

What You Will Learn

Bring reliability to web service integrations

Create code that automatically compensates for failure

Manage the deployment of complex software systems

Create software that can scale horizontally as well as vertically

In Detail

Web service-based systems are designed using Remote Procedure Call (RPC) techniques. This technique is effective; however, this method creates problems with scalability and reusability as fault tolerance is inherently hindered by the RPC principles. This book helps you to overcome this problem by introducing you to the principles of messaging and SOA to build scalable and reliable systems, that are easy to extend and maintain.

"Learning NServiceBus" is your essential guide to becoming a messaging guru. The book details the process of building a software system based on the SOA principles. From sending a simple message to publishing events, this book covers everything you need to know to understand and implement an SOA-based message driven systems.

"Learning NServiceBus" will teach you how to use publish/subscribe to create an Serivce Oriented Architecture. We will then look how to manage and extend that architecture. Through the course of the book, you will build reliable systems which will automatically compensate for failures. You will also learn to build complex yet testable business processes which will make batch processes seem outdated. By the end of the book, you will realize that SOA is much more than just web services.

Authors

David Boike

David Boike is a principal consultant with ILM Professional Services, with experience in building and teaching others how to build distributed systems. He is an NServiceBus Champion, official NServiceBus and RavenDB trainer, Xamarin Certified developer, and amateur beer brewer. He lives in the Twin Cities with his wife and two children.

Alerts & Offers

Series & Level

We understand your time is important. Uniquely amongst the major publishers, we seek to develop and publish the broadest range of learning and information products on each technology. Every Packt product delivers a specific learning pathway, broadly defined by the Series type. This structured approach enables you to select the pathway which best suits your knowledge level, learning style and task objectives.

Learning

As a new user, these step-by-step tutorial guides will give you all the practical skills necessary to become competent and efficient.

Beginner's Guide

Friendly, informal tutorials that provide a practical introduction using examples, activities, and challenges.

Essentials

Fast paced, concentrated introductions showing the quickest way to put the tool to work in the real world.

Cookbook

A collection of practical self-contained recipes that all users of the technology will find useful for building more powerful and reliable systems.

Blueprints

Guides you through the most common types of project you'll encounter, giving you end-to-end guidance on how to build your specific solution quickly and reliably.

Mastering

Take your skills to the next level with advanced tutorials that will give you confidence to master the tool's most powerful features.

Starting

Accessible to readers adopting the topic, these titles get you into the tool or technology so that you can become an effective user.

Progressing

Building on core skills you already have, these titles share solutions and expertise so you become a highly productive power user.