AWS App Mesh
Cloud service · AWS · Updated

AWS App Mesh

In short

AWS App Mesh is a service mesh that provides application-level networking to standardize how your microservices communicate, offering end-to-end visibility and control for managing traffic and ensuring high availability across your applications.

Cloud Services Hub →

5 key features of AWS App Mesh

AWS App Mesh is a service mesh that provides end-to-end visibility, fine-grained control, advanced observability, enhanced security through encryption, and platform agnosticism for applications running on AWS.

01
Service Mesh

AWS App Mesh standardizes how your services communicate, giving you end-to-end visibility and helping to ensure high-availability for your applications.

02
Fine-Grained Control

Provides precise control over traffic routing, including A/B testing, blue/green deployments, and canary rollouts, enabling safer updates and deployment strategies.

03
Observability

Integrated with AWS CloudWatch, App Mesh offers rich metrics and logging capabilities that allow for detailed monitoring and real-time analysis of your application's health and performance.

04
Security

Enhances the security of your application by ensuring all traffic is encrypted using TLS, thereby protecting data in transit across your infrastructure.

05
Platform Agnostic

Supports applications running on Amazon EC2, Amazon ECS, Amazon EKS, and Kubernetes on AWS Cloud, providing flexibility across your infrastructure.

Where AWS App Mesh is used

AWS App Mesh is primarily used for simplifying microservices communication, enabling canary deployments, facilitating cross-account meshes, enhancing observability and monitoring, and automating service discovery.

  1. 01
    Microservices Communication

    AWS App Mesh simplifies the communication and management of microservices, allowing developers to control how services within an application share data with each other without needing to manage complex networking infrastructure.

  2. 02
    Canary Deployments

    Leverages AWS App Mesh for conducting canary deployments, enabling users to slowly roll out new versions of a service by directing a small amount of traffic to the new version and gradually increasing it, thus minimizing the risk of introducing bugs.

  3. 03
    Cross-Account Service Mesh

    Facilitates the setup of a service mesh that spans across multiple AWS accounts, enabling large enterprises to manage and operate their services more effectively while maintaining security and isolation between teams or divisions.

  4. 04
    Observability and Monitoring

    Improves service observability by providing detailed insights into the performance and health of services within the mesh. It integrates with AWS monitoring tools like CloudWatch, allowing for real-time metrics, logs, and tracing capabilities to troubleshoot issues efficiently.

  5. 05
    Service Discovery

    Automates the process of service discovery within the mesh, removing the need for manual configuration and updating of service endpoints. This ensures that microservices can easily find and communicate with each other, reducing latency and increasing the reliability of applications.

How AWS App Mesh is priced

AWS App Mesh pricing includes a pay-as-you-go model based on data processed by Envoy proxies and any associated data transfer costs.

Pay-as-You-Go

With AWS App Mesh, you pay for what you use without upfront fees or commitments. The pricing is based on the amount of data processed by your Envoy proxies and the management and control metrics that App Mesh generates.

Data Transfer Costs

Charges for AWS App Mesh are also inclusive of the data transfer costs, which are based on the amount of data transferred out of the App Mesh proxies to the internet, as well as transfers between proxies and services within the AWS cloud.

Services AWS App Mesh works with

Amazon EC2Amazon EC2

App Mesh can be used to manage traffic for applications running on Amazon EC2 instances.

Amazon CloudWatchAmazon CloudWatch

App Mesh’s Envoy proxies expose Prometheus metrics that CloudWatch Container Insights can collect, including request counts, errors, and latency. Envoy access logs can also be sent to CloudWatch Logs for troubleshooting.

Amazon Elastic Container Service (Amazon ECS)Amazon Elastic Container Service (Amazon ECS)

App Mesh uses the Envoy sidecar and proxy configuration in an ECS task definition to route application traffic through the mesh. An ECS service can represent an App Mesh virtual node, so the mesh can direct requests to its tasks.

Amazon Elastic Kubernetes Service (Amazon EKS)Amazon Elastic Kubernetes Service (Amazon EKS)

The App Mesh controller for Kubernetes translates mesh custom resources into App Mesh configuration and can inject Envoy sidecars into selected EKS pods. This lets teams manage mesh routing alongside their Kubernetes deployments.

Amazon EventBridgeAmazon EventBridge

App Mesh API calls recorded by CloudTrail can be matched by EventBridge rules. For example, a rule can trigger a review workflow when someone deletes a mesh route.

Amazon Managed Service for PrometheusAmazon Managed Service for Prometheus

The Prometheus metrics exposed by App Mesh’s Envoy proxies can be scraped by a collector and written to an Amazon Managed Service for Prometheus workspace. Teams can then query request rates, errors, and latency across mesh workloads.

Amazon Route 53Amazon Route 53

App Mesh virtual nodes can use DNS service discovery to resolve backend addresses from Route 53 records, including records in a private hosted zone. Envoy uses the returned addresses to reach instances of the service.

AWS Certificate Manager (ACM)AWS Certificate Manager (ACM)

App Mesh can reference an ACM certificate on a virtual node or virtual gateway listener. Envoy presents that certificate when accepting TLS connections on the listener.

AWS Cloud MapAWS Cloud Map

App Mesh virtual nodes can use an AWS Cloud Map service to discover their backend instances. Envoy can then route requests to registered endpoints as tasks or pods are added and removed.

What is AWS App Mesh

2 min read

AWS App Mesh is an advanced service designed by Amazon Web Services to simplify and manage communications and networking for microservices, offering developers the tools necessary for high visibility and control. As applications grow more complex, dividing into smaller, reusable components, known as microservices, has become a staple in modern application design. While this architecture promotes scalability and faster development, it also introduces challenges in managing the communication between these distributed services. This is the problem AWS App Mesh aims to solve, providing a managed service mesh that allows any application running on AWS to be easily monitored and controlled. 

At its core, AWS App Mesh uses a service mesh framework that works by inserting a proxy inside each service, known as a sidecar proxy. These proxies intercept and control all inbound and outbound network traffic for the microservices. This model enables fine-grained control and visibility into each microservice in the application, without requiring changes to the microservice code itself. It allows developers to implement consistent communication policies, such as retries, timeouts, and circuit breaking across all services, ensuring that the application remains robust and resilient. 

One of the key benefits of AWS App Mesh is its deep integration with other AWS services. For instance, it can be seamlessly integrated with Amazon Elastic Kubernetes Service (EKS), Amazon Elastic Container Service (ECS), and Amazon EC2, among others. This compatibility simplifies the process of deploying and managing microservices across a variety of AWS services and infrastructure types. Moreover, AWS App Mesh supports dynamic configuration updates, which means that service communication behaviors can be changed on-the-fly without the need for redeployments or restarts, facilitating an agile and flexible development environment. 

AWS App Mesh elevates observability across microservices, offering detailed insights into the performance and interactions of the services. By leveraging the detailed metrics, logs, and traces provided, developers can pinpoint issues quickly, understand dependencies, and make informed decisions to optimize application performance and reliability. This level of insight is critical for maintaining high availability and delivering a smooth, uninterrupted user experience. 

In conclusion, AWS App Mesh represents a pivotal tool for teams adopting a microservices architecture within the AWS ecosystem. By abstracting the complexity involved in service-to-service communication, providing out-of-the-box observability, and ensuring consistent application of policies across services, it empowers teams to focus on developing business logic rather than wrestling with networking challenges. As more companies move towards distributed systems, the utility of AWS App Mesh in ensuring these systems are manageable, scalable, and observable becomes increasingly clear, making it a vital component of modern cloud-native application development.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.