In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
No server preparation:
In the past two years, no server is a hot topic in software development. AWS leads this technology and is constantly improving, and each cloud vendor has its own technical standard, so it seems almost impossible to do seamless migration before each cloud vendor, but I believe that there may be a third-party seamless docking or unified standard for the innovation of this technology in the future, and we look forward to this day.
Because no service has the following outstanding advantages, such as: 1. To achieve rapid business online, 2. No need for operation and maintenance personnel to maintain basic resources, reduce operation and maintenance costs, 3. 5%. System-level security is higher, 4. Reduce development costs, 5. 5%. Suitable for micro-service framework, attracted by these advantages and recommended by big cloud vendors, many users will try to migrate their original On-prem business to Lambda by refactoring. These attempts must first require users' personnel to continue to split into Function on the basis of micro-services and make the business stateless.
Business evolution figure 1
From the original giant business Refactor to Function, the requirements for developers are getting higher and higher, requiring developers to split the business into fine-grained ones to meet the requirements of this new technology.
Practice sharing:
As the customer's original application in On-premises has been unable to meet the growing expansion of business, the original application needs to be refactored and uploaded to the cloud. Customers do not have highly skilled architects or developers, and almost all of them are junior outsourcers. After our engineers assisted the customer's outsourcing staff to do a Python-based Lambda Demo test, their outsourcing personnel began to use SpringBoot to reconstruct the original application and upload it to the cloud with the help of Lambda technology. However, at a certain stage, they found that this technology needed very professional technical personnel to fully master, and finally had to give up the use of Lambda and return to EC2 deployment. The following is a design diagram of the customer's business architecture that has been deleted:
Business Architecture figure 2
1) Business and personnel
This new technology requires that developers must have a certain ability of micro-services, be able to split applications, and be able to solve some shortcomings of the new technology through business code, but also requires developers to fully master the original business logic. When the new technology is not perfect, not all business scenarios are suitable for refactoring to Serverless services. This customer is as follows:
Developers and architects do not know enough about the business logic to be split, but on the surface, the developers' code ability is not high, and the customer's business is heavy and continuous trading e-commerce platform customers' testing process is not perfect.
Timeout error log figure 3
2) Technical selection:
In the process of technology selection, one or two personnel must have a certain mastery of a certain technology, conduct a large number of tests and pre-research in the early stage, and fully grasp the shortcomings and optimization of this technology. The emergence of Lambda technology is not long, there must be some imperfections, so developers are required to have a grasp of these imperfections, and be able to solve the shortcomings of Lambda through other technical means to meet the requirements of business continuous service.
1. Cold start time
two。 Is the development language appropriate?
3. Request concurrency and memory configuration capacity limit of Lambda
4. Timeout time of each service of AWS
5. The problem of rebooting after the Lambda memory limit is reached
6. Can using Lambda warm-up solution meet future business expansion?
7. Can the CI/CD function be integrated after microservice?
Summary of practice:
After experiencing the above user experience, users gradually know that some businesses need to have certain capabilities before they can try, instead of being in a hurry, they need to listen to the advice of more professionals and complete the business migration step by step, first from simple to complex, from Rehost to Refactor, and then to Refactor. If you want Refactor, you must pass a large number of verification tests. Here are some suggestions after experiencing this case:
1. Lambda is suitable for lightweight business scenarios.
two。 Do enough cold start time evaluation and test
3. Be able to split the business more finely and write the business in Function
4. Master and test the limits of each AWS service (e.g. API gateway's Timeout 20 seconds, Lamdba's memory limit 3GB, etc.)
5. Choose a lighter development language (e.g. Nodejs/Python, etc.) to minimize the size of the deployment package
6. Be very proficient in your own business
7. Have senior development engineer or above
8. Use perfect monitoring to optimize Function continuously
Refactor is the most advanced and complex way to migrate, and it is best to have professional assistance and guidance to avoid repeated cost waste. It is recommended that if the customer's business does need refactoring, it must be verified by a large number of functional and performance tests. If there are any mistakes in this article, please correct them. Thank you! )
Refer to the learning address:
Https://blog.csdn.net/j01G58UC80251/article/details/78591424
Https://www.jeremydaly.com/lambda-warmer-optimize-aws-lambda-function-cold-starts/
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.