当前位置:网站首页>高性能架构设计
高性能架构设计
2022-06-11 18:02:00 【thoughtCodes】
高性能架构基本上是为了支撑大数据量和高并发的业务场景。高并发的一些基本原则如下图:
高性能优化指标:
系统的对请求做出的时间:
吞吐量:
QPS:
并发用户数:微服务化
进程内服务,单机远程,集群服务,自动注册服务,服务分组路由,服务治理
单服务器高性能
单服务器高性能的关键之一就是服务器采取的网络编程模型,网络编程模型有如下两个关键设计点 :
服务器如何管理连接。
服务器如何处理请求 。
以上两个设计点最终都和操作系统的 I/O 模型及进程模型相关 。
1/0 模型:阻塞、非阻塞、同步 、异步
进程模型:单进程、 多进程、多线程。
常用的2种模型是
Reactor I/O多路复用 复用进程/线程 非阻塞同步,高性能
Proactor 异步 非阻塞异步 操作系统主动通知
消息队列方面:解耦,一步,
削峰,保证最终一致性。
缓存方面:客户端缓存,CDN服务端缓存等,分布式缓存等
数据方面:数据结构,存取方式,存取形式构建存储
边栏推荐
- [C语言]对一个数组的元素排序后平移元素
- Mysql8 installation, Navicat installation, sqli labs setup
- [MapReduce] a complete Mr program case teaches you how to package and run with idea
- 夜神安装apk,以及bp代理
- SQL报错注入1
- 系统的可扩展型
- Feign 共享登录信息进行请求
- vulhub
- Experiment 2: write a program and verify that the linear table sequence represents all operations
- Learning about canvas API
猜你喜欢

jsfinder,wafw00f安装,nmap配置(缺少msvcr120.dll文件)

async导致函数结果出乎意料,改变原来代码的意图;await is only valid in async functions and the top level bodies of modules

vulhub

NFT platform development NFT mall source code NFT mall development chain game development

Radiogroup dynamically add RadioButton
![Winter vacation daily question (improvement group) [end of week 4]](/img/67/89b5164712d8c4eb319b9266dd4b91.jpg)
Winter vacation daily question (improvement group) [end of week 4]

Initial egg framework

SISO decoder for a general (n,n-1) SPC code(补充章节3)

Nocturnal installs APK and BP agent

TR-069 protocol introduction
随机推荐
Spring 2021 daily question [week5 not finished]
SISO decoder for a general (n, n-1) SPC code (supplementary Chapter 3)
[Golang]力扣Leetcode - 292. Nim 游戏(数学)
Tle6288r is a 6-channel (150 MOhm) intelligent multi-channel switch using intelligent power technology - keshijin mall
软件测试技术复习
单选按钮 文字背景同时改变
求字符串中最大的 3 位相同数字
[collect first and use it sooner or later] 100 Flink high-frequency interview questions series (I)
jsfinder,wafw00f安装,nmap配置(缺少msvcr120.dll文件)
[Golang]力扣Leetcode - 349. 两个数组的交集(哈希表)
SQL error injection 1
Why OKR needs to be challenging
async导致函数结果出乎意料,改变原来代码的意图;await is only valid in async functions and the top level bodies of modules
MMA-Self-defining function
系统的可扩展型
Reading summary of nacos2.x source code
The tle6389 step-down DC-DC switch controller has high efficiency in the whole load range of 1mA to 2.5A - keshijin mall
H. 264 concept
ACL 2022:评估单词多义性不再困扰?一种新的基准“DIBIMT”
Nocturnal installs APK and BP agent