search
HomeCommon ProblemHow to design a system

How to design a system

Jul 29, 2019 am 11:51 AM
design

How to design a system

How to design a system

##Step 1: Describe usage scenarios, constraints and assumptions(Recommended learning: PHP video tutorial)

Gather all the necessary things together and examine the problem. Keep asking questions so that we can clearly understand usage scenarios and constraints. Discuss assumptions.

Who will use it?

How will they use it?

How many users are there?

What is the function of the system?

What are the input and output of the system?

How much data do we want to process?

What is our desired read-write ratio?

Step 2: Create a high-level design

Use all important components to outline a high-level design

Draw the main Components and connections

Prove your idea

Step 3: Design core components

For each core component Conduct detailed and in-depth analysis. For example, if you are asked to design a URL abbreviation service, start the discussion:

Generate and store a hash of the complete URL

MD5 and Base62

Hash collision

SQL or NoSQL

Database model

Translate a hashed url into a complete url

Database lookup

API and object-oriented design

Step 4: Measurement Design

Identify and deal with bottlenecks and limitations.

For example, do you need the following to complete an expanded topic?

Load Balancing

Horizontal Scaling

Cache

Database Sharding

Discuss possible solutions and costs. Everything requires trade-offs.

Bottlenecks can be handled using scalable system design principles.

Estimated Estimated Amount

You may be asked to make some estimates through hand calculations.

The appendices involved involve the following resources:

Using the power table of the estimated calculation quantity

2

The number of delays that every programmer should know

For more PHP-related technical articles, please visit the

PHP Graphic Tutorial column to learn!

The above is the detailed content of How to design a system. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor