Introduction
Middleware is a software pattern that allows you to intercept and modify the processing of messages in a chain. It is a powerful tool for customizing the behavior of a system and adding additional functionality, such as logging, retries, deadlettering, backoffs, and tracing.
In the KP library, every feature is implemented as a middleware. This means that you can add or remove features by adding or removing middlewares from the middleware chain.