What is new in RavenDB 3.5Filters & transformers with RavenDB Replication

time to read 1 min | 166 words

In the previous post, I introduced RavenDB Collection Specific Replication. This allows you to filter which collections you’ll get to replicate.

The next step is to apply filters and transformers along the way. For example, like so:


As you can see, the transformation script allows us to modify the outgoing data, in this case, to hide the email address.

This feature is primarily intended for data replication back to staging / development environment, where you have the need to have the data, but can’t expose some of it outside.

It can also be used to modify details going to slave databases so we’ll have per database values (for example, striping details that are not relevant for a particular tenant).

Like Collection Specific Replication, this replication destination will not be considered to be a failover target.

More posts in "What is new in RavenDB 3.5" series:

  1. (12 Aug 2015) Monitoring support
  2. (11 Aug 2015) Monitoring active I/O operations
  3. (10 Aug 2015) Filters & transformers with RavenDB Replication
  4. (06 Aug 2015) Collection Specific Replication
  5. (15 Jul 2015) Exploring data in the dark
  6. (14 Jul 2015) My thread pool is smarter
  7. (10 Jul 2015) Smuggling data across servers