CN112328219A - Service access processing method, device and system and computer equipment - Google Patents

Service access processing method, device and system and computer equipment Download PDF

Info

Publication number
CN112328219A
CN112328219A CN202011213567.9A CN202011213567A CN112328219A CN 112328219 A CN112328219 A CN 112328219A CN 202011213567 A CN202011213567 A CN 202011213567A CN 112328219 A CN112328219 A CN 112328219A
Authority
CN
China
Prior art keywords
service
access
logic
request
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011213567.9A
Other languages
Chinese (zh)
Inventor
谭德昆
黄建昌
杨聪
鲁鸿鑫
邓仁莞
刘天宇
叶景文
黄英华
吴教兴
赵锦山
姚杰鸿
李昕
高俊源
罗嗣宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Digital Guangdong Network Construction Co Ltd
Original Assignee
Digital Guangdong Network Construction Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Digital Guangdong Network Construction Co Ltd filed Critical Digital Guangdong Network Construction Co Ltd
Priority to CN202011213567.9A priority Critical patent/CN112328219A/en
Publication of CN112328219A publication Critical patent/CN112328219A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a service access processing method, a device, a system, computer equipment and a storage medium. The method comprises the following steps: a platform server receives a service access request initiated by an access terminal; reading preset service configuration information according to the service access request; acquiring a service logic corresponding to the service configuration information, and determining a service function corresponding to the service logic; the service function is compiled by a programming language supporting the concurrency of the micro-threads; and calling the corresponding service function, running the service logic and returning a running result to the access terminal. By adopting the method, the business logic can be compiled by adopting the programming language supporting the micro-thread concurrency, the business access request response can be completed by adopting the programming language, the multiplexing value is high, a series of access processing processes are omitted, and the business access processing efficiency is further improved.

Description

