CN109639636A - Business datum forwarding, business data processing method, device and electronic equipment - Google Patents

Business datum forwarding, business data processing method, device and electronic equipment Download PDF

Info

Publication number
CN109639636A
CN109639636A CN201811310569.2A CN201811310569A CN109639636A CN 109639636 A CN109639636 A CN 109639636A CN 201811310569 A CN201811310569 A CN 201811310569A CN 109639636 A CN109639636 A CN 109639636A
Authority
CN
China
Prior art keywords
parameter preset
service data
request
data
preset
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
CN201811310569.2A
Other languages
Chinese (zh)
Other versions
CN109639636B (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.)
Ant Fortune Shanghai Financial Information Service Co ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811310569.2A priority Critical patent/CN109639636B/en
Publication of CN109639636A publication Critical patent/CN109639636A/en
Application granted granted Critical
Publication of CN109639636B publication Critical patent/CN109639636B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of business datum forwarding, business data processing method, device and electronic equipments, the business datum retransmission method can receive the remote procedure call request of client transmission, the RPC request is used for the business datum of request target service, carries the first parameter preset in the RPC request;It requests to send data acquisition request to the service providing server of target service based on the RPC, carries the second parameter preset in the data acquisition request;Receive the original service data that service providing server returns;First parameter preset, second parameter preset and the original service data are forwarded to customized server, the customized server is used to modify to obtain final service data to the original service data based on first parameter preset and second parameter preset;It receives the final service data that the customized server returns and is forwarded to the client.

Description

