When new retail meets serverless

Serverless 2021-08-09 16:03:24
new retail meets serverless


A retailer is a leading enterprise in the super industry , Its main business covers shopping centers 、 The hypermarket 、 The supermarket 、 Standard supermarket 、 Boutique supermarket 、 Convenience stores, unattended smart stores and other retail formats , Involving Omni channel retail 、 Warehousing logistics 、 Restaurant 、 Consumer service 、 Data services 、 Financial business 、 Cross border trade, etc . In order to continuously support the rapid and stable development of business , After it's fast up in the cloud , Transform the core business into the whole Serverless The middle platform mode of Architecture , Using function calculation + API gateway + Form storage OTS As the core of computing network storage , Flexible support for daily and big peak valley resources , Easy support 618/ double 11/ double 12 Great promotion .

Why do traditional enterprises need more attention Serverless

In order to reduce the cost of technology development 、 Improve operation and maintenance efficiency , More and more enterprises choose to use Serverless As a base for R & D , Develop your business . stay CNCF Serverless According to the Research Report , A large number of domestic developers are moving the traditional architecture to Serverless On the migration .Serverless The emergence of the digital transformation of traditional enterprises has brought more opportunities .

Today, , A large number of cutting-edge technical talents prefer to work in Internet companies , Traditional enterprises are faced with a large number of rigid needs for technology upgrading and restructuring , There is a demand for cloud native technology between talent gap and technology upgrading .Serverless The emergence of the R & D personnel in the budget 、 Lack of operation and maintenance experience . In the case of helping enterprises to cope with the business peak , R & D personnel can easily handle , It not only greatly reduces the threshold of R & D technology , And it has greatly improved R & D efficiency . For developers , Online alert 、 Flow observation and other tools are available , The key is to eliminate the burden of operation and maintenance , It has provided the technology dividend for the vast number of developers . For traditional enterprises ,Serverless It shortens the distance between Internet companies and traditional enterprises in terms of technological competitiveness .

From the upper cloud to the primary cloud

2016 Years later , With the rapid development of domestic public cloud , It's irresistible to go up to the cloud in an all-round way . A famous shopping mall is in 2018~2019 During the year , The system modules in the self built computer room are gradually migrated to the public cloud , The overall architecture hasn't changed much , Therefore, the migration work is relatively smooth .

There are some improvements and deficiencies after the system is fully migrated to the cloud

improvement

No longer need to care about the Internet 、 Hardware details of the operating system

For example, Alibaba cloud's ECS We will do scheduling and early warning in advance , Transfer user data and prepare multiple data for disaster , Prevent disk failure .

It's fast and easy to upgrade

For example, users use 4 Nuclear machines , When you find that your business is growing rapidly and you need to upgrade your hardware , Just make a mirror image . Like taking a disk snapshot at night , Re apply for a new machine , Then restore the snapshot , You can complete one click migration . It's a very quick way for users , It's also a good experience for developers .

The machine expansion time is greatly shortened

The above mentioned is single machine expansion , such as 4 Nuclear rise to 8 nucleus 、16G Rise to 32G Of memory . In addition, there are horizontal expansion , For example, the user trading system API Interface , With the development of business, we need to change from the original 2 The number of machines expanded to 8 Taiwan machine , In this case, the user only needs to apply for the machine , Then extend the image to different machines .

Insufficient

It's difficult to budget resources

It's impossible to predict the volume that a business can achieve when it encounters a big promotion activity , Therefore, it is impossible to accurately calculate the number of required hardware .

Horizontal expansion

Horizontal expansion has higher requirements for R & D . For example, whether the data should be stateless , If there is no state, horizontal expansion will be easier , And if it's a state , Data may need to be cached , This will involve database related issues , For example, data is out of date 、 Consistency, etc . If you don't know enough about this , It will be more difficult to do horizontal expansion .

Water level monitoring

Many developers are not perfect in water level monitoring , If the various business systems are mixed on one machine , When the water level of the machine is high , Want to quickly check the problem and timely flow control 、 Split 、 Temporary repair is particularly difficult .

Financial budget difficulties

Similar to resource budget difficulties .

High cost of hardware upgrade

To achieve the user no sense of lossless upgrade , It may involve the consistency between the processing on the connection and the database . If multiple modules need to be upgraded at the same time , We should also pay attention to the compatibility of data structures .

Database single point of failure

Many manufacturers put all the data in one database , If it is not handled properly, it may cause a single point of failure . This requires data splitting , If it's rough , You need to pay attention to transaction and lock related issues , Efficiency will be greatly reduced ; In detail , It will be difficult to do query and sort , Cause some trouble to the business implementation .

Business challenges

In the middle of a year , Due to the uncontrollable access of online business users , Too much data ,MySQL Stand alone access is broken , This caused problems with the storage database , It affects multiple systems , Caused a certain loss . Therefore, in the follow-up service transformation process , Database selection is made by MySQL Change to table storage OTS, The biggest advantage of table storage is that users don't need to care about the proportion between the number of visits and the number of machines . As long as the number of visits increases , The background will automatically expand the capacity of machines , Meet the high concurrency of data reading ; When the data concurrent request reduction is at a low peak period , The background will recycle the machine , Users no longer need to care about the number of machines and how to transfer them .

