Software architecture self notes - common software architecture (https://jiajunhuang.com/articles/2018_09_16-common_software_archtecture_pattern.md.html)

Stratified mode

This model is mainly designed layered, each layer providing services to its upper layer. Example: web development, we often certain common RESTful interface abstracts a service layer.

 

The client - server mode

The client and server separation, thereby decoupling. With this design, the server can simultaneously serve multiple clients. For example: micro-channel. Micro-channel on the phone is a client, and the server Tencent.

 

Master-slave mode

The entire software is divided into two, one is the master, Chinese often called the primary, and the other is slave, often called the Chinese from. For example: Nginx uses this mode, master can easily manage a plurality of slave.

 

Pipeline mode

The output of a software function, or as a function of the input or software, and string them together to form a pipeline mode. For example: bash in  |.

 

Messaging Mode

broker, most often see the word place is the task queue. We through an intermediate medium, the message publisher and consumer decoupling. For example: Celery.

 

Point to Point mode

The famous P2P, no central server which is a model. For example: seeds.

 

event-bus mode

This model and messaging modes like the difference that, messaging patterns, consumers can take the initiative to monitor the consumption of the queue, and this model is a registered event, called by the owner, such as: listening route in Andrews.

 

MVC pattern

This is the most common web development of a model. By Model (provided data), View (Processing view), the Controller (both adhesive) distinguish Model View and provide service, the Controller is responsible for the integration.

 

Guess you like

Origin www.cnblogs.com/1605-3QYL/p/11028923.html