Skip to content

Add policy to determine compression/encryption per message type #43

@eben-roux

Description

@eben-roux

Currently compression and encryption is either on or off per endpoint. It may be useful to specify different algorithms per message type; or leave empty if no algorithm is applicable.

This may work more-or-less along the same lines as the routing:

<compression>
    <algorithm name="gzip">
        <add specification="StartsWith" value="Shuttle.Messages1" />
    </algorithm>
    <algorithm name="deflate">
        <add specification="TypeList" value="DoSomethingCommand" />
    </algorithm>
</compression>

The same would apply to encryption.

Perhaps an ICompressionPolicy would be useful with the DefaultCompressionPolicy making use of the application configuration as specified above.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions