当前位置:网站首页>I Basic concepts
I Basic concepts
2022-07-07 20:18:00 【orange_?】
List of articles
Simply take a study note , Bli bli has a video on it .
1. Microservices
Microservice architecture style , Is to take a Separate applications Develop into a set Little service , every last Little service It's all a separate process . And use lightweight communication to maintain communication between services , Usually HTTP. These services are built around business capabilities , And deploy independently through a fully automated deployment mechanism . These services can be written in different languages , And different data storage technologies , And maintain the lowest degree of centralized management .
In short : Reject large single application , Service micro splitting based on business boundary , Each service runs and deploys independently .
2. colony & Distributed & node
Clusters are physical forms , Distributed is a way of working .
Just a bunch of machines , It can be called a cluster , Are they working together , No one knows this .
《 Principles and specifications of distributed systems 》 Definition :
“ Distributed systems are collections of nogan independent of computers , These computers are like a single related system to users ”
A distributed system is a software system built on a network .
(1) Distributed means that different businesses are distributed in different places
(2) Clustering refers to putting several servers together , Achieve the same business
(3) Every node in the distribution , Can be called a cluster . Cluster is not necessarily distributed
3. The remote invocation
In distributed systems , Each service may be on a different host , But services inevitably need to call each other , We call it remote call .
SpringCloud Use in HTTP + JSON To complete the remote call in the same way .
4. Load balancing
Distributed system ,A The service needs to call B service ,B Services exist on multiple machines ,A Calling any server can complete the function .
In order not to be too busy or too busy for every server , We can load balance each server , Improve the performance of the website .
Common load balancing algorithms :
polling : Select the first back-end server in the health pool for the first request , Then select one time later in order , Until the last one , Then the cycle .
The minimum connection : Give priority to the least number of connections , The back-end server with the least pressure , In conversation
hash : According to the request source IP Hash of (hash) To select the server to forward . This way can ensure that specific users can connect to the same server to some extent . If your application needs to handle state and require users to be able to connect to the same server as before , Think about it this way .
5. Service registration / Find out & Registry Center
A The service call B service ,A I don't know about the service B Which servers does the service currently have , What's normal , Which services have been offline . To solve this problem, we can introduce the registry .
6. Configuration center
Each service eventually has a large number of configurations , And each service may be deployed on multiple machines . We often need to change the configuration , We can let each service get its own configuration in the configuration center .
7. Service failure & service degradation
8. API gateway
In the microservices architecture ,API Gateway As an important component of the overall architecture , it It abstracts the public functions required in microservices , At the same time, the client is provided Load balancing , The service fuses automatically , Grayscale Publishing , Unified certification , Current limiting flow control , Log statistics And other rich functions , Help us solve many problems API Management problems .
Guli structure diagram

边栏推荐
- 有用的win11小技巧
- Chapter 20 using work queue manager (3)
- 力扣674. 最长连续递增序列
- With st7008, the Bluetooth test is completely grasped
- MIT science and technology review article: AgI hype around Gato and other models may make people ignore the really important issues
- Vulnhub tre1
- Creation of kubernetes mysql8
- 备份 TiDB 集群到持久卷
- Equals method
- The state cyberspace Office released the measures for data exit security assessment: 100000 information provided overseas needs to be declared
猜你喜欢

Implement secondary index with Gaussian redis

大厂经典指针笔试题

Leetcode force buckle (Sword finger offer 36-39) 36 Binary search tree and bidirectional linked list 37 Serialize binary tree 38 Arrangement of strings 39 Numbers that appear more than half of the tim
![[philosophy and practice] the way of program design](/img/c8/93f2ac7c5beb95f64b7883ad63c74c.jpg)
[philosophy and practice] the way of program design

Vulnhub tre1

Cloud 组件发展升级

数据孤岛是企业数字化转型遇到的第一道险关

How to cooperate among multiple threads

YoloV6:YoloV6+Win10---训练自己得数据集

php 获取图片信息的方法
随机推荐
2022如何评估与选择低代码开发平台?
CUDA versions are inconsistent, and errors are reported when compiling apex
One click deployment of any version of redis
取两个集合的交集
Force buckle 1232 Dotted line
力扣 1037.有效的回旋镖
Oracle 存储过程之遍历
怎样用Google APIs和Google的应用系统进行集成(1)—-Google APIs简介
Force buckle 88 Merge two ordered arrays
Opencv学习笔记 高动态范围 (HDR) 成像
The state cyberspace Office released the measures for data exit security assessment: 100000 information provided overseas needs to be declared
力扣 1961. 检查字符串是否为数组前缀
841. String hash
Implement secondary index with Gaussian redis
TS快速入门-泛型
Chapter 9 Yunji datacanvas was rated as 36 krypton "the hard core technology enterprise most concerned by investors"
About cv2 dnn. Readnetfromonnx (path) reports error during processing node with 3 inputs and 1 outputs [exclusive release]
BI的边界:BI不适合做什么?主数据、MarTech?该如何扩展?
Get webkitformboundary post login
力扣 912.排序数组