From the book
Forces
Forces
- You want centralized, common processing across requests, such as checking the data-encoding scheme of each request, logging information about each request, or compressing an outgoing response.
- You want pre and postprocessing components loosely coupled with core request-handling services to facilitate unobtrusive addition and removal.
- You want pre and postprocessing components independent of each other and self contained to facilitate reuse.