China
Class notes
What is the Central platform
Take film shooting as an example: the foreground we see is the produced film itself, and the background is the whole shooting group, so the middle stage is equivalent to Hengdian World Studios, providing reusable scenes for the background use, such as shooting scenes corresponding to ancient costume and Films of the Republic of China, to produce different films.
Front Desk: What you see is what you get
Background: Complex logic
Middle platform: a platform with reusable scenarios
The role/characteristics of the middle stage
Reduce repetitive labor, empowerment and platformization
Division of central Taiwan
It is mainly divided into: middle stage between the front desk and the background, technical middle stage, business middle stage and organization middle stage
Examples: GraphQL, FireBase, Kubernetes, PostgREST, LeanCloud, etc
There are two other special ones
Incubating mediums: Spark, Storm, etc., incubating voice recognition, face recognition AI mediums that can be used by other projects
Dispatch in Taiwan: such as Taobao will put a lot of Taiwan output project synthesis into a timeline, these are the need to have a Taiwan to dispatch
Code concepts involved
Metadata: Data used to describe data, such as request headers and response headers, as shown in the following figure
Higher-order functions
- Functions of processing functions (arr.reduce)
- A function that returns a function (app.use() in koa)
Proxy Server: Proxy server ES6 Proxy: enables developers to hijack operations on objects
- getter/setter
- Function call/construct
Axios intercepts the get method from an empty object, layer by layer intercepting the name and method properties
Use as follows:
summary
Metadata can be used to generate a new project’s database, generating interface calls. With high order functions, solidified processing logic, empty processing logic, solidified processing logic is just said incubation of AI face recognition is specialized in AI recognition logic, empty processing for example is reduce method left empty processing logic, pass the method began to process. Proxy to do things on behalf of the user, and can be perceptual optimization. For example, the database middleware, when the user seconds to kill the order, automatically do read and write separation, too many transactions after the explosion of the database to pull up again, one by one to re-order.
Examples of simple projects:
The hierarchy | Application scenarios | For the crowd | role |
---|---|---|---|
The front desk | Marketing page | The user | Metadata generation page |
The background | Marketing background | Product, marketing, planning | Generating metadata |
China | Dolls middle | Front end and back end | Extended metadata |
To give a simple example of a form configuration item, the front-end submits metadata like the following to the back-end storage, and the front-end obtains metadata of the corresponding page through fetch:
Fill the front page like this:
The end user sees a page like this:
Service Expansion Direction
Poster configuration items, form configuration items, RestfulAPI generation items
conclusion
We have heard ali put forward the “big stage, small stage”, but the concept of the stage has been unable to understand, through the article on the characteristics of the stage, role and division to gradually improve its cognition.
The concepts of metadata, higher-order function and proxy are also summarized. Then through code examples to illustrate the metadata to the page display, I hope you can have an understanding of the concept of the middle stage. Thinking: What is the relationship between Taiwan and infrastructure and PaaS services?