Chapter 8. Introducing OWIN: writing and testing OWIN middleware

This chapter covers

  • Handling concerns that cut across several microservices
  • Understanding OWIN, OWIN middleware, and OWIN pipelines
  • Writing OWIN middleware
  • Testing OWIN middleware and an OWIN pipeline

When you’re implementing a system of microservices, some concerns cut across the entire system. These are the things you need every microservice to do, and they’re often related to keeping the system healthy in production:

  • Monitoring
  • Logging errors, requests, performance, and so on
  • Security
  • Policies related to technologies you use in many microservices—for example, handling database connections

All of these lend themselves well to being implemented as OWIN middleware. ...

Get Microservices in .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.