Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 2.78 KB

connect-apps.md

File metadata and controls

57 lines (37 loc) · 2.78 KB
title description services author ms.service ms.topic ms.date ms.author
Connect applications in Azure Container Apps
Learn to deploy multiple applications that communicate together in Azure Container Apps.
container-apps
craigshoemaker
azure-container-apps
conceptual
07/23/2024
cshoe

Connect applications in Azure Container Apps

Azure Container Apps exposes each container app through a domain name if ingress is enabled. You can expose ingress endpoints either publicly to the world or to the other container apps in the same environment. Alternatively, you can limit ingress to only other container apps in the same environment.

Application code can call other container apps in the same environment using one of the following methods:

  • default fully qualified domain name (FQDN)
  • a custom domain name
  • the container app name, for instance http://<APP_NAME> for internal requests
  • a Dapr URL

Note

When you call another container in the same environment using the FQDN or app name, 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

Location

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]

Dapr location

Developing microservices often requires you to implement patterns common to distributed architecture. Dapr allows you to secure microservices with mutual Transport Layer Security (TLS) (client certificates), 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.":::

Call a container app by name

You can call a container app by doing by sending a request to http://<CONTAINER_APP_NAME> from another app in the environment.

Next steps

[!div class="nextstepaction"] Get started