sql server - Compressing headers -


we're using nservicebus 4.6 sql server transport (2012). sql server database set high availability using availability groups.

our dbas complaining amount of "churn"a have happening in transport database, , load placing on our wan.

we using xml serialization, started looking @ other serialization options available (would favour json it's still readable). however, in starting this, i've realised our message bodies typically between 600 , 1000 bytes, whereas our message headers regularly in range of 1200 - 1800 bytes1. so, if achieve great saving in terms of body sizes, it's not going produce large scale improvements i'm looking for.

the question

given, understand it, headers don't have readable when messages stored in sql server database, there way can compress them?

or other strategies reduce amount of data we're adding , deleting database? (whilst staying on nsb 4.6 now)


1we adding few custom headers ourselves metadata doesn't belong in message classes.

asince every message @ least goes queue table, removed table , placed in audit table, before later remove older audit entries, , we've got lot of messages, we're putting lot in sql server transaction log.

you can compress , decompress messages content via mutator. mutator example based on compressing message, should easy solution part:

http://docs.particular.net/samples/messagemutators/#code-walk-through-transportmessagecompressionmutator

you can add code same headers, compressing custom attributes before writing them , decompressing them before reading them.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -