Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Request handling method and device

A request processing and request distribution technology, applied in the Internet field, can solve the problems of huge code coupling, confusion, high code structure, etc., and achieve the effect of reducing complexity, improving efficiency, and simple association

Inactive Publication Date: 2015-07-08
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present invention provides a request processing method and device to at least solve the technical problem of chaotic code structure caused by too large and highly coupled control logic layer code in the existing MVC architecture

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Request handling method and device
  • Request handling method and device
  • Request handling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] According to an embodiment of the present invention, a request processing method is provided, such as figure 2 As shown, the method includes:

[0047] S202: Receive a request, wherein the request carries a first identifier used to indicate a first module layer module located at the module layer, a second identifier used to indicate a first control layer module located at the control layer, and a first identifier used to indicate the first control layer module located at the control layer. the third identifier of the first functional module in the control layer module;

[0048] Optionally, the above request may be sent by the terminal to the server, for example, the user sends the above request to the server that manages the microblog application through the microblog client on the terminal.

[0049] Optionally, the module architecture proposed in this embodiment is preconfigured on the server. As an optional example, the module architecture may be as follows: Figure...

Embodiment 2

[0140] According to an embodiment of the present invention, a request processing apparatus is also provided, such as Figure 11 As shown, the request processing apparatus in this embodiment includes:

[0141] (1) The first receiving unit 1002 is configured to accept a request, wherein the request carries a first identifier used to indicate the first module layer module located at the module layer, and used to indicate the first control layer module located at the control layer. a second identifier, and a third identifier for indicating the first functional module in the first control layer module, the first module layer module having one or more control layer modules including the first control layer module;

[0142] Optionally, the above request may be sent by the terminal to the server, for example, the user sends the above request to the server that manages the microblog application through the microblog client on the terminal.

[0143] Optionally, the module architecture ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present disclosure discloses a method and apparatus for processing a request. The method includes: receiving a request, where the request carries a first identifier for indicating a first module layer module located on a module layer, a second identifier for indicating a first control layer module located on a control layer, and a third identifier for indicating a first function module in the first control layer module, where the first module layer module has one or more control layer modules that include the first control layer module; acquiring the first identifier, the second identifier, and the third identifier from the request; and invoking the request and allocating the request to the first function module in the first control layer module in the first module layer module according to the first identifier, the second identifier, and the third identifier that are acquired. The present disclosure solves a technical problem of a code structure disorder caused by that a control logic layer code inside an existing MVC architecture is too massive and has a high degree of coupling, and achieves technical effects of separating the module layer from a data layer and enhancing module independency.

Description

technical field [0001] The present invention relates to the field of the Internet, and in particular, to a request processing method and device. Background technique [0002] As an existing software design architecture, MVC (Model View Controller, Model-View-Controller) architecture is often used to organize code. like figure 1 As shown, in the MVC architecture, the Model layer (model layer) is mainly responsible for business logic and data processing, integrating business logic code and data source code; the View layer (view layer) is mainly used for displaying data and submitting data; Controller (controlling Handler) is mainly used to capture requests and control request forwarding. The business logic adopts the method of separating data and display, and the business logic is aggregated into one component, so that the display interface can be easily changed or customized without rewriting the business logic. The MVC architecture is often used to map traditional input, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F9/451G06F8/35
Inventor 孙明星
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products