Business datum forwarding, business data processing method, device and electronic equipment
Technical field
This application involves field of computer technology more particularly to a kind of forwardings of business datum, business data processing method, dress It sets and electronic equipment.
Background technique
With the development of Internet technology and terminal technology, user can access business by various clients and provide service Device processing business obtains business datum.User accesses the process that business provider server obtains business datum by client Substantially are as follows: when a page of the user in access client, initiate remote procedure call (Remote Procedure to gateway Call, RPC) request;RPC request is forwarded to middle layer (also referred to as chair layers or user experience adaptation layer) by gateway;Middle layer After accessing service providing server acquisition business datum by preset interface, the business datum that service providing server is returned is whole It closes after being packaged, then by gateway forwards to client.
In some cases, the original service data that service providing server returns are not ideal enough, need middle layer to it Client is forwarded to after modifying again, otherwise business development personnel cannot achieve function and the centre of middle layer and client The verification of correctness of the service logic of layer.
Currently, then middle layer is receiving RPC by locally saving modified replacement version business datum in advance After request, by the original service data that service providing server returns replace with the replacement version business datum that locally saves it It is forwarded to client again afterwards.But in this scheme, if middle layer carries out the replacement version business datum locally saved It updates, needing to restart middle layer (could restart centre with updated replacement version business datum replacement original service data Updated replacement version business datum could be loaded into the memory of middle layer by layer), cause middle layer to forward to client The inefficiency of business datum.
Summary of the invention
The embodiment of the present application provides a kind of business datum forwarding, business data processing method, device and electronic equipment, with Improve the efficiency that modified business datum is forwarded to client.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
In a first aspect, proposing a kind of business datum retransmission method, which comprises
The remote procedure call request that client is sent is received, the RPC request is for request target service Business datum carries the first parameter preset in RPC request;
It requests to send data acquisition request, the number to the service providing server of the target service based on the RPC According to carrying the second parameter preset in acquisition request;
It receives the service providing server and is directed to the original service data that the data acquisition request returns;
First parameter preset, second parameter preset and the original service number are forwarded to customized server According to the customized server is used for based on first parameter preset and second parameter preset to the original service number According to modifying to obtain final service data;
It receives the final service data that the customized server returns and is forwarded to the client.
Second aspect proposes a kind of business data processing method, which comprises
Receive the first parameter preset, the second parameter preset and the original service data of middle layer forwarding, the original service Data are sent to institute by the service providing server of target service after receiving the data acquisition request from the middle layer Middle layer is stated, the data acquisition request is that the middle layer is receiving the remote procedure call request from client It is sent to the service providing server afterwards, the RPC request is used for the business datum of target service described in request, and The RPC request carries the first parameter preset, and the second parameter preset is carried in the data acquisition request;
Based on first parameter preset and second parameter preset, the original service data are modified to obtain Final service data;
The final service data are returned to the middle layer, the middle layer is used for the final service data forwarding To the client.
The third aspect, proposes a kind of business datum retransmission unit, and described device includes:
First receiving module, for receiving the remote procedure call request of client transmission, the RPC request is used for The business datum of request target service carries the first parameter preset in RPC request;
First sending module sends number to the service providing server of the target service for requesting based on the RPC According to acquisition request, the second parameter preset is carried in the data acquisition request;
Second receiving module, for receiving the service providing server for the original of data acquisition request return Business datum;
First forwarding module, for forwarding first parameter preset, second parameter preset to customized server With the original service data, the customized server is used to be based on first parameter preset and second parameter preset The original service data are modified to obtain final service data;
Second forwarding module, for receiving the final service data of the customized server return and being forwarded to institute State client.
Fourth aspect, proposes a kind of service data processing apparatus, and described device includes:
Receiving module, for receiving the first parameter preset, the second parameter preset and the original service data of middle layer forwarding, The original service data are asked by the service providing server of target service receiving the data acquisition from the middle layer The middle layer is sent to after asking, the data acquisition request is that the middle layer is receiving the remote process from client It is sent to the service providing server after calling RPC request, the RPC request is for target service described in request Business datum, and RPC request carries the first parameter preset, and the second default ginseng is carried in the data acquisition request Number;
Modified module, for being based on first parameter preset and second parameter preset, to the original service number According to modifying to obtain final service data;
Return module, for returning to the final service data to the middle layer, the middle layer is used for by described in most Whole business datum is transmitted to the client.
5th aspect, proposes a kind of electronic equipment, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed It manages device and executes following operation:
The remote procedure call request that client is sent is received, the RPC request is for request target service Business datum carries the first parameter preset in RPC request;
It requests to send data acquisition request, the number to the service providing server of the target service based on the RPC According to carrying the second parameter preset in acquisition request;
It receives the service providing server and is directed to the original service data that the data acquisition request returns;
First parameter preset, second parameter preset and the original service number are forwarded to customized server According to the customized server is used for based on first parameter preset and second parameter preset to the original service number According to modifying to obtain final service data;
It receives the final service data that the customized server returns and is forwarded to the client.
6th aspect, proposes a kind of computer readable storage medium, the computer-readable recording medium storage one Or multiple programs, one or more of programs are when the electronic equipment for being included multiple application programs executes, so that the electricity Sub- equipment executes following operation:
The remote procedure call request that client is sent is received, the RPC request is for request target service Business datum carries the first parameter preset in RPC request;
It requests to send data acquisition request, the number to the service providing server of the target service based on the RPC According to carrying the second parameter preset in acquisition request;
It receives the service providing server and is directed to the original service data that the data acquisition request returns;
First parameter preset, second parameter preset and the original service number are forwarded to customized server According to the customized server is used for based on first parameter preset and second parameter preset to the original service number According to modifying to obtain final service data;
It receives the final service data that the customized server returns and is forwarded to the client.
7th aspect, proposes a kind of electronic equipment, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed It manages device and executes following operation:
Receive the first parameter preset, the second parameter preset and the original service data of middle layer forwarding, the original service Data are sent to institute by the service providing server of target service after receiving the data acquisition request from the middle layer Middle layer is stated, the data acquisition request is that the middle layer is receiving the remote procedure call request from client It is sent to the service providing server afterwards, the RPC request is used for the business datum of target service described in request, and The RPC request carries the first parameter preset, and the second parameter preset is carried in the data acquisition request;
Based on first parameter preset and second parameter preset, the original service data are modified to obtain Final service data;
The final service data are returned to the middle layer, the middle layer is used for the final service data forwarding To the client.
Eighth aspect proposes a kind of computer readable storage medium, the computer-readable recording medium storage one Or multiple programs, one or more of programs are when the electronic equipment for being included multiple application programs executes, so that the electricity Sub- equipment executes following operation:
Receive the first parameter preset, the second parameter preset and the original service data of middle layer forwarding, the original service Data are sent to institute by the service providing server of target service after receiving the data acquisition request from the middle layer Middle layer is stated, the data acquisition request is that the middle layer is receiving the remote procedure call request from client It is sent to the service providing server afterwards, the RPC request is used for the business datum of target service described in request, and The RPC request carries the first parameter preset, and the second parameter preset is carried in the data acquisition request;
Based on first parameter preset and second parameter preset, the original service data are modified to obtain Final service data;
The final service data are returned to the middle layer, the middle layer is used for the final service data forwarding To the client.
As can be seen from the technical scheme provided by the above embodiments of the present application, scheme provided by the embodiments of the present application at least have as A kind of lower technical effect: since modified business datum is stored in customized server, and original service data are repaired Changing is to complete on customized server, rather than locally complete in middle layer, and therefore, business datum after the modification has occurred After update, updated modified business datum replacement original service data can be used by not needing to restart middle layer, So as to improve efficiency of the middle layer to client forwarding service data.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the interactive process schematic diagram for the business datum retransmission method that this specification embodiment provides.
Fig. 2 is a kind of flow diagram for the business datum retransmission method that this specification embodiment provides.
Fig. 3 is another flow diagram for the business datum retransmission method that this specification embodiment provides.
Fig. 4 is a kind of flow diagram for the business data processing method that this specification embodiment provides.
Fig. 5 is the structural schematic diagram for a kind of electronic equipment that this specification embodiment provides.
Fig. 6 is the structural schematic diagram for another electronic equipment that this specification embodiment provides.
Fig. 7 is a kind of structural schematic diagram for the business datum retransmission unit that this specification embodiment provides.
Fig. 8 is another structural schematic diagram for the business datum retransmission unit that this specification embodiment provides.
Fig. 9 is a kind of structural schematic diagram for the service data processing apparatus that this specification embodiment provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
In order to improve the efficiency of middle layer forwarding service data, this specification embodiment provide a kind of business datum forwarding, Business data processing method and device, wherein business datum retransmission method and device can be applied in middle layer, business datum Processing method can be applied in customized server, and customized server is independently of the server of service providing server.
The technical solution that this specification embodiment provides in order to facilitate understanding first combines attached shown in FIG. 1 explanation below The interactive process schematic diagram for the business datum retransmission method that book embodiment provides, the technical solution that this specification embodiment is provided Application scenarios be illustrated.
As shown in Figure 1, in an illustrative application scenarios, the business datum forwarding side of this specification embodiment offer The interactive process of method are as follows: a 1. page in user's access client 11;2. client 11 initiates remote process tune to gateway 12 It is requested with (Remote Procedure Call, RPC);3. RPC request is forwarded to 13 (also referred to as chair of middle layer by gateway 12 Layer or user experience adaptation layer);4. middle layer 13 requests to initiate data to the service providing server 14 of target service based on PRC Acquisition request;5. service providing server 14 returns to the original service data for being directed to the target service;6. data acquisition is asked The content of carrying and original service data is asked to be sent to forwarding plug-in unit in middle layer 13;7. the forwarding plug-in unit in middle layer 13 will The content and original service data forwarding that data acquisition request carries are to customized server 15;8. 15 pairs of originals of customized server Beginning business datum modifies to obtain final service data and returns to the forwarding plug-in unit in middle layer 13;9. in middle layer 13 Forward plug-in unit by final service data forwarding to gateway 12;10. gateway 12 is by final service data forwarding to client 11;Visitor Family end 11 shows the final service data received on the page.
As can be seen that in above-mentioned example in application scenarios, it, can be customized in order to obtain ideal business datum The modification to original service data is completed on server, rather than is locally completed in middle layer, therefore, business number after the modification After update has occurred, not needing to restart middle layer can use updated modified business datum to replace original industry Business data obtain final service data, so as to improve the efficiency for the final service data that middle layer is forwarded to client.
1 a kind of business datum retransmission method that this specification embodiment provides is carried out in detail to attached drawing 3 with reference to the accompanying drawing Thin explanation.
As shown in Fig. 2, a kind of business datum retransmission method that this specification embodiment provides, can be applied to shown in Fig. 1 Middle layer 13 in, this method may include steps of:
Step 202 receives the remote procedure call request that client is sent, and the RPC request is used for request mesh The business datum of mark business carries the first parameter preset in RPC request.
As shown in Figure 1, (correspondingly, target service after the target service in the page in user's access client 11 Can be the business that user accesses in the client), middle layer 13 can receive client 11 and pass through gateway 12 to middle layer 13 The RPC of transmission is requested, and RPC request is for requesting or obtaining the corresponding business datum of target service, for example, user accesses third After " total assets " business in square payment platform client " I " page, middle layer be can receive for obtaining the total of user The RPC of assets operation data is requested.
As an example, the first parameter preset can include but is not limited to the mark of client and the business of target service Mark etc..Wherein, the mark of client, it can be understood as be the mark of the terminal device where client, such as mobile phone is only One identification code can inquire the type of the mobile phone due to the unique identifier using mobile phone, therefore carry visitor in RPC request After the mark at family end, the business datum finally got and the type of the terminal device where the client can be made to match, This can promote user experience;Wherein, the service identification of target service is for distinguishing different business scenarios, with accurately obtain with The matched business datum of the business scenario.
Step 204 requests to ask to the service providing server of target service transmission data acquisition based on the RPC It asks, the second parameter preset is carried in the data acquisition request.
As an example, in step 204, described to be obtained to the service providing server of target service transmission data Request is taken, may include: that data acquisition request is sent to the service providing server of the target service by preset interface.Its In, preset interface can be the pre-assigned interface for meeting default communication protocol.
As an example, the second parameter preset can include but is not limited to the interface identifier of the preset interface and described The type identification of the returned data of preset interface transmission.It is appreciated that carrying the mesh of the second parameter preset in data acquisition request Be, make service providing server that will feed back to middle layer with the matched business datum of preset interface.
Wherein, the type identification of the returned data of preset interface transmission is properly termed as the mark of the type under preset interface, lifts For example, it is assumed that preset interface is interface A, then needs to transmit " sceneCode " such a parameter (this ginseng in interface A Number is the type mark under interface A), and as the sceneCode=x1 of transmitting, the data type of return is 123;Work as transmitting SceneCode=x2 when, the data type of return is 456.Alternatively, in a more detailed example, if user exists When C business in access client, middle layer is had sent to service providing server with interface A and obtains the corresponding business of C business The data acquisition request of data, when D business of the user in access client, middle layer also uses interface A to provide service to business Device has sent the data acquisition request for obtaining the corresponding business datum of D business, then, obtaining the corresponding business datum of C business When sceneCode=x1, the data type returned at this time is " x=123 ", when obtaining the corresponding business datum of D business SceneCode=x2, the data type returned at this time are " Y=123 ".That is, although middle layer is directed to different business The preset interface for having used same-interface to identify, but the type under interface identifies difference, so that the class of the business datum returned Type, format and content etc., it may be possible to different.
Step 206 receives the original service data that the service providing server is directed to data acquisition request return.
Specifically, can receive the original service data for target service of service providing server return.So-called original Beginning business datum, it can be understood as be middle layer is returned to by service providing server, and middle layer it is not carried out it is any The business datum of modification.
Step 208 forwards first parameter preset, second parameter preset and described original to customized server Business datum, the customized server are used for based on first parameter preset and second parameter preset to described original Business datum modifies to obtain final service data.
In one example, modified business datum and the described first default ginseng can store in customized server Several and second parameter preset corresponding relationships, correspondingly, in step 208 based on first parameter preset and described the Two parameter presets modify to obtain final service data to the original service data, may include: based on the corresponding pass System, after determining modification corresponding with first parameter preset and second parameter preset in the customized server Business datum;The original service data are replaced with into modified business datum, obtain the final service data.
For example, when the first parameter preset includes the mark of the client and the mark of the target service, and the Two parameter presets include the preset interface interface identifier and the preset interface transmission returned data type identification when, Modified business datum can be stored in customized server and " mark of client, default connects the mark of target service The corresponding relationship of this four parameters of the type identification of the returned data of interface identifier and the preset interface transmission of mouth ", in this way, in step In rapid 208, can find out and meanwhile with this matched modified business datum of four parameters, and with simultaneously with this four parameters The modified business datum replacement original service data matched obtain final service data.It can be appreciated that in this example embodiment, due to For replacing the modified business datum and " mark, the mark of target service, preset interface of client of original service data Interface identifier and preset interface transmission returned data type identification " this four parameters match, this obtains replacement Final service data also matched with this four parameters, this can promote user experience.
Step 210, the final service data for receiving the customized server return are simultaneously forwarded to the client.
In one example, above-mentioned steps 208 and step 210 can be realized by the forwarding plug-in unit in middle layer.
A kind of business datum retransmission method that this specification embodiment provides, due to being the completion pair on customized server The modification of original service data, rather than locally completed in middle layer, therefore, update has occurred in business datum after the modification Afterwards, not needing to restart middle layer can use updated modified business datum replacement original service data obtain finally Business datum, so as to improve efficiency of the middle layer to the final ideal business datum of client forwarding.
Simultaneously as needing to restart middle layer when middle layer is locally updated modified business datum, this makes Must be inflexible to the update of modified business datum, and the business datum retransmission method that this specification embodiment provides, it can To avoid the defect, can flexibly be updated by business datum of the customized server to modification.
As shown in figure 3, in another embodiment, a kind of business datum retransmission method that this specification embodiment provides is answered For middle layer, this method be may include steps of:
Step 202 receives the remote procedure call request that client is sent, and the RPC request is used for request mesh The business datum of mark business carries the first parameter preset in RPC request.
Step 204 requests to ask to the service providing server of target service transmission data acquisition based on the RPC It asks, the second parameter preset is carried in the data acquisition request.
Specifically, step 204 may include: it is described based on the RPC request to the business of the target service provide clothes Business device sends data acquisition request, comprising: generates the data acquisition request based on RPC request;By preset interface to The service providing server sends the data acquisition request, and second parameter preset includes the interface of the preset interface Mark.
Step 206 receives the original service data that the service providing server is directed to data acquisition request return.
Step 212 is based on preset configuration file and second parameter preset, judges whether to need to the original service Data are modified;If so, executing following step 208 to step 210;Otherwise, following step 214 is executed.
In the step 212, it specifically may determine that whether the interface identifier is included in the preset configuration file;If It is to determine to need to modify to the original service data;Otherwise, it determines not needing to repair the original service data Change.At this point, preset configuration file is it can be appreciated that be the preset interface column that corresponding original service data need to modify List file.
Step 208 forwards first parameter preset, second parameter preset and described original to customized server Business datum, the customized server are used for based on first parameter preset and second parameter preset to described original Business datum modifies to obtain final service data.
Step 210, the final service data for receiving the customized server return are simultaneously forwarded to the client.
Step 214, by the original service data forwarding to the client.
It should be noted that in this specification embodiment, step 202, step 204, step 206, step 208 and step 210 is identical as embodiment shown in Fig. 2, is not repeated to illustrate herein.
A kind of business datum retransmission method that this specification embodiment provides is forwarding described first to customized server Parameter preset, second parameter preset and the original service data so that customized server to original service data into Before row modification, first judge whether to need to modify to original service data, if necessary to be forwarded to customized server again, If you do not need to modification does not forward then to customized server, but directly by original service data feedback to client.It is not difficult Understand, this can be further reduced middle layer to the time-consuming of client feedback business datum, respond RPC so as to shorten middle layer The overall time of request, thus can further promote efficiency of the middle layer to client forwarding service data.
Optionally, in the embodiment shown in fig. 3, before step 212, a kind of business that this specification embodiment provides Data forwarding method can also include: to pull the preset configuration file from the customized server and store, Huo Zhejie Receive the preset configuration file of the customized server push.
It can be appreciated that can be determined for step 212 based on preset configuration file and the second parameter preset by the embodiment Whether need to modify to original service data and be ready.
Optionally, in the embodiment shown in fig. 3, a kind of business datum retransmission method that this specification embodiment provides is also It may include: to pull the preset configuration file again from the customized server according to specified time, to storage The preset configuration file is updated.
For example, the preset configuration file can be pulled again from the customized server in daily 8 a.m., To be updated to the preset configuration file of storage;Alternatively, can be every 12 hours from the customized server Again the preset configuration file is pulled, to be updated to the preset configuration file of storage.
Alternatively, a kind of business datum retransmission method that this specification embodiment provides can also include: to make by oneself described in reception The preset configuration part of adopted server push, to be updated to the preset configuration file of storage.
For example, after the preset configuration file being stored in customized server updates, such as to preset configuration New existing preset interface of preset interface or deletion etc. is added in file, customized server can be pushed away actively to middle layer Preset configuration file is sent, to be updated to the preset configuration file stored in middle layer.
It is appreciated that this mode for dynamically obtaining preset configuration file from customized server, it is ensured that intermediate The preset configuration file that layer saves is updated in real time, and needs to modify so as to accurately determine which original service data, Which original service data does not need to modify, therefore more can accurately promote middle layer to client forwarding service data Efficiency.
It is a kind of introduction of the business datum retransmission method provided this specification embodiment above, with reference to the accompanying drawing 4 A kind of business data processing method provided this specification embodiment is illustrated.
As shown in figure 4, a kind of business data processing method that this specification embodiment provides, can be applied to shown in Fig. 1 Customized server in, this method may include steps of:
Step 402, the first parameter preset, the second parameter preset and the original service data for receiving middle layer forwarding, it is described Original service data are by the service providing server of target service after receiving the data acquisition request from the middle layer It is sent to the middle layer, the data acquisition request is that the middle layer is receiving the remote procedure call from client The service providing server, business of the RPC request for target service described in request are sent to after RPC request Data, and RPC request carries the first parameter preset, and the second parameter preset is carried in the data acquisition request.
Optionally, in one example, the first parameter preset of the reception middle layer forwarding in step 402, second Parameter preset and original service data may include: to receive the middle layer and determine to need to carry out the original service data After modification, the first parameter preset, the second parameter preset and the original service data of forwarding, the middle layer are based on preset configuration text Part and second parameter preset determine the need for modifying to the original service data.
Optionally, method shown in Fig. 4 can also include: to push the preset configuration file to the middle layer.Specifically , customized server can push the preset configuration file to middle layer after preset configuration file updates, or Person can push the preset configuration file according to certain time interval or at the appointed time to middle layer, so that in middle layer The preset configuration file of preservation is latest edition.
Step 404 is based on first parameter preset and second parameter preset, carries out to the original service data Modification obtains final service data.
Step 406, Xiang Suoshu middle layer return to the final service data, and the middle layer is used for the final service Data forwarding gives the client.
A kind of business data processing method that this specification embodiment provides, due to being the completion pair on customized server The modification of original service data, rather than locally completed in middle layer, therefore, update has occurred in business datum after the modification Afterwards, not needing to restart middle layer can use updated modified business datum replacement original service data obtain finally Business datum, so as to improve efficiency of the middle layer to the final ideal business datum of client forwarding.
Simultaneously as needing to restart middle layer when middle layer is locally updated modified business datum, this makes Must be inflexible to the update of modified business datum, and the business data processing method that this specification embodiment provides, it can To avoid the defect, can flexibly be updated by business datum of the customized server to modification.
The one of a kind of business data processing method and this specification embodiment offer provided due to this specification embodiment Kind business datum retransmission method is corresponding, therefore this specification describes relatively simple, phase to a kind of business data processing method Place is closed to please refer to above to a kind of explanation of business datum retransmission method.
It is that a kind of business datum retransmission method and a kind of explanation of business data processing method are provided this specification above, The electronic equipment provided below this specification is introduced.
Fig. 5 is the structural schematic diagram for the electronic equipment that one embodiment of this specification provides.Referring to FIG. 5, in hardware Level, the electronic equipment include processor, optionally further comprising internal bus, network interface, memory.Wherein, memory can It can include memory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-easy The property lost memory (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible to Including hardware required for other business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA (Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard Architecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control always Line etc..Only to be indicated with a four-headed arrow in Fig. 5, it is not intended that an only bus or a type of convenient for indicating Bus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer Business datum retransmission unit is formed on face.Processor executes the program that memory is stored, and is specifically used for executing following behaviour Make:
The remote procedure call request that client is sent is received, the RPC request is for request target service Business datum carries the first parameter preset in RPC request;
It requests to send data acquisition request, the number to the service providing server of the target service based on the RPC According to carrying the second parameter preset in acquisition request;
It receives the service providing server and is directed to the original service data that the data acquisition request returns;
First parameter preset, second parameter preset and the original service number are forwarded to customized server According to the customized server is used for based on first parameter preset and second parameter preset to the original service number According to modifying to obtain final service data;
It receives the final service data that the customized server returns and is forwarded to the client.
Business datum retransmission method disclosed in the above-mentioned embodiment illustrated in fig. 2 such as this specification can be applied in processor, Or it is realized by processor.Processor may be a kind of IC chip, the processing capacity with signal.In the process of realization In, each step of the above method can be complete by the integrated logic circuit of the hardware in processor or the instruction of software form At.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), Network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processor, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device are divided Vertical door or transistor logic, discrete hardware components.It may be implemented or execute this specification one or more embodiment In disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to Any conventional processor etc..The step of method in conjunction with disclosed in this specification one or more embodiment, can directly embody Execute completion for hardware decoding processor, or in decoding processor hardware and software module combination execute completion.Software Module can be located at random access memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable storage In the storage medium of this fields such as device, register maturation.The storage medium is located at memory, and processor reads the letter in memory Breath, in conjunction with the step of its hardware completion above method.
The electronic equipment can also carry out the business datum retransmission method of Fig. 2, and details are not described herein for this specification.
Fig. 6 is the structural schematic diagram for another electronic equipment that one embodiment of this specification provides.With electricity shown in fig. 5 Sub- equipment the difference is that, the processor in electronic equipment shown in fig. 6 reads corresponding from nonvolatile memory Then computer program is run into memory, service data processing apparatus is formed on logic level.Processor executes memory The program stored, and be specifically used for executing following operation:
Receive the first parameter preset, the second parameter preset and the original service data of middle layer forwarding, the original service Data are sent to institute by the service providing server of target service after receiving the data acquisition request from the middle layer Middle layer is stated, the data acquisition request is that the middle layer is receiving the remote procedure call request from client It is sent to the service providing server afterwards, the RPC request is used for the business datum of target service described in request, and The RPC request carries the first parameter preset, and the second parameter preset is carried in the data acquisition request;
Based on first parameter preset and second parameter preset, the original service data are modified to obtain Final service data;
The final service data are returned to the middle layer, the middle layer is used for the final service data forwarding To the client.
In addition, electronic equipment shown in fig. 6 can also carry out the business data processing method of Fig. 4, this specification is herein no longer It repeats.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of this specification, such as Logical device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each Logic unit is also possible to hardware or logical device.
This specification embodiment also proposed a kind of computer readable storage medium, the computer-readable recording medium storage One or more programs, the one or more program include instruction, and the instruction is when by the portable electric including multiple application programs When sub- equipment executes, the method that the portable electronic device can be made to execute embodiment illustrated in fig. 1, and be specifically used for executing following Operation:
The remote procedure call request that client is sent is received, the RPC request is for request target service Business datum carries the first parameter preset in RPC request;
It requests to send data acquisition request, the number to the service providing server of the target service based on the RPC According to carrying the second parameter preset in acquisition request;
It receives the service providing server and is directed to the original service data that the data acquisition request returns;
First parameter preset, second parameter preset and the original service number are forwarded to customized server According to the customized server is used for based on first parameter preset and second parameter preset to the original service number According to modifying to obtain final service data;
It receives the final service data that the customized server returns and is forwarded to the client.
This specification embodiment also proposed a kind of computer readable storage medium, the computer-readable recording medium storage One or more programs, the one or more program include instruction, and the instruction is when by the portable electric including multiple application programs When sub- equipment executes, the method that the portable electronic device can be made to execute embodiment illustrated in fig. 1, and be specifically used for executing following Operation:
Receive the first parameter preset, the second parameter preset and the original service data of middle layer forwarding, the original service Data are sent to institute by the service providing server of target service after receiving the data acquisition request from the middle layer Middle layer is stated, the data acquisition request is that the middle layer is receiving the remote procedure call request from client It is sent to the service providing server afterwards, the RPC request is used for the business datum of target service described in request, and The RPC request carries the first parameter preset, and the second parameter preset is carried in the data acquisition request;
Based on first parameter preset and second parameter preset, the original service data are modified to obtain Final service data;
The final service data are returned to the middle layer, the middle layer is used for the final service data forwarding To the client.
Fig. 7 is the structural schematic diagram for the business datum retransmission unit 700 that this specification provides.Referring to FIG. 7, a kind of soft In part embodiment, business datum retransmission unit 700 can include: the first receiving module 701, the first sending module 702, second connect Receive module 703, the first forwarding module 704 and the second forwarding module 705.
First receiving module 701, for receiving the remote procedure call request of client transmission, the RPC request is used The first parameter preset is carried in the business datum of request target service, the RPC request.
As an example, the first parameter preset can include but is not limited to the mark of client and the business of target service Mark etc..
First sending module 702, for requesting to send to the service providing server of the target service based on the RPC Data acquisition request carries the second parameter preset in the data acquisition request.
As an example, the first sending module 702 can be used for: the business by preset interface to the target service Server is provided and sends data acquisition request.Wherein, preset interface, which can be, pre-assigned meets connecing for default communication protocol Mouthful.
Second receiving module 703, for receiving the service providing server for data acquisition request return Original service data.
As an example, the second parameter preset can include but is not limited to the interface identifier of the preset interface and described The type identification of the returned data of preset interface transmission.It is appreciated that carrying the mesh of the second parameter preset in data acquisition request Be, make service providing server that will feed back to middle layer with the matched business datum of preset interface.
Wherein, the type identification of the returned data of preset interface transmission is properly termed as the mark of the type under preset interface.
First forwarding module 704, for forwarding first parameter preset, the second default ginseng to customized server The several and original service data, the customized server are used for based on first parameter preset and the second default ginseng It is several that the original service data are modified to obtain final service data.
In one example, modified business datum and the described first default ginseng can store in customized server Several and second parameter preset corresponding relationship, correspondingly, the first forwarding module 704 can be used for: based on the corresponding pass System, after determining modification corresponding with first parameter preset and second parameter preset in the customized server Business datum;The original service data are replaced with into modified business datum, obtain the final service data.
Second forwarding module 705, for receiving the final service data of the customized server return and forwarding To the client.
The business datum retransmission unit 700 that this specification embodiment provides, due to being the completion pair on customized server The modification of original service data, rather than locally completed in middle layer, therefore, update has occurred in business datum after the modification Afterwards, not needing to restart middle layer can use updated modified business datum replacement original service data obtain finally Business datum, so as to improve efficiency of the middle layer to the final ideal business datum of client forwarding.
Simultaneously as needing to restart middle layer when middle layer is locally updated modified business datum, this makes Must be inflexible to the update of modified business datum, and the business datum retransmission unit 700 that this specification embodiment provides, It can flexibly can be updated by business datum of the customized server to modification to avoid the defect.
As shown in figure 8, in another embodiment, the business datum retransmission unit 700 that this specification embodiment provides, application In middle layer, the apparatus may include: the first receiving module 701, the first sending module 702, the second receiving module 703, judgement Module 706, the first forwarding module 704, the second forwarding module 705 and third forwarding module 707.
First receiving module 701, for receiving the remote procedure call request of client transmission, the RPC request is used The first parameter preset is carried in the business datum of request target service, the RPC request.
First sending module 702, for requesting to send to the service providing server of the target service based on the RPC Data acquisition request carries the second parameter preset in the data acquisition request.
Specifically, the first sending module 702 can be used for: generating the data acquisition request based on RPC request;Pass through Preset interface sends the data acquisition request to the service providing server, and second parameter preset includes described default The interface identifier of interface.
Second receiving module 703, for receiving the service providing server for data acquisition request return Original service data.
Judgment module 706 judges whether to need to described for being based on preset configuration file and second parameter preset Original service data are modified;If so, the first forwarding module 704 of triggering and the second forwarding module 705;Otherwise, triggering the Three forwarding modules 707.
In judgment module 706, it specifically may determine that whether the interface identifier is included in the preset configuration file; It needs to modify to the original service data if so, determining;Otherwise, it determines do not need to the original service data into Row modification.At this point, preset configuration file is it can be appreciated that be that corresponding original service data need to modify default connects Mouth listing file.
First forwarding module 704, for forwarding first parameter preset, the second default ginseng to customized server The several and original service data, the customized server are used for based on first parameter preset and the second default ginseng It is several that the original service data are modified to obtain final service data.
Second forwarding module 705, for receiving the final service data of the customized server return and forwarding To the client.
Third forwarding module 707 is used for the original service data forwarding to the client.
It should be noted that in this specification embodiment, the first receiving module 701, the first sending module 702, second Receiving module 703, the first forwarding module 704 and the second forwarding module 705 are identical as embodiment shown in Fig. 7, no longer heavy herein It is multiple to illustrate.
A kind of business datum retransmission unit 700 that this specification embodiment provides, to described in the forwarding of customized server First parameter preset, second parameter preset and the original service data, so that customized server is to original service number According to before modifying, first judging whether to need to modify to original service data, if necessary to be forwarded to customized clothes again Business device, if you do not need to modification does not forward then to customized server, but directly by original service data feedback to client. It can be appreciated that this can be further reduced middle layer to the time-consuming of client feedback business datum, rung so as to shorten middle layer The overall time for answering RPC to request, thus can further promote efficiency of the middle layer to client forwarding service data.
Optionally, in the embodiment shown in fig. 8, a kind of business datum retransmission unit that this specification embodiment provides 700 can also include: file acquisition module, for pulling the preset configuration file from the customized server and depositing Storage, or receive the preset configuration file of the customized server push.
It can be appreciated that by the embodiment preset configuration file and the second parameter preset can be based on for judgment module 706 It determines the need for modifying to original service data and be ready.
Optionally, in the embodiment shown in fig. 8, a kind of business datum retransmission unit that this specification embodiment provides 700 can also include: the first file update module, for pulling institute again from the customized server according to specified time Preset configuration file is stated, to be updated to the preset configuration file of storage.
Alternatively, this specification embodiment provide a kind of business datum retransmission unit 700 can also include: the second file more New module, for receiving the preset configuration part of the customized server push, with the preset configuration text to storage Part is updated.
It is appreciated that this mode for dynamically obtaining preset configuration file from customized server, it is ensured that intermediate The preset configuration file that layer saves is updated in real time, and needs to modify so as to accurately determine which original service data, Which original service data does not need to modify, therefore more can accurately promote middle layer to client forwarding service data Efficiency.
It is a kind of introduction of the business datum retransmission unit 700 provided this specification embodiment above, needs to illustrate It is that the method that business datum retransmission unit 700 can be realized the embodiment of the method for Fig. 2 specifically refers to embodiment illustrated in fig. 2 Business datum retransmission method, details are not described herein again.
As shown in figure 9, this specification embodiment additionally provides a service data processing apparatus 900, it is applied to customized clothes Business device, service data processing apparatus 900 may include: receiving module 901, modified module 902 and return module 903.
Receiving module 901, for receiving the first parameter preset, the second parameter preset and the original service number of middle layer forwarding According to the original service data are receiving the data acquisition from the middle layer by the service providing server of target service The middle layer is sent to after request, the data acquisition request is that the middle layer is receiving the long-range mistake from client Journey is sent to the service providing server after calling RPC request, and the RPC request is for target service described in request Business datum, and RPC request carries the first parameter preset, and the second default ginseng is carried in the data acquisition request Number.
Optionally, in one example, receiving module 901 can be used for: receiving the middle layer and determines needs to the original After beginning business datum is modified, the first parameter preset, the second parameter preset and the original service data of forwarding, the middle layer It determines the need for modifying to the original service data based on preset configuration file and second parameter preset.
Optionally, device 900 shown in Fig. 9 can also include: pushing module, described pre- for pushing to the middle layer If configuration file.Specifically, customized server can be after preset configuration file updates, to described in middle layer push Preset configuration file, or the preset configuration text can be pushed according to certain time interval or at the appointed time to middle layer Part, so that the preset configuration file saved in middle layer is latest edition.
Modified module 902, for being based on first parameter preset and second parameter preset, to the original service Data modify to obtain final service data.
Return module 903, for returning to the final service data to the middle layer, the middle layer is used for will be described Final service data forwarding gives the client.
This specification embodiment provide a kind of service data processing apparatus 900, due to be on customized server it is complete The modification of pairs of original service data, rather than locally completed in middle layer, therefore, business datum after the modification has occurred more After new, not needing to restart middle layer can use updated modified business datum replacement original service data obtain Final service data, so as to improve efficiency of the middle layer to the final ideal business datum of client forwarding.
Simultaneously as needing to restart middle layer when middle layer is locally updated modified business datum, this makes Must be inflexible to the update of modified business datum, and the business data processing method that this specification embodiment provides, it can To avoid the defect, can flexibly be updated by business datum of the customized server to modification.
It is a kind of introduction of the service data processing apparatus 900 provided this specification embodiment above, needs to illustrate It is that the method that service data processing apparatus 900 can be realized the embodiment of the method for Fig. 4 specifically refers to embodiment illustrated in fig. 4 Business data processing method, details are not described herein again.
In short, being not intended to limit the protection of this specification the foregoing is merely the preferred embodiment of this specification Range.With within principle, made any modification, changes equivalent replacement all spirit in this specification one or more embodiment Into etc., it should be included within the protection scope of this specification one or more embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.When not limiting more, the element that is limited by sentence "including a ...", it is not excluded that in the mistake including the element There is also other identical elements in journey, method, commodity or equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.

Claims (17)

1. a kind of business datum retransmission method, which comprises
The remote procedure call request that client is sent is received, the RPC request is used for the business of request target service Data carry the first parameter preset in RPC request;
It requests to send data acquisition request to the service providing server of the target service based on the RPC, the data obtain It takes in request and carries the second parameter preset;
It receives the service providing server and is directed to the original service data that the data acquisition request returns;
First parameter preset, second parameter preset and the original service data, institute are forwarded to customized server State customized server for based on first parameter preset and second parameter preset to the original service data into Row modification obtains final service data;
It receives the final service data that the customized server returns and is forwarded to the client.
2. according to the method described in claim 1, forwarding first parameter preset, described the to customized server described Before two parameter presets and the original service data, the method also includes:
Based on preset configuration file and second parameter preset, judge whether to need to repair the original service data Change;
If so, executing described first parameter preset, second parameter preset and described are forwarded to customized server The step of original service data;
If not, by the original service data forwarding to the client.
3. according to the method described in claim 2, wherein,
It is described to request to send data acquisition request to the service providing server of the target service based on the RPC, comprising: base The data acquisition request is generated in RPC request;The number is sent to the service providing server by preset interface According to acquisition request, second parameter preset includes the interface identifier of the preset interface;
It is described to be based on preset configuration file and second parameter preset, judge whether to need to carry out the original service data Modification, comprising: judge whether the interface identifier is included in the preset configuration file;It needs if so, determining to described Original service data are modified;Otherwise, it determines not needing to modify to the original service data.
4. according to the method in claim 2 or 3, judging whether to need to modify to the original service data described Before, the method also includes:
The preset configuration file is pulled from the customized server and is stored;
Alternatively, receiving the preset configuration file of the customized server push.
5. according to the method described in claim 4, further include:
The preset configuration file is pulled again from the customized server according to specified time or prefixed time interval, with The preset configuration file of storage is updated;
Alternatively, the preset configuration part of the customized server push is received, with the preset configuration file to storage It is updated.
6. according to the method described in claim 1, wherein,
Modified business datum and first parameter preset and described second is stored in the customized server to preset The corresponding relationship of parameter;
It is described that the original service data are modified to obtain based on first parameter preset and second parameter preset Final service data, comprising: be based on the corresponding relationship, determined from the customized server and the described first default ginseng Number modified business datum corresponding with second parameter preset;The original service data are replaced with into modified industry Business data, obtain the final service data.
7. according to the method described in claim 6, wherein,
It is described to send data acquisition request to the service providing server of the target service, comprising: by preset interface to institute The service providing server for stating target service sends data acquisition request;
First parameter preset includes the mark of the client and the mark of the target service;
Second parameter preset includes the interface identifier of the preset interface and the returned data of preset interface transmission Type identification.
8. a kind of business data processing method, which comprises
Receive the first parameter preset, the second parameter preset and the original service data of middle layer forwarding, the original service data It is sent in described after receiving the data acquisition request from the middle layer by the service providing server of target service Interbed, the data acquisition request are that the middle layer is sent out after receiving the remote procedure call request from client It send to the service providing server, the RPC request is used for the business datum of target service described in request, and described RPC request carries the first parameter preset, and the second parameter preset is carried in the data acquisition request;
Based on first parameter preset and second parameter preset, the original service data are modified to obtain final Business datum;
The final service data are returned to the middle layer, the middle layer is used for the final service data forwarding to institute State client.
9. according to the method described in claim 8,
Wherein, described to be based on first parameter preset and second parameter preset, the original service data are repaired Change to obtain final service data, comprising:
It is corresponding based on pre-stored modified business datum and first parameter preset and second parameter preset Relationship determines modified business datum corresponding with first parameter preset and second parameter preset;
The original service data are replaced with to the modified business datum determined, obtain the final service data.
10. according to the method described in claim 8,
Wherein, the first parameter preset, the second parameter preset and the original service data for receiving middle layer forwarding, comprising:
It receives after the middle layer determines and need to modify to the original service data, the first parameter preset of forwarding, the Two parameter presets and original service data, the middle layer is based on preset configuration file and second parameter preset determines whether It needs to modify to the original service data.
11. according to the method described in claim 10, the method also includes:
The preset configuration file is pushed to the middle layer.
12. a kind of business datum retransmission unit, described device include:
First receiving module, for receiving the remote procedure call request of client transmission, the RPC request is for requesting The business datum of target service is obtained, carries the first parameter preset in the RPC request;
First sending module, for requesting to obtain to the service providing server of target service transmission data based on the RPC Request is taken, the second parameter preset is carried in the data acquisition request;
Second receiving module is directed to the original service that the data acquisition request returns for receiving the service providing server Data;
First forwarding module, for forwarding first parameter preset, second parameter preset and institute to customized server Original service data are stated, the customized server is used for based on first parameter preset and second parameter preset to institute Original service data are stated to modify to obtain final service data;
Second forwarding module, for receiving the final service data of the customized server return and being forwarded to the visitor Family end.
13. a kind of service data processing apparatus, described device include:
Receiving module, it is described for receiving the first parameter preset, the second parameter preset and the original service data of middle layer forwarding Original service data are by the service providing server of target service after receiving the data acquisition request from the middle layer It is sent to the middle layer, the data acquisition request is that the middle layer is receiving the remote procedure call from client The service providing server, business of the RPC request for target service described in request are sent to after RPC request Data, and RPC request carries the first parameter preset, and the second parameter preset is carried in the data acquisition request;
Modified module, for be based on first parameter preset and second parameter preset, to the original service data into Row modification obtains final service data;
Return module, for returning to the final service data to the middle layer, the middle layer is used for the final industry Data forwarding of being engaged in gives the client.
14. a kind of electronic equipment, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processor when executed Execute following operation:
The remote procedure call request that client is sent is received, the RPC request is used for the business of request target service Data carry the first parameter preset in RPC request;
It requests to send data acquisition request to the service providing server of the target service based on the RPC, the data obtain It takes in request and carries the second parameter preset;
It receives the service providing server and is directed to the original service data that the data acquisition request returns;
First parameter preset, second parameter preset and the original service data, institute are forwarded to customized server State customized server for based on first parameter preset and second parameter preset to the original service data into Row modification obtains final service data;
It receives the final service data that the customized server returns and is forwarded to the client.
15. a kind of computer readable storage medium, the computer-readable recording medium storage one or more program, described one A or multiple programs are when the electronic equipment for being included multiple application programs executes, so that the electronic equipment executes following behaviour Make:
The remote procedure call request that client is sent is received, the RPC request is used for the business of request target service Data carry the first parameter preset in RPC request;
It requests to send data acquisition request to the service providing server of the target service based on the RPC, the data obtain It takes in request and carries the second parameter preset;
It receives the service providing server and is directed to the original service data that the data acquisition request returns;
First parameter preset, second parameter preset and the original service data, institute are forwarded to customized server State customized server for based on first parameter preset and second parameter preset to the original service data into Row modification obtains final service data;
It receives the final service data that the customized server returns and is forwarded to the client.
16. a kind of electronic equipment, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processor when executed Execute following operation:
Receive the first parameter preset, the second parameter preset and the original service data of middle layer forwarding, the original service data It is sent in described after receiving the data acquisition request from the middle layer by the service providing server of target service Interbed, the data acquisition request are that the middle layer is sent out after receiving the remote procedure call request from client It send to the service providing server, the RPC request is used for the business datum of target service described in request, and described RPC request carries the first parameter preset, and the second parameter preset is carried in the data acquisition request;
Based on first parameter preset and second parameter preset, the original service data are modified to obtain final Business datum;
The final service data are returned to the middle layer, the middle layer is used for the final service data forwarding to institute State client.
17. a kind of computer readable storage medium, the computer-readable recording medium storage one or more program, described one A or multiple programs are when the electronic equipment for being included multiple application programs executes, so that the electronic equipment executes following behaviour Make:
Receive the first parameter preset, the second parameter preset and the original service data of middle layer forwarding, the original service data It is sent in described after receiving the data acquisition request from the middle layer by the service providing server of target service Interbed, the data acquisition request are that the middle layer is sent out after receiving the remote procedure call request from client It send to the service providing server, the RPC request is used for the business datum of target service described in request, and described RPC request carries the first parameter preset, and the second parameter preset is carried in the data acquisition request;
Based on first parameter preset and second parameter preset, the original service data are modified to obtain final Business datum;
The final service data are returned to the middle layer, the middle layer is used for the final service data forwarding to institute State client.
CN201811310569.2A 2018-11-06 2018-11-06 Service data forwarding method, service data processing method, service data forwarding device, service data processing device and electronic equipment Active CN109639636B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811310569.2A CN109639636B (en) 2018-11-06 2018-11-06 Service data forwarding method, service data processing method, service data forwarding device, service data processing device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811310569.2A CN109639636B (en) 2018-11-06 2018-11-06 Service data forwarding method, service data processing method, service data forwarding device, service data processing device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109639636A true CN109639636A (en) 2019-04-16
CN109639636B CN109639636B (en) 2021-04-02

Family

ID=66067367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811310569.2A Active CN109639636B (en) 2018-11-06 2018-11-06 Service data forwarding method, service data processing method, service data forwarding device, service data processing device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109639636B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321380A (en) * 2019-07-09 2019-10-11 北京外研讯飞教育科技有限公司 A kind of method for interchanging data, apparatus and system
CN110457142A (en) * 2019-07-10 2019-11-15 阿里巴巴集团控股有限公司 Method for processing business, system, computer room, framework and electronic equipment
CN111026735A (en) * 2019-12-10 2020-04-17 腾讯科技(深圳)有限公司 Data transmission method, device, equipment and medium
CN111935248A (en) * 2020-07-22 2020-11-13 浪潮金融信息技术有限公司 SP remote file transmission method
CN111953715A (en) * 2019-05-14 2020-11-17 天津五八到家科技有限公司 Service data processing system, method and device
CN112153152A (en) * 2020-09-28 2020-12-29 深圳壹账通智能科技有限公司 Management method and system of algorithm service interface
CN112422476A (en) * 2019-08-20 2021-02-26 北京嗨动视觉科技有限公司 Data processing method, device and system
CN113032036A (en) * 2021-02-03 2021-06-25 腾讯科技(深圳)有限公司 Service data processing method, device, system, computer equipment and storage medium
WO2022144609A1 (en) * 2020-12-31 2022-07-07 Sensetime International Pte. Ltd. Information interaction methods, apparatuses, devices, and systems and storage media
CN114860834A (en) * 2022-06-01 2022-08-05 北京字节跳动网络技术有限公司 Processing method, device, equipment and storage medium of associated query request
US11489925B2 (en) 2020-12-31 2022-11-01 Sensetime International Pte. Ltd. Information interaction methods, apparatuses, devices, and systems and storage media

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040225724A1 (en) * 2003-05-08 2004-11-11 Gregory Pavlik RPC type SOAP service access via taglibs for dynamic web content
CN1842071A (en) * 2005-03-28 2006-10-04 华为技术有限公司 Realization method and apparatus for application program access Web server end object
US20100333115A1 (en) * 2009-06-30 2010-12-30 Sap Ag System and method for a source-independent server interface accepting origin specific commands
CN106453288A (en) * 2016-09-29 2017-02-22 上海和付信息技术有限公司 Asynchronous mode supporting distributed micro service framework system and implementation method thereof
CN106506519A (en) * 2016-11-21 2017-03-15 辽宁科技大学 The system and method for WCF framework net.tcp agreement Overpassing Platform by Using
CN106856434A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 The method and apparatus of access request conversion
CN106998343A (en) * 2016-01-26 2017-08-01 阿里巴巴集团控股有限公司 A kind of remote procedure call processing method, apparatus and system
CN108322530A (en) * 2018-01-29 2018-07-24 广东欧珀移动通信有限公司 Transmission method, device, gateway and the storage medium of context information

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040225724A1 (en) * 2003-05-08 2004-11-11 Gregory Pavlik RPC type SOAP service access via taglibs for dynamic web content
CN1842071A (en) * 2005-03-28 2006-10-04 华为技术有限公司 Realization method and apparatus for application program access Web server end object
US20100333115A1 (en) * 2009-06-30 2010-12-30 Sap Ag System and method for a source-independent server interface accepting origin specific commands
CN106856434A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 The method and apparatus of access request conversion
CN106998343A (en) * 2016-01-26 2017-08-01 阿里巴巴集团控股有限公司 A kind of remote procedure call processing method, apparatus and system
CN106453288A (en) * 2016-09-29 2017-02-22 上海和付信息技术有限公司 Asynchronous mode supporting distributed micro service framework system and implementation method thereof
CN106506519A (en) * 2016-11-21 2017-03-15 辽宁科技大学 The system and method for WCF framework net.tcp agreement Overpassing Platform by Using
CN108322530A (en) * 2018-01-29 2018-07-24 广东欧珀移动通信有限公司 Transmission method, device, gateway and the storage medium of context information

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953715A (en) * 2019-05-14 2020-11-17 天津五八到家科技有限公司 Service data processing system, method and device
CN111953715B (en) * 2019-05-14 2023-05-26 天津五八到家科技有限公司 Service data processing system, method and device
CN110321380A (en) * 2019-07-09 2019-10-11 北京外研讯飞教育科技有限公司 A kind of method for interchanging data, apparatus and system
CN110457142B (en) * 2019-07-10 2023-05-09 创新先进技术有限公司 Service processing method, system, machine room, architecture and electronic equipment
CN110457142A (en) * 2019-07-10 2019-11-15 阿里巴巴集团控股有限公司 Method for processing business, system, computer room, framework and electronic equipment
CN112422476A (en) * 2019-08-20 2021-02-26 北京嗨动视觉科技有限公司 Data processing method, device and system
CN111026735B (en) * 2019-12-10 2023-03-21 腾讯科技(深圳)有限公司 Data transmission method, device, equipment and medium
CN111026735A (en) * 2019-12-10 2020-04-17 腾讯科技(深圳)有限公司 Data transmission method, device, equipment and medium
CN111935248A (en) * 2020-07-22 2020-11-13 浪潮金融信息技术有限公司 SP remote file transmission method
CN111935248B (en) * 2020-07-22 2023-12-29 浪潮金融信息技术有限公司 SP remote file transfer method
CN112153152A (en) * 2020-09-28 2020-12-29 深圳壹账通智能科技有限公司 Management method and system of algorithm service interface
WO2022144609A1 (en) * 2020-12-31 2022-07-07 Sensetime International Pte. Ltd. Information interaction methods, apparatuses, devices, and systems and storage media
US11489925B2 (en) 2020-12-31 2022-11-01 Sensetime International Pte. Ltd. Information interaction methods, apparatuses, devices, and systems and storage media
CN113032036A (en) * 2021-02-03 2021-06-25 腾讯科技(深圳)有限公司 Service data processing method, device, system, computer equipment and storage medium
CN114860834A (en) * 2022-06-01 2022-08-05 北京字节跳动网络技术有限公司 Processing method, device, equipment and storage medium of associated query request
CN114860834B (en) * 2022-06-01 2024-03-26 北京字节跳动网络技术有限公司 Processing method, device, equipment and storage medium of association query request

Also Published As

Publication number Publication date
CN109639636B (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN109639636A (en) Business datum forwarding, business data processing method, device and electronic equipment
CN103841134B (en) Based on API transmission, the method for receive information, apparatus and system
CN110268729A (en) To Internet of Things (IOT) equipment supply equipment and/or Line sharing ability
CN106528432A (en) Construction method and apparatus for test scene data, and buried point test method
CN106686105B (en) Message pushing method, computing device, server and information sharing system
CN108550038A (en) A kind of data dissemination system and method applied to block chain
CN109522488A (en) A kind of information recommendation method and equipment
EP2635051A1 (en) Application shop system and application development method using the application shop system
CN104539571B (en) Information interacting method, identification authentication method, server and terminal
WO2016123896A1 (en) Information sharing method and device
KR20170101416A (en) Method for providing funding and consulting information related with entertainment by crowd funding system
CN110245128A (en) Method for building up and device, storage medium, the electronic device of meta-model
CN109274705A (en) Service providing method, apparatus and system based on user identity
CN109769249A (en) A kind of authentication method, system and its apparatus
CN106572095A (en) Account registration method, device and system
CN108495316A (en) A kind of wireless connection method and equipment
CN107634854B (en) Service data processing method and device
CN104506616B (en) Browser client sends the method, apparatus and system of information
CN108650170A (en) A kind of display methods and device of information
CN109032693A (en) Method and device for loading display information, electronic equipment and readable storage medium
US11521250B2 (en) Method and apparatus for providing digital product using user account synchronization
CN111797334A (en) Website access method and device, electronic equipment and storage medium
US20120296989A1 (en) File transmission management system and file transmission management method for supporting file transmission in mobile messaging service
EP3424005A1 (en) Counterfeit electronic device detection
US20140351087A1 (en) Registration process

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
TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220413

Address after: Room 602, No. 618, Wai Road, Huangpu District, Shanghai 200010

Patentee after: Ant fortune (Shanghai) Financial Information Service Co.,Ltd.

Address before: Ky1-9008 business centre, 27 Hospital Road, Georgetown, grand caiman, UK

Patentee before: Innovative advanced technology Co.,Ltd.

TR01 Transfer of patent right