Service access processing method, device and system and computer equipment
Technical Field
The present application relates to the field of service processing technologies, and in particular, to a service access processing method, apparatus, system, computer device, and storage medium.
Background
With the development of business processing technology, it is usually necessary to develop a backend service required by business access, where the development process mainly includes the following processes: generating an initial code according to a micro-service template of the project framework, coding to realize service logic, adding configuration items according to needs, packaging and uploading for many times, deploying, and testing before finally releasing to a formal operation environment.
Therefore, in order to facilitate the development of the micro service business, the business development is currently realized by adopting the micro service management system, however, the problem of low business access efficiency is often caused by the complicated steps of realizing the business function development by the micro service management system, the low development efficiency and the low multiplexing value of the business function.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a service access processing method, apparatus, system, computer device and storage medium for solving the above technical problems.
A method for service access processing, the method comprising:
receiving a service access request initiated by an access terminal;
reading preset service configuration information according to the service access request;
acquiring a service logic corresponding to the service configuration information, and determining a service function corresponding to the service logic; the service function is compiled by a programming language supporting the concurrency of the micro-threads;
and calling the corresponding service function, running the service logic and returning a running result to the access terminal.
In one embodiment, before reading preset service configuration information according to the service access request, the method includes: receiving a service configuration request initiated by an initiating terminal; calling the service function corresponding to the service configuration request based on a preset analytic grammar to form a service logic; and generating service configuration information corresponding to the service configuration request according to the service logic.
In one embodiment, the reading preset service configuration information according to the service access request includes: responding to the service access request, and acquiring a corresponding request path; and acquiring service configuration information corresponding to the service access request according to the request path.
In one embodiment, after the obtaining of the service logic corresponding to the service configuration information and before the determining of the service function corresponding to the service logic, the method further includes: according to a preset parameter rule, performing parameter check on service parameters transmitted from the service access request access service interface; the parameter rule is a parameter standard formulated according to service parameters required by different service functions; and if the parameter checking result is that the service function corresponding to the service logic is passed, determining the service function corresponding to the service logic.
In one embodiment, the number of the service functions is multiple; the obtaining of the service logic corresponding to the service configuration information and the determining of the service function corresponding to the service logic include: analyzing the service logic corresponding to the service configuration information based on the analytic grammar; determining a business function corresponding to the business logic from the plurality of business functions.
In one embodiment, the calling the corresponding service function and running the service logic, and returning a running result to the access terminal includes determining a corresponding service type according to the service logic; the service type comprises at least one of a function service, a cache service, a database service, a storage service or a message center service; calling a service function corresponding to the service type according to the service type; and adding the corresponding service function into the service logic, operating the service logic, generating the operation result, and returning the operation result to the access terminal.
In one embodiment, the receiving a service access request initiated by an access terminal includes: monitoring a touch request triggered by the access terminal on a service access interface based on a service access interface gateway; determining touch coordinate information corresponding to the touch request; and matching a service access interface corresponding to the touch request through the touch coordinate information to generate a service access request corresponding to the service access interface.
A service access processing apparatus, comprising:
the access request receiving module is used for receiving a service access request initiated by an access terminal;
the configuration information acquisition module is used for reading preset service configuration information according to the service access request;
the service logic analysis module is used for acquiring the service logic corresponding to the service configuration information and determining a service function corresponding to the service logic; the service function is compiled by a programming language supporting the concurrency of the micro-threads;
and the service logic operation module is used for calling the corresponding service function, operating the service logic and returning an operation result to the access terminal.
A service access processing system comprises a platform service end and an access end in communication connection with the platform service end:
the access terminal is used for triggering a service access request and sending the service access request to the platform server;
the platform server is used for reading preset service configuration information according to the service access request; acquiring a service logic corresponding to the service configuration information, and determining a service function corresponding to the service logic; the service function is compiled by a programming language supporting the concurrency of the micro-threads;
the platform server is also used for calling the corresponding service function, running the service logic and returning a running result to the access terminal;
and the access terminal is used for receiving the operation result.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the above method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
The service access processing method, the device, the system, the computer equipment and the storage medium receive a service access request initiated by an access terminal; reading preset service configuration information according to the service access request; acquiring a service logic corresponding to the service configuration information, and determining a service function corresponding to the service logic; the service function is compiled by a programming language supporting the concurrency of the micro-threads; and calling the corresponding service function, running the service logic and returning a running result to the access terminal. The method and the device have the advantages that the business logic is compiled by adopting the programming language supporting the micro-thread concurrency, the business access request response is completed by adopting the programming language, the multiplexing value is high, a series of access processing processes are omitted, and the business access processing efficiency is improved.
Drawings
FIG. 1 is a diagram of an application environment of a service access processing method in one embodiment;
FIG. 2 is a flow diagram illustrating a method for service access processing in one embodiment;
FIG. 3 is a flow diagram illustrating the generation of service configuration information in one embodiment;
fig. 4 is a schematic flowchart illustrating a process of receiving a service access request initiated by an access terminal in an embodiment;
FIG. 5 is a flow chart illustrating a service access processing method according to another embodiment;
FIG. 6 is a schematic structural diagram of a low code programming operation integrated platform in an application example;
FIG. 7 is a schematic diagram illustrating an interaction flow of a low code programming operation integration platform in an application example;
FIG. 8 is a block diagram of a traffic processing apparatus in one embodiment;
FIG. 9 is a block diagram of a business processing system in accordance with one embodiment;
FIG. 10 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The service access processing method provided by the application can be applied to the application environment shown in fig. 1. The access terminal 101 communicates with the platform server 102 through a network. The access terminal 101 may be a terminal used by a user who needs to handle a service, and when the user triggers a service access request through the access terminal 101, the request may be sent to the platform server 102, and the platform server 102 may find a corresponding service logic and a service function by using pre-configured service configuration information, and call the service function to run the service logic, process the service access request, and finally return a processing result to the access terminal 101. The access terminal 101 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the platform server 102 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, a service access processing method is provided, which is described by taking the application of the method to the platform server 102 in fig. 1 as an example, and includes the following steps:
step S201, the platform service side 102 receives a service access request initiated by the access side.
The service access request is a request triggered by the access terminal 101, the access terminal 101 may be a terminal used by a person who needs to perform service access, and the platform server 102 may be a server for processing the service access request. When a service access person needs to perform service access, a service access request can be triggered and sent to the platform service side 102 in a manner that the access side 101 logs in the platform service side 102.
Step S202, the platform server 102 reads preset service configuration information according to the service access request.
The service configuration information is pre-configured configuration information stored in the platform service terminal 102 in advance for executing the service access request, and the platform service terminal 102 may complete configuring a plurality of service configuration information in advance. Specifically, after the platform server 102 receives a service access request initiated by the access terminal 101, service configuration information corresponding to the service access request may be read from a plurality of service configuration information.
Step S203, the platform server 102 obtains the service logic corresponding to the service configuration information, and determines the service function corresponding to the service logic; the service function is compiled by a programming language supporting the concurrency of the micro-threads;
step S204, the platform service terminal 102 calls the corresponding service function and runs the service logic, and returns the running result to the access terminal 101.
The service logic may be stored in the service configuration information and used for responding to the service access request, and the service logic may be composed of service functions, for example, various function functions or extended services built in the platform service terminal 102, and the service functions are compiled by a programming language that can support micro-thread concurrency, for example, the service functions may be compiled by a Go language. Specifically, after the platform server 102 obtains the service configuration information, it may obtain a corresponding service logic from the service configuration information, determine a corresponding service function based on the obtained service logic, call a preset service function matched with the service logic and compiled by a programming language supporting micro-thread concurrency, run the service logic, and finally return the running result of the service logic to the access terminal 101 as the processing result of the service access request.
In this embodiment of the present invention, the service access request includes, but is not limited to, access to government affairs, and step S201 specifically includes: analyzing an access object identification code corresponding to the service access request; and calling a government affair item database, and searching a configuration file corresponding to the government affair item based on the access object identification code. The access object corresponds to various government affairs matters, and a service requirement is generated aiming at a service access request of a specific government affair, namely the service requirement is at least one or more of a functional service, a cache service, a database service, a storage service or a message center service. Step S202 specifically includes: and reading out the service configuration information corresponding to the government affairs through the searched configuration file of the government affairs. Step S203 specifically includes: acquiring service configuration information of the government affair in the configuration file; and constructing a business logic tree of the government affair based on the business configuration information, simultaneously forming an access rule based on a business access request, and screening out corresponding business logic from the business logic tree under the limitation of the access rule of the specific government affair, thereby determining a business function corresponding to the business logic. The access rule is a security access restriction rule formed based on a request path initiated by an access terminal and a user access right. Step S204 specifically includes: through the determined service function, reading the corresponding module identification code so as to call the corresponding service function operation module from the service function storage library through the module identification code, realizing the rapid call of the corresponding service function in a mode of 'module identification code', mapping the service function operation module to the service logic tree of the service logic, namely adding the corresponding service function into the corresponding service logic, and generating an operation result only aiming at accessing the specific service of the government affair after executing the service logic tree.
In the service access processing method, the platform server 102 receives a service access request initiated by the access terminal 101; reading preset service configuration information according to the service access request; acquiring a service logic corresponding to the service configuration information, and determining a service function corresponding to the service logic; the service function is compiled by a programming language supporting the concurrency of the micro-threads; and calling the corresponding service function, running the service logic, and returning a running result to the access terminal 101. In the application, the platform server 102 compiles the service logic by adopting the programming language supporting the micro-thread concurrency, and finishes the service access request response by adopting the programming language, so that the multiplexing value is high, a series of access processing processes are omitted, and the efficiency of service access processing is improved.
In one embodiment, as shown in fig. 3, before step S202, the method may further include:
step S301, the platform service terminal 102 receives a service configuration request initiated by the development terminal.
When a developer needs to develop a service, the developer can trigger a service configuration request for developing the service and send the request to the platform server 102 by logging in the platform server 102 through the development end, and the platform server 102 can obtain the service configuration request initiated by the development end through the method.
Step S302, the platform server 102 invokes a service function corresponding to the service configuration request based on a preset analytic grammar, so as to form a service logic.
The service functions are preset in the platform server 102 for implementing different service configuration requests, and the different service configuration requests may respectively correspond to different service functions, for example, a service configuration request may be data read from a certain table, and then the corresponding service function may be a service function for acquiring certain data, and if a certain service configuration request is to store certain data, then the corresponding service function may be a service function for storing data. Specifically, the platform server 102 may parse the service configuration request through various analytic languages, where the analytic language may be parsing through javascript, or parsing the service configuration request through Python language, and after the parsing is completed, a service logic matched with the service configuration request may be formed by using a corresponding service function.
Step S303, the platform server 102 generates service configuration information corresponding to the service configuration request according to the service logic.
Finally, the platform server 102 may complete the service configuration request according to the obtained service logic, generate service configuration information corresponding to the service configuration request, and store the service configuration information in the platform server 102.
Further, step S202 may further include: the platform server 102 responds to the service access request and acquires a corresponding request path; and acquiring service configuration information corresponding to the service access request according to the request path.
The request path refers to a request path corresponding to a service access request, and may be a service access interface corresponding to a certain service access request, and since different service access requests may be triggered in different manners, for example, a service access request triggered by accessing a web page and a service access request triggered by logging in an applet may correspond to different request paths, the platform server 102 may first determine a request path matching the service access request from the received service access requests.
Then, the platform server 102 finds out the service configuration information corresponding to the service access request according to the request path, for example, the platform server 102 finds out the corresponding service access interface by using the request path, finds out the service configuration interface corresponding to the service access interface by using an interface matching method, and obtains the service configuration information corresponding to the service configuration interface.
In the embodiment of the invention, according to a service configuration request received by a platform server 102, a call instruction requesting to call a corresponding service function from a service function repository is generated; forming a service logic according to the module identification code and the service configuration request contained in the calling instruction, and constructing a service logic tree corresponding to the service logic; and the service configuration information is generated and stored as an editable configuration file, so that the editability of the service logic is ensured.
In addition, in order to improve the fluency of the service execution request processing process, after the platform server 102 acquires the service logic corresponding to the service configuration information, before determining the service function corresponding to the service logic, the method may further include: the platform service end 102 performs parameter check on service parameters transmitted from a service access request access service interface according to a preset parameter rule; the parameter rule is a parameter standard formulated according to service parameters required by different service functions; and if the parameter checking result is that the service function corresponding to the service logic is passed, determining the service function corresponding to the service logic.
The service parameter is a parameter input by the access terminal 101 and related to a service access request that needs to be executed, and the parameter may be transmitted to the platform service terminal 102 through the service interface. For example, if the user a needs to query the relevant information of a certain city by logging in a web page, the user needs to input the relevant information of the city after triggering the query request of the city information by logging in the web page, and may be a city name as a service parameter corresponding to the service access request.
Specifically, in order to ensure the fluency of the service access request processing process, after obtaining the service parameters, the platform server 102 first needs to perform parameter check on the service parameters according to parameter rules, where the parameter rules are parameter standards formulated according to the service parameters required by different service functions, for example, for a service in which the user a queries related information of a certain city by logging in a web page, and the corresponding parameter rules may be related information of the certain city, such as a city name, and then the platform server 102 may determine whether the parameter check passes the parameter rules based on whether the city name exists. And determining the service function corresponding to the service logic only when the parameter checking result is that the check is passed.
For example: if city information of a certain city needs to be retrieved, and the service parameter obtained by the platform server 102 is the province name of a certain province, at this time, if the platform server 102 performs parameter check immediately after obtaining the service parameter and can immediately return the parameter check result as failed, an error result can be returned to the access terminal 101 before determining the service function, and if the parameter check is not performed, error information can be returned after determining the service function. Since the parameter check is completed before the service function is generated, the situation that the service parameter needs to be input again because the service logic cannot be executed after the service function is found can be avoided, and the fluency of the service execution request processing process is further improved.
Further, in the above embodiment, the number of the service functions is plural; step S203 may further include: the platform server 102 analyzes the service logic corresponding to the service configuration information based on the analytic grammar; a business function corresponding to the business logic is determined from the plurality of business functions.
The number of the service functions may include a plurality of types, and the number of the service functions is stored in the platform server 102, for example, certain data may be read or stored, and the like, and the number of the service functions is respectively used for implementing different service logics. Specifically, after the platform server 102 obtains the service configuration information, the platform server can use the javascript or Python language to perform parsing to obtain the service logic matched with the service access request, and then determine the service function corresponding to the service logic from the service functions pre-stored in the platform server 102.
In this embodiment, the platform server 102 may use the analytic grammar to form a service logic by calling a service function to obtain service configuration information, and when the access terminal 101 initiates a service access request, the platform server may find the adapted service configuration information according to a request path to complete a response of the request, thereby improving the efficiency of the request response.
In one embodiment, step S204 may further include: the platform server 102 determines a corresponding service type according to the service logic; the service type comprises at least one of a function service, a cache service, a database service, a storage service or a message center service; calling a service function corresponding to the service type according to the service type; and adding the corresponding service function into the service logic, operating the service logic, generating an operation result, and returning the operation result to the access terminal 101.
The service type refers to a service type matched with a service access request initiated by the access terminal 101, and may include, for example, a function service for implementing some access functions, a cache service for caching data, a database service for reading data stored in a database, a storage service for storing a file, or a message center service for pushing a message to a user, and the platform service terminal 102 may be preconfigured with a corresponding relationship between different service types and different service functions. Specifically, after the platform server 102 obtains the service logic, the service type corresponding to the service access request may also be determined based on the service logic, and a service function corresponding to the service type may be found based on the service type. And finally, adding the obtained service function into the service logic so as to enable the service logic to be operated, finally obtaining an operation result of the service logic, and returning the operation result to the access terminal 101 as a processing result of the service access request.
In this embodiment, by establishing the corresponding relationship between different service types and service functions, the platform server 102 may find a corresponding service function based on the service type of the service access request to run the service logic, so that a matched service function may be quickly found according to the service logic, thereby improving the processing efficiency of the service access request.
In one embodiment, as shown in fig. 4, step S201 may further include:
step S401, the platform server 102 monitors, based on the service access interface gateway, a touch request triggered by the access terminal 101 on the service access interface.
The service access interface refers to a request page displayed in the access terminal 101 and used for accessing a service access request triggered by a user, multiple services that can be realized by the platform server 102 can be displayed in the interface, and when the access user needs to realize a certain service access, a trigger mode can be clicked in the service access interface displayed in the access terminal 101 to generate a touch request. When the access terminal 101 establishes a connection relationship with the platform service terminal 102 through the service access interface, the platform service terminal 102 may monitor the touch request of the access terminal 101 through the service access interface gateway.
Step S402, the platform server 102 determines touch coordinate information corresponding to the touch request;
step S403, the platform server 102 matches a service access interface corresponding to the touch request through the touch coordinate information, and generates a service access request corresponding to the service access interface.
The touch coordinate information refers to position coordinate information triggered by the touch request in the service access interface, for example: the access user can generate a touch request by clicking the triggered service access interface, and then the position coordinates of the user on the clicked service access interface can be used as touch coordinate information, since various types of access services can be displayed in the service access interface, the platform server 102 can determine the services specifically required to be executed by the access terminal 101 through the touch coordinate information corresponding to the touch request triggered by the access terminal 101. Since different access services may correspond to different service access interfaces, the platform server 102 may further find a service access interface corresponding to the touch request according to the touch coordinate information, and generate a corresponding service access request according to the obtained service access interface.
In the above embodiment, the platform server 102 may obtain the corresponding service access request according to the touch coordinate information corresponding to the touch request triggered by the access terminal 101 on the service access interface, and may find the access service that needs to be implemented by the access terminal 101 in this manner on the basis that the access terminal 101 displays multiple access services, so as to improve the expansibility of performing the service access processing by the platform server 102.
In an embodiment, as shown in fig. 5, there is further provided a service access processing method, which may be applied in the application environment shown in fig. 1, and may include the following steps:
step S501, the platform service terminal 102 receives a service configuration request initiated by a development terminal;
step S502, the platform server 102 calls the service function corresponding to the service configuration request based on a preset analytic grammar to form a service logic, and generates service configuration information corresponding to the service configuration request according to the service logic;
step S503, the access terminal 101 sends a touch request triggered on the service access interface to the platform service terminal 102;
step S504, the platform server 102 monitors the touch request based on the service access interface gateway, and determines touch coordinate information corresponding to the touch request;
step S505, the platform server 102 matches a service access interface corresponding to the touch request through the touch coordinate information to generate a service access request corresponding to the service access interface;
step S506, the platform server 102 responds to the service access request, acquires a corresponding request path, and acquires service configuration information corresponding to the service access request according to the request path;
step S507, the platform service terminal 102 analyzes the service logic corresponding to the service configuration information based on the analytic grammar, and performs parameter check on the service parameters transmitted from the service access request access service interface according to the preset parameter rule;
step S508, if the result of the parameter check is passed, the platform service end 102 determines a service function corresponding to the service logic from the plurality of service functions; the service function is compiled by a programming language supporting the concurrency of the micro-threads;
step S509, the platform server 102 calls a corresponding service function and runs a service logic, and returns a running result to the access terminal 101;
in step S510, the access terminal 101 receives the operation result.
In this embodiment, the platform server 102 compiles the service logic by using a programming language supporting micro-thread concurrency, and can complete a service access request response by using the programming language, thereby improving the efficiency of service processing, and the platform server 102 can form the service logic by calling a service function by using analytic grammar, thereby obtaining service configuration information, and when the access terminal 101 initiates a service access request, can find the adapted service configuration information according to a request path, thereby completing the response of the request, thereby improving the efficiency of request response, and in addition, further improves the fluency of a service execution request processing process by performing parameter check on service parameters. In addition, the platform server 102 may obtain a corresponding service access request according to touch coordinate information corresponding to a touch request triggered by the access terminal 101 on the service access interface, and may find an access service that the access terminal 101 needs to implement in this manner on the basis that the access terminal 101 displays multiple access services, thereby improving the expandability of performing the service access processing by the platform server 102.
In an application example, a low-code programming and running integrated platform is provided, as shown in fig. 6, the platform provides a convenient service access manner, so that a developer can implement and issue a complete service function at the same time by only editing a service configuration information.
In the aspect of specific implementation, on one hand, a programming language supporting micro-thread concurrency is used, for example, Golang language is used for packaging relevant function codes of daily business requirements as a bottom-layer support; on the other hand, the generation of the service configuration information is realized by using a analytic grammar, such as a JavaScript analytic language. When the user accesses the service interface, the service logic contained in the service configuration information is analyzed in real time and mapped to the corresponding service function. Therefore, a low-code programming operation integrated platform is realized, the complex steps of compiling and packaging, uploading an operation file to a server and releasing service are omitted, and the development process is simplified to the greatest extent.
In addition, through targeted function code encapsulation, the common service functions in the daily service access requests are all built into one service function, so that developers can realize most service functions in service configuration work by simple configuration. The difficulty of service configuration is greatly reduced, and the personnel cultivation cost is reduced.
The specific implementation manner is shown in fig. 7, and may include the following two procedures
The service configuration process comprises the following steps:
1. a developer logs in a platform server through an development terminal, namely a background page of the low-code programming operation integrated platform;
2. adding or editing a service interface configuration in a background page to initiate a service configuration request;
3. in the editing process, the built-in service function is called by using analytic grammar, such as JavaScript grammar, so as to complete service logic. The configured content comprises: the template definition of the service configuration request and the service configuration request described by the analytic grammar; after the service function is called, the service functions are executed in sequence according to the configured contents described in the configured contents, so that service configuration information corresponding to the service access request is obtained.
4. After the service configuration information is stored, the platform service end can automatically write in the memory and the corresponding etcd for storage, and the storage is immediately effective;
5. at this time, the access terminal can access the corresponding access interface through the gateway of the platform service terminal.
(II) service access flow:
1. a user logs in or accesses service access interfaces such as an applet, an App or an HTML5 page and the like, and initiates a service access request;
2. the service access request is forwarded through a gateway of a platform server and enters a platform layer;
3. the platform layer reads the corresponding service access request according to the request path matched with the service access request, and performs parameter check on the parameters transmitted by the service interface according to the parameter rules;
4. a syntax semantic parsing module of a platform kernel is called, and business logic is parsed based on analytic syntax;
5. then, calling a service function corresponding to the service logic, such as a service function of Golang language, and operating the service logic of each step in the service logic tree;
6. after the operation is finished, the result is returned to the access end along the request link.
The low-code programming operation integrated platform can keep high-efficiency operation performance. The method mainly comprises the steps of providing underlying support through a programming language such as a Golang language and the like which supports the concurrency of micro-threads, and performing service configuration and service access through analytic grammars such as JavaScript and the like.
The application example not only maintains higher operation efficiency to the maximum extent, but also avoids complex work such as compiling/packing/uploading/releasing in the traditional development flow and solves the problem of low debugging and testing efficiency caused by complex packing flow through the configuration of the analytic language and the bottom support provided by the programming language supporting micro-thread concurrency by the Golang language. Meanwhile, after targeted service function codes are packaged, common service functions are very simple to realize, service logic of one interface can be completed through several lines of configuration, the problem that coding work efficiency is low due to high coding complexity is solved, the problem that personnel cultivation cost is high due to high difficulty of development frames is solved, and service access response processing efficiency is further guaranteed.
It should be understood that, although the steps in the flowcharts of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the figures may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the steps or stages is not necessarily sequential, but may be performed alternately or in alternation with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 8, there is provided a service access processing apparatus applied to a development server, including: an access request receiving module 801, a configuration information obtaining module 802, a service logic analyzing module 803, and a service logic operating module 804, wherein:
an access request receiving module 801, configured to receive a service access request initiated by an access terminal;
a configuration information obtaining module 802, configured to read preset service configuration information according to the service access request;
a service logic analyzing module 803, configured to obtain a service logic corresponding to the service configuration information, and determine a service function corresponding to the service logic; the service function is compiled by a programming language supporting the concurrency of the micro-threads;
and the service logic operation module 804 is used for calling the corresponding service function, operating the service logic and returning the operation result to the access terminal.
In one embodiment, the service access processing apparatus further includes: the configuration information generation module is used for receiving a service configuration request initiated by an initiating terminal; calling a service function corresponding to the service configuration request based on a preset analytic grammar to form a service logic; and generating service configuration information corresponding to the service configuration request according to the service logic.
In one embodiment, the configuration information obtaining module 802 is further configured to, in response to the service access request, obtain a corresponding request path; and acquiring service configuration information corresponding to the service access request according to the request path.
In an embodiment, the service logic parsing module 803 is further configured to perform parameter checking on a service parameter transmitted at a service access request access service interface according to a preset parameter rule; the parameter rule is a parameter standard formulated according to service parameters required by different service functions; and if the parameter checking result is that the service function corresponding to the service logic is passed, determining the service function corresponding to the service logic.
In one embodiment, the number of traffic functions is plural; a service logic analyzing module 803, further configured to analyze a service logic corresponding to the service configuration information based on the analytic grammar; a business function corresponding to the business logic is determined from the plurality of business functions.
In an embodiment, the service logic operation module 804 is further configured to determine a corresponding service type according to the service logic; the service type comprises at least one of a function service, a cache service, a database service, a storage service or a message center service; calling a service function corresponding to the service type according to the service type; and adding the corresponding service function into the service logic, operating the service logic, generating an operation result, and returning the operation result to the access terminal.
In an embodiment, the access request receiving module 801 is further configured to monitor, based on the service access interface gateway, a touch request triggered by the access terminal on the service access interface; determining touch coordinate information corresponding to the touch request; and matching a service access interface corresponding to the touch request through the touch coordinate information to generate a service access request corresponding to the service access interface.
For the specific definition of the service processing device, reference may be made to the above definition of the service access processing method, which is not described herein again. The modules in the service processing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In an embodiment, as shown in fig. 9, there is further provided a service access processing system, which includes a platform service terminal 902, and an access terminal 901 communicatively connected to the platform service terminal 902:
the access terminal 901 is configured to trigger a service access request and send the service access request to the platform server 902;
the platform server 902 is configured to read preset service configuration information according to the service access request; acquiring a service logic corresponding to the service configuration information, and determining a service function corresponding to the service logic; the service function is compiled by a programming language supporting the concurrency of the micro-threads;
the platform server 902 is further configured to call a corresponding service function and run a service logic, and return a running result to the access terminal 901;
and the access terminal 901 is configured to receive the operation result.
The service access processing system adopts the programming language supporting the micro-thread concurrency to compile the service logic, and can adopt the programming language to complete the service access request response, thereby improving the efficiency of service processing.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing service configuration information. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a service access processing method.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for processing service access, the method comprising:
receiving a service access request initiated by an access terminal;
reading preset service configuration information according to the service access request;
acquiring a service logic corresponding to the service configuration information, and determining a service function corresponding to the service logic; the service function is compiled by a programming language supporting the concurrency of the micro-threads;
and calling the corresponding service function, running the service logic and returning a running result to the access terminal.
2. The method according to claim 1, wherein before reading the preset service configuration information according to the service access request, the method comprises:
receiving a service configuration request initiated by an initiating terminal;
calling the service function corresponding to the service configuration request based on a preset analytic grammar to form a service logic;
and generating service configuration information corresponding to the service configuration request according to the service logic.
3. The method according to claim 2, wherein the reading preset service configuration information according to the service access request includes:
responding to the service access request, and acquiring a corresponding request path;
and acquiring service configuration information corresponding to the service access request according to the request path.
4. The method according to claim 3, wherein after the obtaining of the service logic corresponding to the service configuration information and before the determining of the service function corresponding to the service logic, further comprising:
according to a preset parameter rule, performing parameter check on service parameters transmitted from the service access request access service interface; the parameter rule is a parameter standard formulated according to service parameters required by different service functions;
and if the parameter checking result is that the service function corresponding to the service logic is passed, determining the service function corresponding to the service logic.
5. The method of claim 3, wherein the number of the traffic functions is plural; the obtaining of the service logic corresponding to the service configuration information and the determining of the service function corresponding to the service logic include:
analyzing the service logic corresponding to the service configuration information based on the analytic grammar;
determining a business function corresponding to the business logic from the plurality of business functions.
6. The method of claim 1, wherein said invoking the corresponding service function and running the service logic and returning a running result to the access terminal comprises,
determining a corresponding service type according to the service logic; the service type comprises at least one of a function service, a cache service, a database service, a storage service or a message center service;
calling a service function corresponding to the service type according to the service type;
and adding the corresponding service function into the service logic, operating the service logic, generating the operation result, and returning the operation result to the access terminal.
7. The method of claim 1, wherein the receiving a service access request initiated by an access terminal comprises:
monitoring a touch request triggered by the access terminal on a service access interface based on a service access interface gateway;
determining touch coordinate information corresponding to the touch request;
and matching a service access interface corresponding to the touch request through the touch coordinate information to generate a service access request corresponding to the service access interface.
8. A service access processing apparatus, comprising:
the access request receiving module is used for receiving a service access request initiated by an access terminal;
the configuration information acquisition module is used for reading preset service configuration information according to the service access request;
the service logic analysis module is used for acquiring the service logic corresponding to the service configuration information and determining a service function corresponding to the service logic; the service function is compiled by a programming language supporting the concurrency of the micro-threads;
and the service logic operation module is used for calling the corresponding service function, operating the service logic and returning an operation result to the access terminal.
9. A service access processing system is characterized by comprising a platform service end and an access end in communication connection with the platform service end:
the access terminal is used for triggering a service access request and sending the service access request to the platform server;
the platform server is used for reading preset service configuration information according to the service access request; acquiring a service logic corresponding to the service configuration information, and determining a service function corresponding to the service logic; the service function is compiled by a programming language supporting the concurrency of the micro-threads;
the platform server is also used for calling the corresponding service function, running the service logic and returning a running result to the access terminal;
and the access terminal is used for receiving the operation result.
10. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
CN202011213567.9A 2020-11-04 2020-11-04 Service access processing method, device and system and computer equipment Pending CN112328219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011213567.9A CN112328219A (en) 2020-11-04 2020-11-04 Service access processing method, device and system and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011213567.9A CN112328219A (en) 2020-11-04 2020-11-04 Service access processing method, device and system and computer equipment

