liveBook · Manning

Infrastructure resource

As explained in Building Distributed Applications that Work

An infrastructure resource is a supporting component, such as a database, cache, or message broker, on which an application depends.

An infrastructure resource is a supporting component that an application service depends on, such as a database, distributed cache, or message broker. In an online shop, the catalog API needs a database and cache, while checkout publishes messages to a broker. These components must run alongside the services that use them. section 1.0

Aspire’s AppHost provides a code-first place to declare services, infrastructure resources, and their relationships. Aspire can then start resources together, supply connection information, coordinate dependencies, and show resource state and telemetry in a shared dashboard. The services remain independent applications. section 1.0

Infrastructure components can be connected to an Aspire application in two ways:

  • Use Docker containers, such as a Keycloak container for security infrastructure. section 2.0
  • Use Aspire integration libraries, including a prebuilt Redis integration or a custom integration library. section 2.0

Moving an existing application to Aspire can also mean moving its databases and message brokers into the Aspire model. Existing components can be converted to Aspire integrations while their production versions remain intact. section 10.0

How Building Distributed Applications that Work covers it

How deep it goes
Explains resource modeling and container-versus-integration options; defers security mechanisms and protocols.
Examples
Uses an online shop’s database, distributed cache, and message broker, alongside Keycloak and Redis integration examples.
What it assumes
Assumes .NET development and introduces Docker container fundamentals before container-based integration.
What you can do after
Apply it via Aspire AppHost and integrations to connect supporting components, or move existing components while preserving production versions.
How it connects
Connects AppHost, Docker containers, Aspire integrations, service discovery, and telemetry.

Also explained in

Compare how 3 books explain infrastructure resource →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Distributed Applications that Work. The section links point to the parts of the book it draws on.