chapter two
2 Managing infrastructure components with containers and integrations
This chapter covers
- Understanding the fundamentals of Docker containers
- Integrating a Keycloak Docker container with Aspire to enable single sign-on (SSO) security
- Understanding Aspire integrations and their benefits over raw Docker containers
- Adding a prebuilt Aspire integration for Redis to an application
- Building a custom Aspire integration library from scratch
In a real-life enterprise-grade application, services need to connect to various infrastructure components, such as databases and message brokers. In this chapter, we discuss two ways infrastructure components can be wired up in an Aspire application:
- By using Docker containers
- Via the Aspire integration libraries
Most enterprise-grade systems require security, and the e-commerce application we're building is no exception. Security is especially important in these kinds of applications. You absolutely don’t want anyone to steal your credit card data or make purchases on your behalf! This is why we'll build a system that allows our users to register, log in, and gain the necessary permissions to access the appropriate areas of our app.