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

Method and apparatus for processing user requests

A user request and user technology, applied in the computer field, can solve problems such as difficulty in coping with temporary changes, inability to convert parameters and encapsulate them in the same service processing, violation of single responsibility of program design, aggregation and reuse, etc., to achieve the goal of improving development efficiency Effect

Active Publication Date: 2022-07-08
AISPEECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the implementation process of the above two solutions, the main problem is that it is inevitable to add the code logic of parameter format conversion in the business logic of each service
The code logic of the parameter conversion scattered in each service is strongly coupled with the business logic, and the parameter conversion and encapsulation cannot be concentrated in the same service processing, which violates the basic principle of single responsibility of program design and aggregation and reuse
When user needs change, it is inevitable to modify the code, and it is difficult to cope with such temporary changes

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
  • Method and apparatus for processing user requests
  • Method and apparatus for processing user requests
  • Method and apparatus for processing user requests

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

[0032] figure 1 It is a schematic diagram of the main flow of the method for processing a user request according to an embodiment of the present invention. like figure 1 As shown, the method for processing a user request according to the embodiment of the present invention mainly includes:

[0033] Step S101: Receive a service request from a user, and determine identificati...

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 invention discloses a method and a device for processing user requests, and relates to the technical field of computers. A specific implementation of the method includes: receiving a service request from a user, and determining identification data of the user; searching for a corresponding format converter in a database according to the identification data; The parameters in the request are converted, and a response is made based on the converted service request. In this embodiment, the code logic of parameter conversion and encapsulation is centralized in one service for unified processing, which can flexibly process and encapsulate parameters. Even if the parameter format changes, it is only necessary to modify the corresponding configuration file without modifying the program code. The change realizes the development and deployment of general public services, and the complete decoupling of the custom data parameter format that supports multiple users without interfering with each other, saving resources for deploying services.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular, to a method and apparatus for processing user requests. Background technique [0002] At present, many software products face multiple customers, and use the same code business logic to process requests from different customers. However, the parameter information provided by different customers, such as parameter names, formats, etc., all have customer-defined request and response data templates. Since these data parameters will be used when processing in the code, it is difficult for the same code processing logic to face the problem of serving multiple customers at the same time. [0003] For the above problems, there are mainly two solutions in the existing technology: the first solution is to split the codes for different customers into their own services; the second solution is to formulate a set of standard parameter formats, and use the format as a benchmark t...

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 Patents(China)
IPC IPC(8): G06F8/40
CPCG06F8/40
Inventor 霍飞马荣李潇怡王磊
Owner AISPEECH 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