Service request processing method and device
A business request and processing device technology, applied in the field of data processing, can solve problems affecting user experience, increase the burden of the terminal where the application is located and network operations, and increase the burden of database operations, so as to avoid the reduction of user experience and avoid repeated sending of business requests , The effect of reducing the operating burden
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0018] refer to figure 1 , which shows a schematic flowchart of steps of a method for processing a service request in Embodiment 1 of the present invention.
[0019] The service request processing method in this embodiment includes the following steps:
[0020] Step S102: Intercept the service request sent by the application to the database.
[0021] Among them, the service request is any service request that the application can send to the database, for example: a request to obtain a user number, a request to obtain the remaining traffic value of a package, etc.
[0022] It should be noted that in this embodiment, the service request sent by the application to the database may be intercepted by the middleware set between the application and the database, or may be intercepted by any other appropriate device.
[0023] Step S104: Determine whether there is an idle connection to the database in the connection pool.
[0024] In the connection pool, according to the supportable...
Embodiment 2
[0032] refer to figure 2 , which shows a schematic flowchart of steps of a service request processing method according to Embodiment 2 of the present invention.
[0033] The service request processing method in this embodiment includes the following steps:
[0034] Step S202: the middleware intercepts the service request sent by the application to the database.
[0035] Wherein, in this embodiment, the middleware is used to intercept the service request sent by the application to the database, and the middleware is set between the application and the database. The so-called gap is not a gap in the physical sense, but because the middleware intercepts the data sent between the application and the database, so it is called the middleware set between the application and the database.
[0036] It should be noted that the application, middleware, and database can be set on the same device, or each can be set on one device, or a combination of two can be set on different devices....
Embodiment 3
[0052] refer to image 3 , which shows a schematic flowchart of steps of a service processing method according to Embodiment 3 of the present invention.
[0053] The business processing method of this embodiment specifically includes the following steps:
[0054] Step S302: The middleware generates a connection pool according to the connection information supported by the database.
[0055] Wherein, the middleware is arranged between the application and the database. A connection pool is used to manage the connections that a database can support.
[0056] An optional generation method for the middleware to generate a connection pool based on the connection information that the database can support is as follows: the middleware determines the upper limit of the connection that the database can support according to the connection information that the database can support; set the same number in the connection pool Connection. For example: the upper limit of connections suppo...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com