1. The evolution of large sites Architecture

Features large Internet system of
high concurrency, outgoing traffic: the face of a large number of concurrent users
high availability: 7 * 24-hour service
of massive data: the need to store, manage massive amounts of data
widely distributed users, network complexity: Operators may be difficult communication, network different geographical network, the network delay international
security issues: the attack, information disclosure
progressive development: websites are from small to large developed, do not bother to large site architecture and design of large site architecture, all system upgrades are for business, the business must pursue stability, only the business needs change, just to make a change

  1. The initial phase of the network architecture: applications, files, databases exist on a single server
  2. Separation of application services and data services: applications, files, databases exist on different servers
  3. Increase the cache: website content access twenty-eight law to follow, therefore, frequently accessed data in cache, increase cache
  4. Build application clusters: cluster built into the application structure is intact copy of the application across multiple servers, server load-balancing regulation
  5. Database read and write separation: there is a cache miss, the situation cache expires, the user much, there is pressure database, therefore, the use of separate read and write from the master database be
  6. CDN using a reverse proxy and
    a reverse proxy use: some static pages or resources on the reverse proxy server (usually the center of the room) on, when users do not have access to forward the request to the application server, directly to the static resources returned to the user
    CDN: Since the user is generally the first and operator interaction, therefore, some enterprises can not always change the static resources on the server operators, such a request would not have the enterprise server
  7. Distributed file systems and distributed database systems
    Distributed File System: A single server can not meet the needs of
    distributed database system:
    In general, the database is split based on different business, that is, different business will split the database.
    Only when a single data table is too big, it uses a distributed database
  8. Use NoSql and search engines
    when the complexity of data storage and data retrieval needs,
    requires the use of non-relational database
    non-database query techniques, such as search engine
  9. Business Split: Split the different services (for example: shopping, shop, order ......), respectively, on a different server, forward messages by using Message Queuing
  10. Distributed Services: split the traffic deployed independently, simultaneously, the same service, or the same code block out multiplexing, multiplexed into a service reload server, so that the multiplexing server database , caching, search engines, etc. to interact

Cloud computing:
large sites, such as Ali, Huawei, Tencent, and so the company's technology is relatively mature, whether it is security or stability, they've done some of the architecture, ordinary small sites only need to pay to use them do a good job architecture can, if you want higher performance, only need to pay more money.

Site architecture design problem: the
sites are from small to big start of
power driven website development, it is business, not to newer technology, not to use newer technology
small sites do not seek to solve the big sites program, is the best suited to their
not technology for technology, business and technology in order to produce the proposed business also had a better technology
do not blindly use technology to solve all the problems, issues are not necessarily new technology is not enough produced, such as security issues, the problem may be business, do not blindly use the new framework to solve

Published 20 original articles · won praise 1 · views 1460

Guess you like

Origin blog.csdn.net/weixin_44587666/article/details/89496386