Book Image

MASTERING NSERVICEBUS AND PERSISTENCE

By : Richard L Helton
Book Image

MASTERING NSERVICEBUS AND PERSISTENCE

By: Richard L Helton

Overview of this book

Table of Contents (15 chapters)
Mastering NServiceBus and Persistence
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Storage patterns


Here is a very important chart that we will continuously refer to:

The type is the various persistence storage properties that can be persisted. For instance, when performing publish/subscribe messaging, there is subscription information that needs to be saved to a database that details the subscribers and the message types that they are listening for in their queues.

We can have various configurations for these persistence stores: InMemory, RavenDB, NHibernate and MSMQ. The following bullet list provides a brief explanation of these stores:

  • InMemory: This refers to the data that is persisted only to the local memory of the NSB service. This also means that when a service is stopped or restarted, the data is no longer saved. A reboot will cause the data to disappear.

  • RavenDB: This refers to the data that is persisted to a Raven database. RavenDB is a document-oriented NoSQL database. Regardless of a reboot, the data in RavenDB will be persisted. It uses JSON documents for...