Publications (1)

Publication Number Publication Date
CN112328219A true CN112328219A (en) 2021-02-05

Family

ID=74323567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011213567.9A Pending CN112328219A (en) 2020-11-04 2020-11-04 Service access processing method, device and system and computer equipment

Country Status (1)

Country Link
CN (1) CN112328219A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506481A (en) * 2020-12-01 2021-03-16 数字广东网络建设有限公司 Service data interaction method and device, computer equipment and storage medium
CN113076095A (en) * 2021-04-23 2021-07-06 南京始云网络科技有限公司 Service implementation method and system based on separation of basic and logic functions
CN113157425A (en) * 2021-05-20 2021-07-23 深圳马六甲网络科技有限公司 Service access processing method, device, equipment and storage medium
CN116541019A (en) * 2023-06-28 2023-08-04 深圳市极限网络科技有限公司 Data forwarding method, system, device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617047A (en) * 2013-12-16 2014-03-05 北京中电普华信息技术有限公司 Method, device and processor for developing business processes
US20140245262A1 (en) * 2011-10-05 2014-08-28 Hartigen Solutions, Llc. Integrated Software Development and Deployment Architecture and High Availability Client-Server Systems Generated Using the Architecture
CN110825362A (en) * 2019-11-04 2020-02-21 广东道一信息技术股份有限公司 Low-code application software development system and method
CN111338604A (en) * 2020-02-28 2020-06-26 深圳前海微众银行股份有限公司 Service generation method, device, equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140245262A1 (en) * 2011-10-05 2014-08-28 Hartigen Solutions, Llc. Integrated Software Development and Deployment Architecture and High Availability Client-Server Systems Generated Using the Architecture
CN103617047A (en) * 2013-12-16 2014-03-05 北京中电普华信息技术有限公司 Method, device and processor for developing business processes
CN110825362A (en) * 2019-11-04 2020-02-21 广东道一信息技术股份有限公司 Low-code application software development system and method
CN111338604A (en) * 2020-02-28 2020-06-26 深圳前海微众银行股份有限公司 Service generation method, device, equipment and computer readable storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
RACHIT ARORA ET AL.: "Sagitec Software Studio (S3) - A Low Code Application Development Platform", IEEE, pages 13 - 17 *
SLAWOMIR PAWALAK: "利用低代码技术进行软件研发", 现代制造, vol. 2020, no. 23, pages 63 *
朱荣鑫等: "Spring3.X编程技术与应用", 31 March 2020, 北京:北京邮电大学出版社, pages: 231 - 232 *
李璜华等: "一种包解析器硬件配置描述语言及其编译结构", 软件学报, vol. 31, no. 08, pages 2285 - 2308 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506481A (en) * 2020-12-01 2021-03-16 数字广东网络建设有限公司 Service data interaction method and device, computer equipment and storage medium
CN113076095A (en) * 2021-04-23 2021-07-06 南京始云网络科技有限公司 Service implementation method and system based on separation of basic and logic functions
CN113157425A (en) * 2021-05-20 2021-07-23 深圳马六甲网络科技有限公司 Service access processing method, device, equipment and storage medium
CN113157425B (en) * 2021-05-20 2024-05-03 深圳马六甲网络科技有限公司 Service access processing method, device, equipment and storage medium
CN116541019A (en) * 2023-06-28 2023-08-04 深圳市极限网络科技有限公司 Data forwarding method, system, device and readable storage medium
CN116541019B (en) * 2023-06-28 2023-09-29 深圳市极限网络科技有限公司 Data forwarding method, system, device and readable storage medium

