当前位置:网站首页>What has happened from server to cloud hosting?
What has happened from server to cloud hosting?
2022-07-08 00:29:00 【Tencent cloud developer community】
“ Cloud service ” It has always been a continuous tense , stay 2010 year -2017 During the year , The center of gravity of the force point is 「 Own physical construction 」 To 「IAAS Infrastructure as a service 」, All cloud manufacturers have launched network products on this basis 、 Database products 、 Storage products , Provide 「PAAS」 Level products to promote the process of going to the cloud , We call it “ Cloud service 1.0”
“ Cloud service 1.0” In essence, it is to migrate the self built physical service facilities to the service facilities provided by cloud manufacturers , And equipped with a large number of professional tools . But in the process , Inherent about the service technology architecture selected by the developer , But little intervention touches ; At present, most of the circulation is the traditional service architecture model .
What is the traditional service architecture pattern , What are the characteristics of ? Here are a few examples for you to feel :
a. Use the local file system to persist storage , Data files and application files are mixed together .
b. Running many services on the same server , such as MySQL、Redis 、Nginx And a lot of scheduled tasks .
c. Install and upgrade using a hodgepodge of scripts and manual processes .
d. The configuration is stored in a file , Usually scattered in multiple locations , And mixed with the application files .
e. The communication between processes is carried out by means of the local file system ( For example, put a file on disk , Another process to read ), instead of TCP/IP.
f. Designed to run only one instance of an application on a single server .
These features will expose many problems in the process of performing maintenance , such as :
a. Automated deployment is difficult , Although it can be realized through various tools , But there is still a lot of water space .
b. If you need to run multiple different instances of the application , It's hard to have multiple instances on the same server at the same time .
c. If the server is down , Due to the manual process, it takes a long time to recover .
d. The process of deploying a new version is basically manual , Or mostly manual , Difficult to rollback .
e. It is likely that the test environment is quite different from the production environment , Some production environment problems cannot be found during testing .
f. It's hard to scale out by adding new instances .
These problems will become increasingly prominent with the development of business , Ultimately, it consumes a lot of labor costs , Also accumulated a lot of risk factors , Even if the service facilities are in the cloud , There is a strong environment , Internal system maintenance problems always hinder and affect high-quality service .
Container technology , It avoids the problems caused by the traditional service architecture mode , As a new architecture model, it began to rise in recent years .
Container services , Is through standardization , Package the business code and its dependent environment resources into an image , Then start an instance in the server to run the image , Then you can provide the service .
For example, you work in an Internet cafe , Use the pure system of Internet cafe , You need to install the office software you need before you can start formal work , Here's an analogy. You need to carry out targeted operation and maintenance according to different service facilities under the traditional mode , Only then can we run our own business projects . Container service in this example is , You brought a hard drive ( Or a U disc ), Store your office system in it , Insert your hard drive directly into the Internet cafe , You can use the familiar system immediately .
We summarize several characteristics of container technology :
a. Easy to deploy , You can directly replace the entire old version with a new container image .
b. Automated deployment is also relatively easy , It can be completely controlled by CI To drive .
c. For rollback when deployment fails, just switch to the previous image , Very convenient .
d. Application upgrade does not need to consider the complex upgrade configuration process , You don't have to perform cumbersome steps .
e. The same container image can be fully tested in different environments , Then deploy directly to the production environment , Ensure that the test environment is completely consistent with the production environment .
f. The system is easier to recover from downtime , Because you can quickly start a new container with this application image on the new hardware resource , And attach to the same data source .
g. Developers can use containers locally , Test new features in a more realistic environment .
h. More efficient utilization of hardware resources , Multiple container applications can run on a single host .
i. Containerization supports zero downtime upgrade 、 Canary deployment 、 A solid foundation for high availability and scale out .
Container technology and Docker What is the relationship ?Docker Is a technical tool for building containers , It's popular right now . Like Android and IOS(Docker) It's the mobile terminal operating system ( Container technology ) Which is more popular , Because it's popular , So each manufacturer will adapt , So that the technical scheme can go smoothly without barriers . As we build more and more services , The same service may contain multiple container instances because of concurrency , So how to effectively manage and coordinate the location resources of multiple containers ? How to handle container to container communication ? This requires container orchestration Technology .
Kubernetes It is the most popular container arrangement technology at present , Provide API To control the execution mode and location of the container , Operation execution Docker Container and adjust workload , Solve some complex operations when adjusting the size of multiple containers deployed across multiple servers .
Let's look at the configuration required for a standard container service , It is suitable for teams who are very familiar with container choreography , Flexible configuration , Adjust according to your own needs

