Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

AWS's performance testing service X-Ray (APM)

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Trend of development:

With the popularity of micro services and Serverless (Lambda) in recent years, the original system can be split into more details according to business, personnel or business architecture, allowing developers to focus more on their own responsibility for micro services or Serverless modules, while using DevOps to manage processes, which can improve the rapid iteration of the business. Although micro-service or Serverless can indeed improve the continuous service and reliability of the business, the business complexity, management difficulty and management cost increase. How to do business troubleshooting, especially performance and stability is the concern of many enterprise development and operation and maintenance teams. AWS provides an easy-to-use and visual service X-Ray, with the help of AWS X-Ray. Developers can easily analyze their production behavior and distributed applications with end-to-end tracking capabilities. You can use X-Ray to identify performance bottlenecks, edge condition errors, and other problems that are difficult to detect. X-Ray supports various types or sizes of development or production applications, from simple asynchronous event calls and three-tier Web applications to complex distributed applications built using a micro-service architecture. This allows developers to quickly find and resolve problems in their applications and improve the end-user experience of their applications.

Function introduction:

X-Ray can be well integrated with the popular technology of AWS in recent years (ECS/Lambda, etc.), especially Lambda, which may become the mainstream technology in the future. It can provide visualization services such as data tracking, data trajectory acquisition and performance analysis. The following is an introduction to the application of X-Ray, which is commonly used now and in the future. The basic technology for API is Lambda, and the tool service for optimizing Lambda and business code is X-Ray. We use an example to illustrate how API can help development and OPS teams improve their business experience.

1) Analysis of X-Ray 's request for Python for Lambda

Python on AWS Lambda-enables X-Ray for the Lambda function configuration to analyze incoming requests. Add X-Ray SDK for Python to analyze the AWS SDKs, HTTP, and SQL clients.

There are multiple AWS services that provide X-Ray integration. Integration services provide different levels of integration, including sampling and adding headers to incoming requests, running X-Ray daemons, and automatically sending trace data to X-Ray.

 active Analysis-samples and analyzes incoming requests.

 passive Analysis-analyzes requests that have been sampled by other services.

 request tracking-add a trace header to all incoming requests and propagate it downstream.

 tools-run the X-Ray daemon to receive fragments from the X-Ray SDK.

Business example configuration:

1) API-based business architecture diagram:

 uses AWS X-Ray to detect response bottlenecks in the service-free architecture workflow, increasing its uptime by 70 percent.

 uses X-Ray 's log aggregator and visual view to find lambda that takes a long time to execute, and uses the details feature of X-Ray to check the CloudWatch log of the lambda.

2) configure X-Ray

Configure X-Ray integration on the AWS Lambda function

Open the AWS Lambda console

Select your function

Select Configuration, and under debugging and error handling, select enable activity tracking

Switch to X-Ray 's visual dashboard

Conditional screening

Problem positioning

As can be seen from the above figure, the business function of lambda itself is too complex to call frequently, and the delay for lambda to read the database is too high.

After rewriting lambda and optimizing the database, use X-Ray service mapping to track and verify that updates get the desired performance improvement

As can be seen from the above examples, X-Ray is a very good service, which can help the development and operation and maintenance team save a lot of business troubleshooting time and quickly improve the business experience.

[about Bosiyun]

As a professional cloud computing service enterprise, Bosiyun provides operational services on AWS: including architecture consulting services, migration services, cloud security integration services, hybrid cloud management services, big data services and DevOps services. At present, Bosiyun has obtained manufacturer certification in big data, DevOps, architecture, database and operating system, and has branches in Shanghai, Nanjing, Hangzhou, Wuhan and other places. In order to innovate the service model and lead the development of IT service industry, Bosiyun will continue to invest resources to carry out the research and development of intelligent hybrid cloud management platform and map database.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report