GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing learn.microsoft.com — Ambassador Pattern - Azure Architecture Center Note Access to this page requires authorization. You can try signing in or changing directories. Access to this page requires authorization. You can try changing directories. Ambassador patternCreate helper services that send network requests on behalf of a consumer service or application. Think of an ambassador service as an out-of-process proxy that's colocated with the client. Use the Ambassador pattern to offload common client connectivity tasks like monitoring, logging, routing, security like Transport Layer Security (TLS), and resiliency patterns in a language-agnostic way. Extend the networking capabilities of legacy applications, or other applications that are difficult to modify, by using the Ambassador pattern. Specialized teams can also use the Ambassador pattern to implement those features. Context and problemResilient cloud-based applications require features like circuit breaking, routing, metering and monitoring, and network-related configuration updates. If the development team doesn't maintain the code or can't easily modify it, it might be difficult or even impossible to update legacy applications or existing code libraries to add these features. Network calls might also require substantial configuration for connection, authentication, and authorization. When multiple applications use these calls across different languages and frameworks, you must configure the calls separately for each instance. A central team within your organization might need to manage network and security functionality. With a large code base, it can be risky for that team to update unfamiliar application code. SolutionPut client frameworks and libraries into an external process that acts as a proxy between your application and external services. To provide control over routing, resiliency, and security features and to avoid host-related access restrictions, deploy the proxy on the same host environment as your application. Use the ambassador pattern to standardize and extend instrumentation. The proxy can monitor performance metrics, like latency or resource usage, in the same host environment as the application. You can manage features that are offloaded to the ambassador independently of the application. You can update and modify the ambassador without disturbing the application's legacy functionality. Separate, specialized teams can also implement and maintain security, networking, or authentication features that have been moved to the ambassador. You can deploy ambassador services as a sidecar to accompany the life cycle of a consuming application or service. Alternatively, if multiple separate processes on a common host share an ambassador, you can deploy it as a daemon or Windows service. If the consuming service is containerized, create the ambassador as a separate container on the same host and set up the appropriate links for communication. Problems and considerationsConsider the following points when you decide how to implement this pattern:
When to use this patternUse this pattern when:
This pattern might not be suitable when:
Workload designEvaluate how to use the Ambassador pattern in a workload's design to address the goals and principles covered in the Azure Well-Architected Framework pillars. The following table provides guidance about how this pattern supports the goals of each pillar.
If this pattern introduces trade-offs within a pillar, consider them against the goals of the other pillars. ExampleThe following diagram shows an application making a request to a remote service via an ambassador proxy. The ambassador provides routing, circuit breaking, and logging. It calls the remote service and then returns the response to the client application. In containerized environments, this ambassador would run as a sidecar container next to the application container. In noncontainerized environments, you would implement it as a local process or Windows service on the same host. Next stepFeedbackWas this page helpful? NoAdditional resources
| ||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |