Extending The Message Pipeline With Masstransit Middleware: Roland Guijt
Extending The Message Pipeline With Masstransit Middleware: Roland Guijt
Roland Guijt
INDEPENDENT SOFTWARE DEVELOPER AND TRAINER
@rolandguijt www.rmgsolutions.nl
Module
Overview Middleware and pipeline
Composition of middleware
Circuit breaker
Rate limiter
Latest filter
Used to process messages
Consist of asynchronous middleware
MassTransit Added
middleware middleware
Probe context
Composition of Middleware (1/3)
public class MyFilter<T> : IFilter<T>
where T : class, PipeContext
{
public void Probe(ProbeContext context)
{
//Manipulate probe context
}
Timeout Exception
Circuit breaker
Timeout
Exception
Rate Limiter
100 messages
per second
//class level
private ILatestFilter<ConsumeContext> latestContext;