Serverless reform

1.png

For the problem of uncontrollable user traffic , Customers have introduced alicloud products “API gateway ” ,API Gateway can control and release and control traffic for different channel providers . For example, it is found that the wechat channel traffic is abnormal , With the help of API Gateway for current limiting .

In addition, calculation is also a very important problem , After exploration, customers found that alicloud function computing FC It fits its business scenario very well . For example, time to buy 、 Coupons and other activities caused a huge burst impact , When we find that the computing resources are not enough, it's definitely too late to buy a machine , The function calculation and timely expansion function can solve this problem . In addition, its data observation and abnormal alarm function , And attracted customers .

This year, 3 month , An authoritative advisory body Forrester Release 2021 First quarter FaaS Platform evaluation report , Alicloud's function computing relies on its in product capabilities 、 Security 、 Strategic vision, market size and other advantages stand out , The product capacity ranks first in the world , This is also the first time that a Chinese cloud manufacturer has entered FaaS The leadership quadrant .
2.png

After intense testing verification , Technical personnel found that the excellent performance of function computing is very suitable for their own business highly flexible member query system . from 2019 year 7 Month begins , The customer's technical team is less than 3 In months , Transfer all the original member data copies to form storage , And will all channel business's API Full migration to alicloud API The gateway does distribution , The computing business of member query service is also fully migrated to alicloud function computing .

2019 Years of double 11, Function calculation as a calculation module , Tables are stored as storage modules , Successfully help customers through the big promotion , While carrying the peak traffic, it ensures the flexibility to deal with the business . Instead of using Serverless Because of the underestimation of our business , There are some anomalies . It is precisely because the function is calculated in double 11 It's exciting for customers and technicians . After a successful promotion campaign , Customers use function calculation and table storage in all businesses !

3.png
Super overall architecture of new retailers

  • whole Serverless framework : Function calculation + API gateway + Form storage ;
  • High flexibility : Millisecond elastic expansion 、 Sufficient resource pool water level 、 High availability across zones ;
  • Agile development is free of operation and maintenance : Functional minimalist programming can focus on business innovation , No procurement and deployment costs 、 Provide complete observable ability such as monitoring and alarming .

2019 In the second half of , Alibaba cloud announced the launch of functional computing 2.0, Support reservation mode , Solve the problem of large cold start delay ; This paper introduces the single instance multi request problem , Less instances support heavy IO High concurrency type request calls ; Support custom runtime , Support one click migration tradition Web Architecture server .2.0 The emergence of functional computing in business and scale to achieve a huge upgrade .

After experiencing the test of offline scenes in the past , Customers will be the channel business and its mobile App, And online trading 、 Grab coupons regularly 、 Second kill business also all from ECS Migration to function computing 2.0, After the reservation mode is enabled and the multiple concurrent mode of single instance is adjusted , Successfully carried the flood peak discharge request which is dozens of times as usual .

4.png

5.png

Compare the above “ Time - Flow chart ” And “ Time - Delay ” Two pictures show , The impact of the sharp rise of burst traffic on the delay change caused by users is very small , From the actual user feedback, it also confirmed that the user experience is very smooth .

All the data and business goes to the cloud , It's not just the psychological pressure of R & D personnel that can be relieved , And a lot of R & D personnel to reduce the burden , So that we can do things that focus more on business logic . Functional computing allows developers to avoid managing the server infrastructure , Just write code and upload , The system will be ready to compute resources , It also provides log queries 、 Performance monitoring 、 Alarm and other functions . If it's the old model , Supermarket double 11 Great promotion , The relevant technical team couldn't sleep , Only rely on the expansion machine to support large volume of traffic and business , No one's in his mind . Now the problem of capacity expansion is left to alicloud , The water level is much higher than the limit of the customer's original reserve capacity .

This year, ,Serverless Ushering in a major upgrade . Image acceleration technology of function computing heavyweight publishing container , Container startup delay is shortened 50%-80%, Transfer the burden of image optimization originally belonging to developers to function calculation , Further help developers improve productivity , Focus on business innovation . This technology comes from the container environment with super large scale and highly complex scenes of Alibaba group , For mirror storage 、 Acceleration technology has a deep accumulation , And took on 3 Double eleven 、 12-12 、 The Spring Festival and other scenes are challenging .

meanwhile ,Serverless Application engine (SAE) Blockbuster released Java Application startup acceleration function , For the first time Alibaba Dragonwell ( Alibaba cloud open source Open JDK Long term support version ) Cold start acceleration technology 、 Multithreading acceleration technology and SAE Our own in situ upgrade strategy 、 Image preheating strategy , Realized Java The end-to-end startup speed of the application is improved 45%, The fastest way is just 15s, Multithreading performance improvement 30%.

6.png

Because of the business scenario 、 User habits change rapidly , Digital business is growing rapidly in many industries , Accelerating the development of digital business has become the inevitable choice of traditional enterprises . Cloud native is the shortest path for enterprise digitalization , More and more traditional enterprises are embracing cloud nativity , With the help of faster 、 Flexible development and delivery model , Meet the rapidly changing needs of the market , And accelerate business innovation . With the help of Serverless Ensure the success of big promotion again and again , It's the best proof of this trend .

版权声明
本文为[Serverless]所创,转载请带上原文链接,感谢
https://qdmana.com/2021/08/20210809155816013d.html

  1. HTML + CSS + JavaScript to achieve cool Fireworks (cloud like particle text 3D opening)
  2. HTML + CSS + JavaScript realizes 520 advertising love tree (including music), which is necessary for programmers to express themselves
  3. Solve the problem of Web front-end deployment server (it can be deployed online without a server)
  4. HTML + CSS + JS make wedding countdown web page template (520 / Tanabata Valentine's Day / programmer advertisement)
  5. What else can driverless minibus do besides "Park connection"?
  6. Cloud native leads the era of all cloud development
  7. NRM mirror source management tool
  8. Bring it to you, flex Jiugong
  9. Lolstyle UI component development practice (II) -- button group component
  10. Deconstruction assignment in ES6
  11. Luo 2 peerless Tang clan was officially launched. The official gave a key point, and the broadcast time was implied
  12. 20初识前端HTML(1)
  13. 当新零售遇上 Serverless
  14. 20 initial knowledge of front-end HTML (1)
  15. When new retail meets serverless
  16. [golang] - go into go language lesson 5 type conversion
  17. [golang] - go into go language lesson 6 conditional expression
  18. HTML5(八)——SVG 之 path 详解
  19. HTML5 (8) -- detailed explanation of SVG path
  20. 需要开通VIP以后页面内容才能复制怎么办?控制台禁用javascript即可
  21. Web前端|CSS入门教程(超详细的CSS使用讲解,适合前端初学者)
  22. 实践积累 —— 用Vue3简单写一个单行横向滚动组件
  23. Serverless 全能选手,再下一城
  24. What if you need to open a VIP to copy the page content? Just disable JavaScript on the console
  25. Web front end | CSS introductory tutorial (super detailed CSS explanation, suitable for front-end beginners)
  26. Practice accumulation - write a single line horizontal scroll component simply with vue3
  27. Dili Reba is thin again. She looks elegant and high in a strapless hollow skirt, and her "palm waist" is beautiful to a new height
  28. Serverless all-round player, next city
  29. The difference between MySQL semi synchronous replication and lossless semi synchronous replication
  30. Vue表单设计器的终极解决方案
  31. The ultimate solution for Vue form designer
  32. Nginx从理论到实践超详细笔记
  33. Yu Shuxin's red backless swimsuit is split to the waist and tail, with a concave convex figure and excessive color matching, and his face is white to dazzling
  34. Nginx ultra detailed notes from theory to practice
  35. 【动画消消乐|CSS】086.炫酷水波浪Loading过渡动画
  36. typecho全站启用https
  37. CCTV has another popular employee. The off-site interpretation is very professional, and the appearance ability is no less than that of Wang Bingbing
  38. [animation Xiaole | CSS] 086. Cool water wave loading transition animation
  39. Enable HTTPS in Typecho
  40. 50天用JavaScript完成50个web项目,我学到了什么?
  41. 根据JavaScript中原生的XMLHttpRequest实现jQuery的Ajax
  42. What have I learned from completing 50 web projects with JavaScript in 50 days?
  43. "My neighbor doesn't grow up" has hit the whole network. There are countless horse music circles, and actor Zhou Xiaochuan has successfully made a circle
  44. 根据JavaScript中原生的XMLHttpRequest实现jQuery的Ajax
  45. Implement the Ajax of jQuery according to the native XMLHttpRequest in JavaScript
  46. Implement the Ajax of jQuery according to the native XMLHttpRequest in JavaScript
  47. 30 + women still wear less T-shirts and jeans. If they wear them like stars, they will lose weight
  48. 数栈技术分享前端篇:TS,看你哪里逃~
  49. Several stack technology sharing front end: TS, see where you escape~
  50. 舍弃Kong和Nginx,Apache APISIX 在趣链科技 BaaS 平台的落地实践
  51. Abandon the landing practice of Kong and nginx, Apache apisik on the baas platform of fun chain technology
  52. 浪迹天涯king教你用elementui做复杂的表格,去处理报表数据(合并表头,合并表体行和列)
  53. 前端HTML两万字图文大总结,快来看看你会多少!【️熬夜整理&建议收藏️】
  54. Wandering around the world king teaches you to use elementui to make complex tables and process report data (merge header, merge table body rows and columns)
  55. 路由刷新数据丢失 - vuex数据读取的问题
  56. Front end HTML 20000 word graphic summary, come and see how much you can【 Stay up late to sort out & suggestions]
  57. Route refresh data loss - vuex data reading problem
  58. Systemctl系统启动Nginx服务脚本
  59. Systemctl system startup nginx service script
  60. sleepless