Wechat cloud hosting , By simplifying the complicated configuration process , Provide container services that are easy to configure and highly available ; And integrate business-related Suites , Contains a database that can automatically expand and shrink capacity , Object storage, etc , At the same time, it also provides some accumulation of wechat Service Technology , Create a safe one-stop back-end service platform with ecological characteristics .
in other words , Even if you don't have wechat related application services , You can also use wechat cloud hosting to provide services for your business , It is against brush attack , Security links have strong advantages .
Tencent cloud and Qianfeng jointly launched high-quality project courses 《 Fengyun ticketing system —— Fengyun ticket management system based on wechat cloud hosting 》 Online “ Tencent cloud developer community ”, Help you understand the complete wechat cloud hosting deployment process , Learn practical level applet development . Famous teachers in institutions teach hand-in-hand , total 3 Hours full of dry courses , Come and get the full set of courses :
《 Fengyun ticketing system —— Fengyun ticket management system based on wechat cloud hosting 》
Receive free course benefits : Tencent cloud product voucher
边栏推荐
- 51 communicates with the Bluetooth module, and 51 drives the Bluetooth app to light up
- Flask learning record 000: error summary
- Relevant methods of sorting arrays in JS (if you want to understand arrays, it's enough to read this article)
- 赞!idea 如何单窗口打开多个项目?
- 22年秋招心得
- "An excellent programmer is worth five ordinary programmers", and the gap lies in these seven key points
- Scrapy framework
- “一个优秀程序员可抵五个普通程序员”,差距就在这7个关键点
- Binder核心API
- How to insert highlighted code blocks in WPS and word
猜你喜欢

Qt添加资源文件,为QAction添加图标,建立信号槽函数并实现

关于组织2021-2022全国青少年电子信息智能创新大赛西南赛区(四川)复赛的通知

【编程题】【Scratch二级】2019.03 垃圾分类

腾讯安全发布《BOT管理白皮书》|解读BOT攻击,探索防护之道

51与蓝牙模块通讯,51驱动蓝牙APP点灯

Tencent security released the white paper on BOT Management | interpreting BOT attacks and exploring ways to protect

2022-07-07:原本数组中都是大于0、小于等于k的数字,是一个单调不减的数组, 其中可能有相等的数字,总体趋势是递增的。 但是其中有些位置的数被替换成了0,我们需要求出所有的把0替换的方案数量:

测试流程不完善,又遇到不积极的开发怎么办?

他们齐聚 2022 ECUG Con,只为「中国技术力量」

How to learn a new technology (programming language)
随机推荐
接口测试进阶接口脚本使用—apipost(预/后执行脚本)
CoinDesk评波场去中心化进程:让人们看到互联网的未来
【obs】Impossible to find entrance point CreateDirect3D11DeviceFromDXGIDevice
1293_ Implementation analysis of xtask resumeall() interface in FreeRTOS
The difference between get and post
Is Zhou Hongyi, 52, still young?
去了字节跳动,才知道年薪 40w 的测试工程师有这么多?
测试流程不完善,又遇到不积极的开发怎么办?
C # generics and performance comparison
Emotional post station 010: things that contemporary college students should understand
【GO记录】从零开始GO语言——用GO语言做一个示波器(一)GO语言基础
应用实践 | 数仓体系效率全面提升!同程数科基于 Apache Doris 的数据仓库建设
爬虫实战(八):爬表情包
Leetcode brush questions
Two small problems in creating user registration interface
Trust orbtk development issues 2022
Handwriting a simulated reentrantlock
How to insert highlighted code blocks in WPS and word
【转载】解决conda安装pytorch过慢的问题
STM32F1與STM32CubeIDE編程實例-旋轉編碼器驅動