CN109213770A - Data processing method, system, computer equipment and storage medium - Google Patents

Data processing method, system, computer equipment and storage medium Download PDF

Info

Publication number
CN109213770A
CN109213770A CN201810584611.3A CN201810584611A CN109213770A CN 109213770 A CN109213770 A CN 109213770A CN 201810584611 A CN201810584611 A CN 201810584611A CN 109213770 A CN109213770 A CN 109213770A
Authority
CN
China
Prior art keywords
micro services
data
service request
order
transaction scheduling
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.)
Granted
Application number
CN201810584611.3A
Other languages
Chinese (zh)
Other versions
CN109213770B (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810584611.3A priority Critical patent/CN109213770B/en
Priority to PCT/CN2018/104727 priority patent/WO2019232962A1/en
Publication of CN109213770A publication Critical patent/CN109213770A/en
Application granted granted Critical
Publication of CN109213770B publication Critical patent/CN109213770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to data processing method, system, computer equipment and storage mediums, the described method includes: API Gateway receives the service request that client is sent, and service request is sent to order field micro services, the micro services selected by being ranked up to generate order event by order field micro services;Micro services are docked after receiving order event in transaction scheduling center, with execution of order event, export full business result;Data change result via transaction scheduling center, is sent to order field micro services by micro services, is updated with completing the data of each micro services.Coordinate each micro services by increasing transaction scheduling center, when guaranteeing that each micro services call multiple databases, guarantees the consistency of data.

Description

Data processing method, system, computer equipment and storage medium
Technical field
The present invention relates to information technology fields, are situated between more particularly to data processing method, system, computer equipment and storage Matter.
Background technique
Database is the warehouse for coming tissue, storage and management data according to data structure.In information-based society, sufficiently have Effect ground management and use various information resource, is the precondition for carrying out scientific research and decision-making management.Database technology is pipe The core for managing the various informations systems such as information system, the office automation system, DSS is to carry out scientific research With the important technical of decision-making management.Existing relevant database has the ability for solving complex transaction scene, and relationship Type database meets ACID characteristic, i.e. atomicity, consistency, isolation and permanent.Database with ACID characteristic is supported The strong consistency of data can guarantee that data itself are not in inconsistent situation.
However under micro services framework, each micro services have the database of oneself, once the system under micro services framework ACID characteristic cannot simply be met just and will appear the data under micro services framework there is a situation where it is inconsistent, including when one it is micro- When servicing simultaneously across the multiple databases of foot, multiple data need to be operated simultaneously, the data in database is caused to be likely to occur part number The case where being updated successfully according to update failure, partial data, so that data not can guarantee consistency;Dependence of the micro services to database Property it is strong, and easily invasion micro services system, cause data to be lost;Business under existing micro services item cannot be distinguished service exception and Technology is abnormal, cannot handle in time the abnormal conditions of appearance.
Summary of the invention
Based on this, it is necessary to which for when carrying out data processing, data update disunity, and database is easily made and encroached on, made The problems such as being lost at data provides data processing method, system, computer equipment and storage medium.
A kind of data processing method, the data processing method specifically include following specific steps:
Interface gateway API Gateway receives the service request that client is sent, and the service request is sent to and is ordered Single field micro services, order field micro services will be selected according to the selected micro services for needing to access of the service request Micro services be ranked up according to the sequencing for meeting the service request, with generate one by one access micro services order thing Part, the API Gateway and order field micro services are arranged in application system;
Each micro services are docked after receiving the order event in transaction scheduling center, access micro services one by one with execution of order Event, output meet the business of the service request as a result, the transaction scheduling is centrally disposed in the application system;
The data change result generated when executing the order event is sent to the transaction scheduling by the micro services Center, the transaction scheduling center summarize the data and alternate as a result, and the data change result is sent to the order Field micro services are updated with completing the data of each micro services.
In one embodiment, the order event for generating access micro services one by one includes:
Client obtains service request by input interface, calls transmission interface to be sent to the service request described On API Gateway, the API Gateway, to the field micro services that receive orders, the service request is sent out by data-interface It send to the micro services of the order field, order field micro services need to access in incognito according to the service request is selected Business, and selected micro services are ranked up according to the sequencing for meeting the service request, it is accessed one by one with generation micro- The order event of service, the input interface and the transmission interface are arranged in the client.
In one embodiment, described export meets the business result of the service request and includes:
Transaction scheduling center includes data-processing interface, and the transaction scheduling center is docked by the data-processing interface The order event of order field micro services transmission is received after the micro services of order field, the transaction scheduling center passes through described Data-processing interface docks other micro services, carries out access micro services one by one and is exported with execution of order event and met the business The business of request is as a result, the transaction scheduling is centrally disposed in the application system.
In one embodiment, the data that summarize alternate as a result, update micro services data include:
After micro services provide required service according to the requirement of the service request for it, and call the micro services corresponding Data-base recording complete data caused by this service request and alternate as a result, the micro services are by the data change result It is sent to transaction scheduling center, the transaction scheduling center includes data process core, and the transaction scheduling center is by calling institute It states data process core and summarizes the data change as a result, and the data change result is sent to the order field in incognito Business is updated with completing the data of each micro services, and the data lab setting is in the operation interface of the micro services.
In one embodiment, the database includes Oracle, MySQL, DB2 or Sybase.
In one embodiment, the client includes cell phone client, computer client and third party's client;
The application system includes Nginx application system and WEB application system.
In one embodiment, there is docking micro services time-out when carrying out docking micro services in the transaction scheduling center Or micro services can not provide the abnormal conditions of service, the abnormal conditions are fed back to the order by the transaction scheduling center Field micro services, order field micro services will carry out retry mechanism to the order event, until the micro services can Re-execute the order event.
Based on the same technical idea, the present invention also provides a kind of data processing system, the data processing system includes Generate order event elements, outgoing traffic result unit and data updating unit;
The generation order event elements receive the service request that client is sent for interface gateway API Gateway, And the service request is sent to order field micro services, order field micro services are selected according to the service request The micro services for needing to access calmly, and selected micro services are ranked up according to the sequencing for meeting the service request, with The order event for accessing micro services one by one is generated, the API Gateway and the setting of order field micro services are in application system In system;
The outgoing traffic result unit, received for transaction scheduling center dock after the order event it is each in incognito Business accesses micro services one by one with execution of order event, and output meets the business of the service request as a result, in the transaction scheduling The heart is arranged in the application system;
The data generated when executing the order event are alternated for the micro services and are tied by the data updating unit Fruit is sent to the transaction scheduling center, and the transaction scheduling center summarizes the data and alternates as a result, and more by the data Repeatedly result is sent to order field micro services, is updated with completing the data of each micro services.
Based on the same technical idea, described the present invention also provides a kind of computer equipment, including memory and processor Computer-readable instruction is stored in memory, when the computer-readable instruction is executed by the processor, so that the place Manage the step of device executes above-mentioned data processing method.
Based on the same technical idea, the present invention also provides a kind of storage medium for being stored with computer-readable instruction, institutes When stating computer-readable instruction and being executed by one or more processors, so that one or more processors are executed as at above-mentioned data The step of reason method.
Above-mentioned data processing method, system, computer equipment and storage medium receive visitor by the API Gateway The service request that family end is sent, and the service request is sent to order field micro services, the order field is in incognito The micro services of access needed for business selectes the service request according to the service request, and by selected micro services according to meeting The sequencing for stating service request is ranked up, to generate the order event for accessing micro services one by one;The transaction scheduling center Each micro services are docked after receiving the order event, access micro services one by one with execution of order event, output meets the industry The business result of business request;The data change result generated when executing the order event is sent to described by the micro services Transaction scheduling center, the transaction scheduling center summarize the data and alternate as a result, and to send it to the order field micro- Service is updated with completing the data of each micro services.Therefore, coordinate each micro services by increasing transaction scheduling center, protect When demonstrate,proving each multiple databases of micro services calling, guarantee the consistency of data, while by retry mechanism, increasing to abnormal conditions Processing, improve the real-time of data call and guarantee data consistency, reduce micro services to the degree of dependence of database, keep away Exempt to invade micro services system.
Detailed description of the invention
Fig. 1 is a kind of flow chart of data processing method in one embodiment of the invention;
Fig. 2 is a kind of environment schematic of data processing method in one embodiment of the invention;
Fig. 3 is a kind of schematic diagram of data processing system in one embodiment of the invention;
Wherein, 1- cell phone client;2-API Gateway;3- order field micro services;4- account field micro services;5- Client field micro services;6- product scope micro services;7- transaction scheduling center;8-Nginx application system.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It " also may include plural form that a ", " described " and ", which is somebody's turn to do,.It is to be further understood that used in specification of the invention Wording " including " refers to that there are the feature, program, step, operation, element and/or component, but it is not excluded that in the presence of or add Add other one or more features, program, step, operation, element, component and/or their group.
Fig. 1 is a kind of flow chart of data processing method in one embodiment of the invention, as shown in Figure 1, at the data Reason method, may include steps of:
Step S1: interface gateway API Gateway receives the service request that client is sent, and the service request is sent out It send to order field micro services, order field micro services need to access in incognito according to the service request is selected Business, and selected micro services are ranked up according to the sequencing for meeting the service request, it is accessed one by one in incognito with generating The order event of business, the API Gateway and order field micro services are arranged in application system.
In the present embodiment, the order event that the generation accesses micro services one by one includes:
Client obtains service request by the input interface, calls transmission interface that the service request is sent to institute It states on API Gateway, the API Gateway passes through data-interface to the field micro services that receive orders, by the service request It is sent in the micro services of the order field, order field micro services access micro- according to the selected needs of the service request Service, and selected micro services are ranked up according to the sequencing for meeting the service request, it is accessed one by one with generating The order event of micro services, the input interface and the transmission interface are arranged in the client.
The client refers to corresponding with server, provides the program of local service for client comprising cell phone customer End, computer client and third party's client.Client in the present embodiment can be selected as cell phone client, the mobile phone visitor Family end refers in the software of mobile phone terminal operation, and perfect, convenient, various, efficient mobile marketing can be provided for enterprise.With Family can be requested by the input interface incoming traffic of cell phone client whenever and wherever possible, send the interface transmission industry by calling Business request.
In the present embodiment, the application system can be selected as Nginx application system, and the Nginx application system is one A high performance HTTP and Reverse Proxy are used for load balancing, both can directly support Rails and PHP inside it Program is externally serviced, and can also support externally to be serviced as HTTP server.Meanwhile Nginx application system also has Have the advantages that occupy that memory is few, concurrent capability is strong.
In the present embodiment, the API Gateway refers to API gateway, i.e., the service request that client is sent require through API Gateway is crossed, order field micro services are then reached.The API Gateway connects as the same of system external Mouthful, it is possible to reduce the perception that called side realizes service.
Cell phone client obtains service request by input interface, calls and sends the interface transmission service request;Institute It states and API Gateway and order field micro services is set in Nginx application system, the API Gateway receives the mobile phone After the service request that client is sent, by calling data-interface to the field micro services that receive orders, by the service request Order field micro services are sent to, order field micro services will access micro- according to the selected needs of the service request Service, and selected micro services are ranked up according to the sequencing for meeting the service request, it is accessed one by one with generating The order event of micro services, the input interface and the transmission interface are arranged in the cell phone client.
Step S2: each micro services are docked after receiving the order event in transaction scheduling center, access one by one micro services with Execution of order event, output meet the business of the service request as a result, the transaction scheduling is centrally disposed in the application system In system.
In the present embodiment, the business result that the output meets the service request includes:
Transaction scheduling center includes data-processing interface, and the transaction scheduling center is docked by the data-processing interface The order event of order field micro services transmission is received after the micro services of order field, the transaction scheduling center passes through described Data-processing interface docks other micro services, carries out access micro services one by one and is exported with execution of order event and met the business The business of request is as a result, the transaction scheduling is centrally disposed in the application system.
In the present embodiment, the application system can be selected as Nginx application system, and the Nginx application system is one A high performance HTTP and Reverse Proxy are used for load balancing, both can directly support Rails and PHP inside it Program is externally serviced, and can also support externally to be serviced as HTTP server.Meanwhile Nginx application system also has Have the advantages that occupy that memory is few, concurrent capability is strong.
The transaction scheduling centrales be guarantee database in data real-time effectiveness, thus guarantee it is each in incognito Business being capable of reliability service comprising data-processing interface, the transaction scheduling center are each by data-processing interface docking A micro services, to execute the order event.
Transaction scheduling center is set in the Nginx application system, and described is that service dispatch center passes through the data Processing Interface receives the order event of its transmission to the field micro services that receive orders, meanwhile, it is docked by the data-processing interface Other micro services, carrying out access micro services one by one, to execute the order event, output meets the business of the service request As a result.
Step S3: the data change result generated when executing the order event is sent to the thing by the micro services Be engaged in control centre, and the transaction scheduling center summarizes the data and alternates as a result, and the data change result is sent to institute Order field micro services are stated, are updated with completing the data of each micro services.
In the present embodiment, the data that summarize alternate as a result, update micro services data include:
After micro services provide required service according to the requirement of the service request for it, the micro services are by calling institute It states the corresponding data-base recording of micro services and completes the change of data caused by this service request as a result, and the data alternate As a result it is sent to transaction scheduling center, the transaction scheduling center includes data process core, and the transaction scheduling center passes through tune Summarize the data with the data process core to alternate as a result, and that the data change result is sent to the order field is micro- Service is updated with completing the data of each micro services, and the data lab setting is in the operation interface of the micro services.
The database refers to be stored together in a certain way, can be multiple user sharings, with as small as possible superfluous Remaining is management information system, handles official business automatically with application program data acquisition system independent of each other with globality, sharing The core of the various informations such as change system, DSS is the important technology hand for carrying out scientific research and decision-making management Section.The database includes Oracle, MySQL, DB2 or Sybase.In the present embodiment, the database be can be selected as Oracle database, the oracle database is a relational database management system of Oracle, in database Field is constantly in leading position, system portability is good, easy to use, function is strong, can be suitable for it is all kinds of it is large, medium and small, Microcomputer environment.
When carrying out docking micro services, docking micro services time-out or micro services occur can not be mentioned at the transaction scheduling center For the abnormal conditions of service, the abnormal conditions are fed back to order field micro services by the transaction scheduling center, described Order field micro services will carry out retry mechanism to the order event, until the micro services can re-execute the order Event.For example, when micro services are docked by the data-processing interface in the transaction scheduling center, there is docking time-out The case where, which can be fed back to order field micro services by the transaction scheduling center, and the order field is micro- Service will retransmit service request, so that the transaction scheduling center is docked again with the micro services.
Above-described embodiment coordinates each micro services by increasing transaction scheduling center, and it is more to guarantee that each micro services are called When a database, guarantee the consistency of data.Meanwhile by retry mechanism, increases the processing to abnormal conditions, improve data tune Real-time and the consistency for guaranteeing data.
Fig. 2 is a kind of environment schematic of data processing method in one embodiment of the invention, as shown in Fig. 2, selected visitor Family end is cell phone client 2, and selecting application system is Nginx application system 8, and API is arranged in Nginx application system Gateway2, order field micro services 3, account field micro services 4, client field micro services 5, product scope micro services 6 and thing Be engaged in control centre 7.
Input interface is set in cell phone client 1 and sends interface, cell phone client 1 is applied to purchase in input interface acquisition The service request of fund calls the transmission interface that the service request for applying to purchase fund is sent to API by internet On Gateway2, data-interface is set on API Gateway2, is docked by data-interface with order field micro services 3, by Shen The service request of purchase fund is sent in order field micro services 3, and order field micro services 3 are after receiving the service request, choosing Determine the micro services accessed needed for fund is applied to purchase, selected micro services are arranged according to the sequencing for completing to apply to purchase fund The order event is sent on transaction scheduling center 7 by sequence after generating the order event for fund of applying to purchase, and transaction scheduling center 7 is wrapped Data process core and data-processing interface are included, transaction scheduling center 7 connects the field micro services 3 that receive orders by data-processing interface The order event for receiving fund of applying to purchase, docks micro services according to the micro services sequencing shown on the event order, with complete one by one Apply to purchase at fund.
Product scope micro services 6 are called, product scope micro services 6 are according to the Shen of this fund product under Fund Company Amount is purchased to judge whether this fund can be bought.Product scope micro services 6 are when judging that this fund cannot be bought, then The judging result is fed back on transaction scheduling center 7, transaction scheduling center 7 then feeds back to mobile phone visitor by API Gateway2 Family end 1, to inform that user's fund can not be applied to purchase.Product scope micro services 6 are judging that this fund can be bought The judging result is fed back into transaction scheduling center 7 afterwards, client field micro services 5 are docked at transaction scheduling center 7, and client field is micro- Service 5 is then deposited according to user account, and fund applies to purchase the conditions such as the amount of money and time buying to judge whether the user meets the base Gold applies to purchase condition, and client field micro services 5 are judging that client is unsatisfactory for when applying to purchase condition of the fund, then by the judging result Transaction scheduling center 7 is fed back to, transaction scheduling center 7 then feeds back to cell phone client 1 by API Gateway2, to inform use What family did not met the fund applies to purchase condition.Client field micro services 5 are judging that client meets when applying to purchase condition of the fund, then will The judging result is fed back on transaction scheduling center 7, and account field micro services 4 are docked at transaction scheduling center 7, and account field is in incognito Business 4 then applies to purchase the amount of money according to fund and deducts the fund that the fund is applied to purchase from the fund account of user, and applies to purchase to this fund Transaction is recorded, and will be fed back on transaction scheduling center 7 from the fund fund deducted in the fund account of user, things tune Degree center 7 is then fed back in cell phone client 1 by API Gateway2, informs that user this time applies to purchase fund success and because applying to purchase The fund that fund deducts.
After this applies to purchase fund transaction completion, the fund product quantity of purchase is fed back to thing by product scope micro services 6 Be engaged in control centre 7, and the fund account information of user is then fed back to transaction scheduling center 7, account field by client field micro services 6 The fund information deducted from the fund account of user by purchase fund is then fed back to transaction scheduling center 7 by micro services 4.Affairs Control centre 7 is alternated by calling the data process core in it to summarize the data in each micro services as a result, and data alternate As a result it is sent in order field micro services 3.
Above-described embodiment is using API Gateway2 by inputting the service request of fund of applying to purchase in cell phone client 1 The fund of applying to purchase selectes required micro services, and generates order event according to sequencing, and transaction scheduling center 7 then receives order thing After part, micro services are accessed one by one, with execution of order event, are completed fund and are applied to purchase.It is saved by transaction scheduling center 7 and is visited one by one The time for asking all micro services improves the efficiency that fund is applied to purchase.
Based on the same technical idea, the embodiment of the invention also provides a kind of data processing systems, as shown in figure 3, should System includes generating order event elements, outgoing traffic result unit and data updating unit;
The generation order event elements receive the service request that client is sent for API Gateway, and will be described Service request is sent to order field micro services, and order field micro services need to visit according to the service request is selected The micro services asked, and selected micro services are ranked up according to the sequencing for meeting the service request, to generate one by one The order event of micro services is accessed, the API Gateway and order field micro services are arranged in application system;
The outgoing traffic result unit, received for transaction scheduling center dock after the order event it is each in incognito Business accesses micro services one by one with execution of order event, and output meets the business of the service request as a result, in the transaction scheduling The heart is arranged in the application system;
The data generated when executing the order event are alternated for the micro services and are tied by the data updating unit Fruit is sent to the transaction scheduling center, and the transaction scheduling center summarizes the data and alternates as a result, and sending it to institute Order field micro services are stated, are updated with completing the data of each micro services.
Above-described embodiment receives the industry that client is sent by API Gateway by the generation order event elements Business request, and the service request is sent to order field micro services, order field micro services are according to the industry The selected micro services for needing to access of business request, and selected micro services are carried out according to the sequencing for meeting the service request Sequence, to generate the order event for accessing micro services one by one;Pass through the transaction scheduling using the outgoing traffic result unit Each micro services are docked after receiving the order event in center, access micro services one by one with execution of order event, output meets institute State the business result of service request;The data updating unit will be generated using the micro services when executing the order event Data change result be sent to the transaction scheduling center, the transaction scheduling center summarizes the data and alternates as a result, simultaneously Order field micro services are sent it to, are updated with completing the data of each micro services.By increasing transaction scheduling center Coordinate each micro services, when guaranteeing that each micro services call multiple databases, guarantees the consistency of data.
Based on the same technical idea, the invention also provides a kind of computer equipment, the computer equipment includes depositing Reservoir, processor and it is stored in the computer-readable instruction that can be run on the memory and on the processor, the place Reason device performs the steps of interface gateway API Gateway and receives what client was sent when executing the computer-readable instruction Service request, and the service request is sent to order field micro services, order field micro services are according to The selected micro services for needing to access of service request, and by selected micro services according to meet the sequencing of the service request into Row sequence, to generate the order event for accessing micro services one by one;It is docked after receiving the order event at the transaction scheduling center Each micro services access micro services one by one with execution of order event, and output meets the business result of the service request;It is described micro- The data change result generated when executing the order event is sent to the transaction scheduling center, the affairs tune by service Degree center summarize the data alternate as a result, and send it to order field micro services, to complete each micro services Data update.
Based on the same technical idea, the present invention also provides a kind of storage medium for being stored with computer-readable instruction, When the computer-readable instruction is executed by one or more processors, so that one or more processors execute following steps: Interface gateway API Gateway receives the service request that client is sent, and the service request is sent to the order and is led Domain micro services, the micro services that order field micro services are accessed according to the selected needs of the service request, and it is micro- by what is selected Service is ranked up according to the sequencing for meeting the service request, to generate the order event for accessing micro services one by one;Institute It states after transaction scheduling center receives the order event and docks each micro services, access micro services one by one with execution of order event, Output meets the business result of the service request;The micro services alternate the data generated when executing the order event As a result it is sent to the transaction scheduling center, the transaction scheduling center summarizes the data and alternates as a result, and sending it to Order field micro services are updated with completing the data of each micro services.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, which can be stored in a computer-readable storage and be situated between In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be The non-volatile memory mediums such as magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random storage note Recall body (Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of data processing method, which is characterized in that the data processing method includes:
Interface gateway API Gateway receives the service request that client is sent, and the service request is sent to order neck Domain micro services, the micro services that order field micro services are accessed according to the selected needs of the service request, and it is micro- by what is selected Service is ranked up according to the sequencing for meeting the service request, to generate the order event for accessing micro services one by one, institute It states API Gateway and order field micro services is arranged in application system;
Each micro services are docked after receiving the order event in transaction scheduling center, access micro services one by one with execution of order thing Part, output meet the business of the service request as a result, the transaction scheduling is centrally disposed in the application system;
The data change result generated when executing the order event is sent to the transaction scheduling center by the micro services, Summarize the data and alternate as a result, and that the data change result is sent to the order field is micro- in the transaction scheduling center Service is updated with completing the data of each micro services.
2. a kind of data processing method according to claim 1, which is characterized in that the generation accesses micro services one by one Order event includes:
Client obtains service request by input interface, calls transmission interface that the service request is sent to the API On Gateway, the API Gateway is sent by data-interface to the field micro services that receive orders, and by the service request On to order field micro services, order field micro services need to access in incognito according to the service request is selected Business, and selected micro services are ranked up according to the sequencing for meeting the service request, it is accessed one by one with generation micro- The order event of service, the input interface and the transmission interface are arranged in the client.
3. a kind of data processing method according to claim 1, which is characterized in that the output meets the service request Business result include:
The transaction scheduling center includes data-processing interface, and the transaction scheduling center is docked by the data-processing interface The order event of order field micro services transmission is received after the micro services of order field, the transaction scheduling center passes through described Data-processing interface docks other micro services, carries out access micro services one by one and is exported with execution of order event and met the business The business of request is as a result, the transaction scheduling is centrally disposed in the application system.
4. a kind of data processing method according to claim 1, which is characterized in that the data that summarize alternate as a result, more Newly micro services data include:
After micro services provide required service according to the requirement of the service request, the corresponding database note of the micro services is called Record completes data caused by this service request and alternates as a result, the data change result is sent to affairs by the micro services Control centre, the transaction scheduling center include data process core, and the transaction scheduling center is by calling the data processing Core summarize the data alternate as a result, and the data change result is sent to order field micro services, it is each to complete The data of a micro services update, and the data lab setting is in the operation interface of the micro services.
5. a kind of data processing method according to claim 4, which is characterized in that the database include Oracle, MySQL, DB2 or Sybase.
6. a kind of data processing method as claimed in any of claims 1 to 4, which is characterized in that the client Including cell phone client, computer client and third party's client;
The application system includes Nginx application system and WEB application system.
7. a kind of data processing method as claimed in any of claims 1 to 4, which is characterized in that the affairs tune When carrying out docking micro services, the abnormal conditions of service can not be provided by docking micro services time-out or micro services occur at degree center, The abnormal conditions are fed back to order field micro services by the transaction scheduling center, and order field micro services will be right The order event carries out retry mechanism, until the micro services can re-execute the order event.
8. a kind of data processing system, which is characterized in that described the system comprises generate order event elements, outgoing traffic knot Fruit unit and data updating unit;
The generation order event elements receive the service request that client is sent for interface gateway API Gateway, and will The service request is sent to order field micro services, and order field micro services need to visit according to the service request is selected The micro services asked, and selected micro services are ranked up according to the sequencing for meeting the service request, to generate one by one The order event of micro services is accessed, the API Gateway and order field micro services are arranged in application system;
The outgoing traffic result unit docks each micro services after receiving the order event for transaction scheduling center, by For a access micro services with execution of order event, output meets the business of the service request as a result, the transaction scheduling center is set It sets in the application system;
The data updating unit sends out the data change result generated when executing the order event for the micro services It send to the transaction scheduling center, the transaction scheduling center summarizes the data and alternates as a result, and tying data change Fruit is sent to order field micro services, is updated with completing the data of each micro services.
9. a kind of computer equipment, including database and processor, it is stored with computer-readable instruction in the database, it is described When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 7 right It is required that the step of data processing method.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors execute the data processing side as described in any one of claims 1 to 7 claim The step of method.
CN201810584611.3A 2018-06-06 2018-06-06 Data processing method, system, computer device and storage medium Active CN109213770B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810584611.3A CN109213770B (en) 2018-06-06 2018-06-06 Data processing method, system, computer device and storage medium
PCT/CN2018/104727 WO2019232962A1 (en) 2018-06-06 2018-09-08 Data processing method, system, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810584611.3A CN109213770B (en) 2018-06-06 2018-06-06 Data processing method, system, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN109213770A true CN109213770A (en) 2019-01-15
CN109213770B CN109213770B (en) 2023-05-30

Family

ID=64991118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810584611.3A Active CN109213770B (en) 2018-06-06 2018-06-06 Data processing method, system, computer device and storage medium

Country Status (2)

Country Link
CN (1) CN109213770B (en)
WO (1) WO2019232962A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489139A (en) * 2019-07-03 2019-11-22 平安科技(深圳)有限公司 A kind of real-time data processing method and its relevant device based on micro services
CN110545328A (en) * 2019-09-25 2019-12-06 杭州安恒信息技术股份有限公司 Non-invasive service function expansion enhancing method and device and server
CN114037496A (en) * 2021-11-17 2022-02-11 广域铭岛数字科技有限公司 State machine-based order state management method, device, equipment and medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586092A (en) * 2020-03-25 2020-08-25 深圳壹账通智能科技有限公司 Full link monitoring method, system and CAT client
CN113037812A (en) * 2021-02-25 2021-06-25 中国工商银行股份有限公司 Data packet scheduling method and device, electronic equipment, medium and intelligent network card
CN115118769B (en) * 2022-06-28 2024-02-02 深圳前海微众银行股份有限公司 Method and device for configuring parameters of service system and executing micro-service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959138A (en) * 2016-04-29 2016-09-21 深圳前海大数点科技有限公司 Micro-service dynamic disposition system and method based on cloud calculation
CN106878393A (en) * 2017-01-16 2017-06-20 深圳市商沃科技发展有限公司 A kind of system based on fusion micro services framework
CN107370786A (en) * 2017-06-02 2017-11-21 广州杰赛科技股份有限公司 A kind of general information management system based on micro services framework
US20180027080A1 (en) * 2016-07-22 2018-01-25 Cisco Technology, Inc. Scaling service discovery in a micro-service environment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106993023A (en) * 2017-03-01 2017-07-28 北京交通大学 Distributed transaction solution under micro services framework
CN107979635A (en) * 2017-10-24 2018-05-01 广东康美通信息服务有限公司 System, method and storage medium based on micro services
CN108038141A (en) * 2017-11-27 2018-05-15 国云科技股份有限公司 Ensure the method for data consistency under micro services framework HTTP interactive modes
CN108055296B (en) * 2017-11-30 2020-11-27 北京中电普华信息技术有限公司 Transaction processing method and device based on micro-service architecture

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959138A (en) * 2016-04-29 2016-09-21 深圳前海大数点科技有限公司 Micro-service dynamic disposition system and method based on cloud calculation
US20180027080A1 (en) * 2016-07-22 2018-01-25 Cisco Technology, Inc. Scaling service discovery in a micro-service environment
CN106878393A (en) * 2017-01-16 2017-06-20 深圳市商沃科技发展有限公司 A kind of system based on fusion micro services framework
CN107370786A (en) * 2017-06-02 2017-11-21 广州杰赛科技股份有限公司 A kind of general information management system based on micro services framework

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489139A (en) * 2019-07-03 2019-11-22 平安科技(深圳)有限公司 A kind of real-time data processing method and its relevant device based on micro services
CN110545328A (en) * 2019-09-25 2019-12-06 杭州安恒信息技术股份有限公司 Non-invasive service function expansion enhancing method and device and server
CN114037496A (en) * 2021-11-17 2022-02-11 广域铭岛数字科技有限公司 State machine-based order state management method, device, equipment and medium

Also Published As

Publication number Publication date
WO2019232962A1 (en) 2019-12-12
CN109213770B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN109213770A (en) Data processing method, system, computer equipment and storage medium
CN102783129B (en) Systems and methods to process a request received at an application program interface
RU2595597C2 (en) Electronic trading platform of arranged images of services
US20070005536A1 (en) Method, system and program product for managing a customer request
CN103959317B (en) Customizable for trusteeship service image is uniformly controlled
US20130317940A1 (en) Handling purchase orders
US9021064B2 (en) Web service architecture for product configuration
US20230004156A2 (en) Methods and apparatus for controlling autonomous vehicles
US10942791B2 (en) Managing load in request processing environments
CN106357791A (en) Method, device and system for processing services
US20220222717A1 (en) Multi-tenant extensible billing system
US20240103750A1 (en) Systems and methods for providing customer service functionality during portfolio migration downtime
US20190114715A1 (en) Method and system for processing pet insurance claims
Koschel et al. Cloud computing: serverless
CN105354090B (en) Management method and device of virtual equipment
CN108629582A (en) Method for processing business and device
JP2023548985A (en) Quantification of robotic process automation related resource usage
US11190643B1 (en) Automated redistribution of queries to underutilized channels
CN110023969A (en) For the technology of benchmark to be carried out to pairing strategy in task distribution system
US20190370720A1 (en) Systems and methods for providing tiered subscription data storage in a multi-tenant system
US20130275265A1 (en) Business to business integration services marketplace
CN110895777A (en) Method and device for processing overtime service list
WO2021238516A1 (en) Method and device for generating resource allocation data
US9742852B2 (en) Switchable business feature with prices and sales integration
US11438426B1 (en) Systems and methods for intelligent session recording

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
GR01 Patent grant
GR01 Patent grant