Similar Documents

Publication Publication Date Title
CN107491485B (en) Method for generating execution plan, plan unit device and distributed NewSQ L database system
CN112328219A (en) Service access processing method, device and system and computer equipment
WO2017193769A1 (en) Method and apparatus for conversion between machine learning models
US11093222B2 (en) Generating interfaces from annotated entity definitions for developing applications
US20150143348A1 (en) Hybrid dynamic code compiling device, method, and service system thereof
CN111176629A (en) Application development method and device
CN113468448A (en) Page rendering method and device
CN108984202B (en) Electronic resource sharing method and device and storage medium
CN111831384A (en) Language switching method and device, equipment and storage medium
CN112187713B (en) Message conversion method, device, computer equipment and storage medium
CN115599386A (en) Code generation method, device, equipment and storage medium
CN107391528B (en) Front-end component dependent information searching method and equipment
CN108595656B (en) Data processing method and system
CN109241157B (en) Data calling method and device, communication equipment and storage medium
US11194602B2 (en) Runtime execution of entities and services in an application object runtime environment
CN103473431B (en) A kind of method of the on-line debugging PHP program of lightweight
CN113778897A (en) Automatic test method, device, equipment and storage medium of interface
CN113836451A (en) Webpage access method and device, computer equipment and storage medium
US11093220B2 (en) Generating interfaces from data and service definitions for developing applications
CN109492144B (en) Association relation analysis method, device and storage medium for software system
CN111158777A (en) Component calling method and device and computer readable storage medium
CN111831277B (en) Virtual data generation method, system, device and computer readable storage medium
US20220050669A1 (en) Representing asynchronous state machine in intermediate code
CN113821209A (en) Interactive data processing method and device, electronic equipment and storage medium
CN113138767A (en) Code language conversion method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination