title | description | services | author | ms.service | ms.topic | ms.date | ms.author | ms.custom |
---|---|---|---|---|---|---|---|---|
Connect applications in Azure Container Apps |
Learn to deploy multiple applications that communicate together in Azure Container Apps. |
container-apps |
craigshoemaker |
container-apps |
conceptual |
11/02/2021 |
cshoe |
ignite-fall-2021, event-tier1-build-2022 |
Azure Container Apps exposes each container app through a domain name if ingress is enabled. Ingress endpoints can be exposed either publicly to the world or internally and only available to other container apps in the same environment.
Once you know a container app's domain name, then you can call the location within your application code to connect multiple container apps together.
Note
When you call another container in the same environment using the FQDN, the network traffic never leaves the environment.
A sample solution showing how you can call between containers using both the FQDN Location or Dapr can be found on Azure Samples
A container app's location is composed of values associated with its environment, name, and region. Available through the azurecontainerapps.io
top-level domain, the fully qualified domain name (FQDN) uses:
- the container app name
- the environment unique identifier
- region name
The following diagram shows how these values are used to compose a container app's fully qualified domain name.
:::image type="content" source="media/connect-apps/azure-container-apps-location.png" alt-text="Azure Container Apps container app fully qualified domain name.":::
[!INCLUDE container-apps-get-fully-qualified-domain-name]
Developing microservices often requires you to implement patterns common to distributed architecture. Dapr allows you to secure microservices with mutual TLS, trigger retries when errors occur, and take advantage of distributed tracing when Azure Application Insights is enabled.
A microservice that uses Dapr is available through the following URL pattern:
:::image type="content" source="media/connect-apps/azure-container-apps-location-dapr.png" alt-text="Azure Container Apps container app location with Dapr.":::
[!div class="nextstepaction"] Get started