In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to analyze the Java high-availability cluster architecture and micro-service architecture. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.
Order
Perhaps most readers are wondering, why should I organize this "outdated" high-availability cluster architecture in this era of micro-services represented by dubbo and spring cloud?
First, how to choose
1. Highly available clusters
It is suitable for the project architecture of small and medium-sized start-ups. Small technical teams release deployment requirements quickly and iteratively, and run at a low cost in the early stage. In the event of an outbreak, you can invest an appropriate amount of cost to horizontally expand the server to resist pressure.
Features:
The cost of early technology development is low.
A certain cost of server expansion
Core team establishment and skill requirements are less.
The project release and deployment is basically independent, and the time cost is low.
The average cost of server operation and maintenance
Large and complete project module separation design
A more economical and stable choice of technical architecture
Microservice architecture obsessive-compulsive disorder is not applicable
2. Micro-service architecture
It is suitable for the project architecture of large and medium-sized technology companies with large business architecture. The system can be split into multiple projects to operate separately, large technical teams and platform products can be standardized and managed with a certain cost in the early stage. The server of the specified service can be expanded to withstand pressure at a low cost.
A certain cost of technology development in the early stage
Lower server expansion cost
Core team establishment and skill requirements are high.
Project release and deployment is dependent, one by one, and the time cost is high.
The cost of server operation and maintenance is general or high.
Clearer separated design of project modules
More fashionable and fashionable choice of technology architecture
II. Highly available cluster architecture
1. List of required servers
Load balancing server
Web project server
Cache server
Database server (active / standby)
Note: some people may ask, if the stand-alone service for small projects, is it not necessary for load balancer? The main job of load balancer is to distribute requests to the source server, and another function is to protect the source server from exposing the real IP of the server, thus greatly reducing the risk of the server being attacked by DDoS. Please refer to the article "being attacked by DDoS, analyze the principle and protection".
2. Expand the server list
More web project servers (cluster load)
Asynchronous service server (configuration center, message queuing, job tasks, etc.)
Database server (read-write separation, master-slave replication)
File server
2. Architecture diagram
III. Micro-service architecture
1. Server list
Dubbo / spring cloud Family Bucket component Server
Load balancing server
A module web project server
Module B web project server
C module web project server
XXX module web project server
Cache server
Database server
File server
Asynchronous service server (configuration center, message queuing, job tasks, etc.)
2. Architecture diagram
To sum up, we have done a simple scenario and architecture diagram analysis of high-availability clusters and micro-service architectures, not saying that what architecture must be used in any scenario, nor that what architecture is the most fashionable, but based on the actual cost and output as the starting point.
The start-up company has just started, the capital may be more than a million, to build a micro-service architecture, the cost of the technical team and server alone accounts for a large part of the company, and the company has gone bankrupt before the product is online.
Companies with resources can easily get tens of millions or higher-level financing, and there are many business directions. if they only use high-availability architecture, all business modules are bloated in one project, whether in code management or personnel management. is a huge consumption of resources.
This is the end of how to analyze Java highly available cluster architecture and micro-service architecture. I hope the above content can be of some help and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.