当前位置:网站首页>Application of CDN in game field
Application of CDN in game field
2022-07-02 15:09:00 【Cloud computing security】
Catalog
One 、 What is? CDN ?
CDN(Content Delivery Network), namely Content distribution network , It is a distributed network group composed of multiple edge server nodes . The use of Global load balancing Technology points users' access away from users lately It works normally Streaming media server On , The streaming media server directly responds to the user's request .
Two 、 Why use CDN ?
Actually use CDN Technology can bring our game customers better Gaming experience , Because we all know , Before use CDN When it comes to technology , Every resource request will request the source Host The server , If in High concurrency scenario Next , Source Host The server will bear more pressure , There is even the possibility of downtime .
So use CDN Technology mainly has the following functions :
- Share the source station pressure ;
- Avoid network congestion ;
- Accelerate website content distribution , Speed up resource access .
3、 ... and 、CDN Application scenarios
1、 Static file distribution
- Picture file ;
- CSS file ;
- JS file ;
- …
2、 Big file download
- Game packages ;
- Upgrade package ;
- Application updates ;
- …
3、 Audio and video on demand
- transcoding ;
- decode ;
- Storage ;
- …
The above scenarios are applicable to the game ( Of course, it's not limited to games )、 Movies 、 News media and other fields .
Four 、CDN Accelerate the principle
Suppose the accelerated domain name is
www.zhurse.com
1、 Customer access www.zhurse.com
- Local DNS analysis ;
- Returns the name of the domain name CNAME Domain (
www.cdcd.example);
2、 Local DNS towards CDN Of DNS Scheduling system requests www.cdcd.example The parsing record of , And assign the best CDN Node IP Address , And then back to the local DNS.
3、 Local DNS obtain CDN Of DNS The scheduling system returns the best CDN node IP After the address , And put the best node IP Address returned to user , Users get the best CDN Node IP Address .
4、 Users to the best CDN node IP Address initiates an access request to the resource .
- If the best CDN The node has cached the resource , The requested resource will be returned directly to the user , The request ends .
- If the best node does not cache the resource or the cached resource has expired , Then the node will initiate a request for the resource to the source station . After obtaining the resources of the origin station, combined with the user-defined cache policy , And cache resources to CDN The node then returns to the user .
Summary
For static resources , Such as images 、 video 、 Files in the website (html、css、js)、 Software installation package and other files , Use CDN Technology can see obvious effects .
For dynamic resources , Such as asp、jsp、php、perl Wait for the documents , Use CDN It doesn't work , in other words CDN Cache acceleration of is not suitable for accelerating dynamic content ( That is, dynamic content that changes in real time cannot be cached )
therefore , For dynamic resources , We can use Speed up the whole station Technical means to achieve ( Such as route optimization 、 Transmission optimization ).
边栏推荐
- qml 弹窗框架,可定制
- 数据分析常见的英文缩写(一)
- Obsidian installs third-party plug-ins - unable to load plug-ins
- Ad20 cannot select the solution of component packaging in PCB editor
- 06_栈和队列转换
- kityformula-editor 配置字号和间距
- Base64 coding can be understood this way
- Thoroughly master prototype__ proto__、 Relationship before constructor (JS prototype, prototype chain)
- Arithmetic operations and related exercises in C language
- 使用 TiUP 部署 TiDB 集群
猜你喜欢

为什么只会编程的程序员无法成为优秀的开发者?

Solve the problem that El radio group cannot be edited after echo

LeetCode - 搜索二维矩阵

C code audit practice + pre knowledge

C language exercises - (array)

实用调试技巧

Obsidian installs third-party plug-ins - unable to load plug-ins

编译原理课程实践——实现一个初等函数运算语言的解释器或编译器

buuctf-pwn write-ups (7)

XML配置文件
随机推荐
C语言中的算术运算及相关练习题
Principles, language, compilation, interpretation
关于网页中的文本选择以及统计选中文本长度
Mfc a dialog calls B dialog function and passes parameters
Sharp tool SPL for post SQL calculation
Large top heap, small top heap and heap sequencing
About text selection in web pages and counting the length of selected text
【NOI模拟赛】伊莉斯elis(贪心,模拟)
Kityformula editor configure font size and spacing
info [email protected]: The platform “win32“ is incompatible with this module.
info [email protected] : The platform “win32“ is incompatible with this module.
Full of knowledge points, how to use JMeter to generate encrypted data and write it to the database? Don't collect it quickly
【题解】Educational Codeforces Round 82
Record an error report, solve the experience, rely on repetition
C语言实现N皇后问题
871. 最低加油次数 : 简单优先队列(堆)贪心题
forEach的错误用法,你都学废了吗
C# richTextBox控制显示最大行数
原则、语言、编译、解释
Edit the formula with MathType, and set it to include only mathjax syntax when copying and pasting