CN110191140A - Method for processing business, device and server - Google Patents
Method for processing business, device and server Download PDFInfo
- Publication number
- CN110191140A CN110191140A CN201810153947.4A CN201810153947A CN110191140A CN 110191140 A CN110191140 A CN 110191140A CN 201810153947 A CN201810153947 A CN 201810153947A CN 110191140 A CN110191140 A CN 110191140A
- Authority
- CN
- China
- Prior art keywords
- business
- provider
- request
- business datum
- service request
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Abstract
The embodiment of the present application provides a kind of method for processing business, device, server and storage medium, the embodiment of the present application configures a processing task for each business provider, after user side initiating business request, it can star each processing task, execute each processing task parallel, service data request is initiated to corresponding business provider by processing task, and corresponding business provider is waited to provide business datum;Simultaneously, the present embodiment is provided with target strategy to limit waiting condition, after needing to respond service request according to target strategy determination, result, which is obtained, according to current business datum responds service request, in the case where guaranteeing to multiple business provider requested service data, certain business providers can be prevented because business datum feedback is compared with the low problem for the treatment of effeciency caused by slow.
Description
Technical field
The invention relates to Internet technical field more particularly to method for processing business, device and server.
Background technique
With the development of internet technology, service platform can access more and more business providers, to make user
It is serviced with can be convenient.As an example, after user's initiating business request, from service platform to business provider's requested service
Data, above-mentioned treatment process are related to the real-time acquisition of business datum, in the case where business provider's number is more, due to industry
The respective technical capability of provider of being engaged in is different, and response time of each business provider to service request, there may be difference, clothes
The time for the business datum that business platform receives each business provider is different, comes to service platform processing business data band larger tired
It disturbs, leads to business data processing inefficiency.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present application provides method for processing business, device and service
Device.
According to the embodiment of the present application in a first aspect, providing a kind of method for processing business, which comprises
Obtain the service request that user side equipment is initiated;
Several processing tasks are triggered to be executed parallel to corresponding business provider initiation service data request, and waiting pair
Business provider is answered to provide the operation of business datum;
It is determined according to target strategy after needing to respond the service request, according to several described processing tasks to business number
According to reception result respond the service request.
According to the second aspect of the embodiment of the present application, a kind of business processing device is provided, described device includes:
Request module, is used for: obtaining the service request that user side equipment is initiated;
Trigger module is used for: being triggered several processing tasks and is executed parallel to corresponding business provider initiation business number
According to request, and corresponding business provider is waited to provide the operation of business datum;
Respond module is used for: is determined after needing to respond the service request according to target strategy, according to described at several
Reason task responds the service request to the reception result of business datum.
According to the third aspect of the embodiment of the present application, a kind of server is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the service request that user side equipment is initiated;
Several processing tasks are triggered to be executed parallel to corresponding business provider initiation service data request, and waiting pair
Business provider is answered to provide the operation of business datum;
It is determined according to target strategy after needing to respond the service request, according to several described processing tasks to business number
According to reception result respond the service request.
According to the fourth aspect of the embodiment of the present application, a kind of computer storage medium is provided, is stored in the storage medium
There is program instruction, described program instruction includes:
Obtain the service request that user side equipment is initiated;
Several processing tasks are triggered to be executed parallel to corresponding business provider initiation service data request, and waiting pair
Business provider is answered to provide the operation of business datum;
It is determined according to target strategy after needing to respond the service request, according to several described processing tasks to business number
According to reception result respond the service request.
The technical solution that the embodiment of the embodiment of the present application provides can include the following benefits:
In the embodiment of the present application, a processing task is configured for each business provider, business is initiated in user side and asks
After asking, each processing task can star, execute each processing task parallel, provided by processing task to corresponding business
Fang Faqi service data request, and corresponding business provider is waited to provide business datum;Meanwhile the present embodiment is provided with target plan
Slightly to limit waiting condition, after needing to respond service request according to target strategy determination, according to current business datum
It obtains result and responds service request, in the case where guaranteeing to multiple business provider requested service data, certain can be prevented
A little business providers feed back because of business datum compared with the low problem for the treatment of effeciency caused by slow.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The embodiment of the present application can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets the embodiment of the present application
Embodiment, and together with specification be used to explain the principle of the embodiment of the present application.
Fig. 1 is a kind of the embodiment of the present application application scenarios of method for processing business shown according to an exemplary embodiment
Figure.
Fig. 2 is a kind of the embodiment of the present application flow chart of method for processing business shown according to an exemplary embodiment.
Fig. 3 A is the flow chart of the embodiment of the present application another method for processing business shown according to an exemplary embodiment.
Fig. 3 B is the flow chart of the embodiment of the present application another method for processing business shown according to an exemplary embodiment.
Fig. 4 is a kind of the embodiment of the present application block diagram of business processing device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the embodiment of the present application.On the contrary, they be only with
The example of the consistent device and method of as detailed in the attached claim, the embodiment of the present application some aspects.
It is only merely for for the purpose of describing particular embodiments, being not intended to be limiting this in the term that the embodiment of the present application uses
Apply for embodiment.The embodiment of the present application and the "an" of singular used in the attached claims, " described " and
"the" is also intended to including most forms, unless the context clearly indicates other meaning.It is also understood that art used herein
Language "and/or" refers to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various letters may be described using term first, second, third, etc. in the embodiment of the present application
Breath, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example,
In the case where not departing from the embodiment of the present application range, the first information can also be referred to as the second information, similarly, the second information
The first information can also be referred to as.Depending on context, word as used in this " if " can be construed to " ...
When " or " when ... " or " in response to determination ".
A kind of operating system framework of the embodiment of the present application scheme is illustrated first.It is shown in Figure 1, it is the application
A kind of application scenario diagram of business data processing method shown according to an exemplary embodiment includes: that user is held in Fig. 1
The server that is configured of electronic equipment, the server that is configured of platform side and several business provider.User can use
Personal electronic equipments in platform side's server registration account, obtain the service that platform side provides in advance.Other business providers
Other business can be provided for user by platform side with access platform side's server.
For a certain business, platform side is possible to access multiple and different business providers, in user's initiating business request
When, platform side can require business datum to multiple business providers.It platform side can be by the business number of each business provider
It is selected according to user is supplied to, be also possible to platform root according to user demand is from the business datum of each business provider
User recommends wherein one or more business provider.Above-mentioned treatment process is related to the real-time acquisition of business datum, in business
In the case that provider's number is more, since the respective technical capability of business provider is different, each business provider is to business
The response time of request, the time that platform side receives the business datum of each business provider was different there may be difference, to flat
Platform side's processing business data band carrys out larger puzzlement, leads to business data processing inefficiency.
Based on this, the present embodiment provides a kind of business data processing schemes, configure at one for each business provider
Reason task can star each processing task after user side initiating business request, execute each processing task parallel, lead to
It crosses processing task and initiates service data request to corresponding business provider, and corresponding business provider is waited to provide business number
According to;Meanwhile the present embodiment is provided with target strategy to limit waiting condition, needs to respond industry according to target strategy determination
After business request, result is obtained according to current business datum and responds service request, is guaranteeing to request to multiple business providers
In the case where business datum, certain business providers can be prevented because business datum feedback is low compared with treatment effeciency caused by slow
Problem.
As shown in Fig. 2, being a kind of the application process of business data processing method shown according to an exemplary embodiment
Figure, includes the following steps:
In step 202, the service request that user side is initiated is obtained.
In step 204, several processing tasks are triggered to be executed parallel to corresponding business provider initiation business datum
Request, and corresponding business provider is waited to provide the operation of business datum.
In step 206, it is determined according to target strategy after needing to respond the service request, according to several described processing
Task responds the service request to the reception result of business datum.
The embodiment of the present application can be applied to the server-side of platform side's configuration, can between platform side and each business provider
There is data transmission interface with agreement, which can define platform side server interface address, business provider's server connects
Port address, the tunneling of data, coding protocol, the rule for sending agreement, decompression agreement or encryption and decryption agreement etc. agreement, with
Guarantee that data can be transmitted with security and stability between platform side and business provider, it can be by platform in detail practical application
Flexible configuration as needed, the embodiment of the present application are not construed as limiting this between side and business provider.
By the data-interface, after platform side receives the service request of user side initiation, platform side can be by this
Data-interface requests to provide business datum to business provider.Optionally, when requested service data, business correlation can be carried
The subscriber identity informations such as information, such as account, user's name, gender, age and other information relevant to this business.
In the embodiment of the present application, corresponding processing task is configured for each business provider, processing task is for executing:
Service data request is initiated to corresponding business provider, and corresponding business provider is waited to provide the operation of business datum.When
After user side initiating business request, platform side executes aforesaid operations by triggering each processing task parallel.
Since the processing capacity of each business provider is different, certain processing tasks can may comparatively fast receive business number
According to, and certain processing tasks may receive business datum more slowly.Based on this, target strategy is present embodiments provided, the target
Strategy can be understood as the condition that platform side sets response service request, after triggering several processing tasks, server-side benefit
It needs to respond service request under what conditions with target strategy monitoring.Need to respond the business when determining according to target strategy
After request, the service request can be responded to the reception result of business datum according to several described processing tasks.
It can according to need in practical application and various configurations carried out to target strategy, as an example, can only configuration one
Strategy can also configure the set of strategies comprising multiple strategies, and in the case where multiple strategies, service side can be according to one or more
A Consideration selects suitable one or more strategies as target strategy, these Considerations can according to need flexibly
Configuration, such as the preference of user, the requirement of business provider etc..As an example, the strategy centralized policy, which is used to indicate, to be needed
The condition of the service request is responded, the condition can be configured from many aspects, and including at least can as follows wherein
It is a kind of:
The first, waiting time of the business datum is reached.The present embodiment can use waiting time configuration strategy,
In practical application, unified waiting time can be configured for all processing tasks, that is to say and start after triggering processing task
Timing is carried out, is reached in waiting time, determination needs to respond service request;In other examples, it is also possible to for different places
Reason task configures different waiting times, and each processing task corresponding waiting time can be different, certain processing tasks etc.
Can be longer to duration, the waiting time of certain processing tasks can be shorter, can be with after triggering processing task when concrete application
Start to carry out timing, and business datum is obtained according to the waiting time of each processing task processing task.
Second, the processing task of predetermined number obtains business datum in several processing tasks.The present embodiment can
To be interpreted as obtaining the speed configuration strategy of business datum according to processing task, that is to say after triggering processing task, certain places
After reason task comparatively fast obtains business datum, that is, it can determine and need to respond service request;Specifically, can be the place of predetermined number
Reason task obtains business datum, that is, can determine and need to respond service request.The predetermined number can be one, two etc. it is a variety of
It sets, it can be with flexible configuration in practical application.
The third, there is specified processing task to obtain business datum in several processing tasks.It, can be in the present embodiment
Certain business provider priority with higher are interpreted as, the corresponding processing task of these business provider is as appointed
Processing task, determination needs to respond business after after triggering processing task needing that these processing tasks is waited to receive business datum
Request.
Can be configured according to above-mentioned condition include one or more strategies set of strategies, and can according to user's needs,
The service related information for obtaining user side is chosen from the preset set of strategies including at least one strategy and matches the business phase
Close the target strategy of information.As an example, the certain business providers of the possible preference of certain user, therefore can be inclined according to user
It is good, choose the plan above-mentioned with " thering is specified processing task to obtain business datum in several processing tasks " for condition configuration
It slightly, and by the corresponding processing task setting of the business provider of user preference is the specified processing task.Certain user may
The timeliness of business datum is more paid close attention to, therefore can be chosen above-mentioned " to have in several described processing tasks default
The processing task of number obtains business datum " it is the strategy that condition configures.Wherein, user preference can first pass through user in advance
People's information or historical data etc. carry out data analysis and obtain, and can be inclined for user and its corresponding user based on the analysis results
Incidence relation is established well, after the service related information for obtaining user side, determines initiating business request from service related information
User, and then user preference is determined according to incidence relation.
It currently needs to respond service request when platform side has determined, indicates that platform side needs to send to user side equipment now
Feedback data, at this time, it is possible to which certain processing tasks have been obtained for business datum, and certain processing tasks do not obtain business temporarily
Data;It for unclosed processing task, can directly discharge, terminate unclosed processing task.And the processing terminated is appointed
Business may only one, it is also possible to have multiple, all acquired business datums can all be fed back to user side and set by platform side
It is standby, user side equipment is fed back to after wherein one or more business datums can also be selected.
Meet the business datum of user preference as an example, can be to choose and feed back to user side equipment, alternatively, can also be with
Wherein one or more processing tasks are chosen according to the priority of the processing task, according to the business of the processing task selected
Data respond the service request.Above-mentioned priority can be in some instances can by platform side's flexible configuration as needed
It is determined with the service related information according to the user side;Specifically, due to different business provider may provide it is not of the same trade or business
Business, every kind of business are not quite similar, and platform side can analyze the demand or preference of user from service related information, according to business
The business of provider is that different business provider configures different priority, so as to be chosen according to the priority of processing task
The business datum of wherein one or more processing tasks feeds back to user side equipment.
In practical application, it is possible to the case where there are user preference some business providers, it is also possible to which there are certain industry
The business of business provider needs situations such as preferential recommendation is to user, and platform side can set one or more business provider conducts
Default business provider executes parallel to corresponding business provider in described several processing tasks of triggering and initiates business datum
It, can be first to default business provider initiating business request, and then the sound according to the default business provider before request
Should result determine whether to trigger several processing tasks and executed parallel to corresponding business provider and initiate service data request
Step, by above-mentioned processing mode, platform side first can submit service request to default business provider, and preferential receipt defaults industry
The business datum that business provider provides.
If default business provider can normally handle the service request, platform side can receive business datum, and
Business datum is sent to user side equipment, shows user to consult by user side equipment.In the feelings for having multiple business providers
Under condition, user is it may also be desired that consult the business datum of other business provider, and therefore, platform Fang Ruo receives the user side
The message of other business datums of the needs of equipment feedback, can execute described several processing tasks of triggering and be executed parallel to correspondence
Business provider the step of initiating service data request, it is hereby achieved that more business datum is supplied to user.
In practical application, after initiating request to default business provider, it is also possible to network access occur compared with slow, system is numerous
Busy or failure etc. or be situations such as service request of user can not be handled normally etc., therefore platform side is in discovery above situation
Afterwards, can also trigger several processing tasks execute parallel to corresponding business provider initiate service data request, so as to
User is supplied to obtain more business datums.
Next the application is described in detail by an embodiment again.
In the present embodiment, platform side is by taking net about vehicle platform side as an example, business provider is illustrated by taking insurance business as an example.
Net about vehicle platform side provides net about vehicle service for user, registers car owner user more involved in user, such car owner user
Possess vehicle, optionally, the information that such car owner user submits when platform side registers includes the name at useful family, gender, year
Age, duration etc. of driving subscriber identity information, and it is provided with license plate number, Vehicle Certificate number, vehicle brand, vehicle model or vehicle
Use duration etc. information of vehicles.For such car owner user for possessing vehicle, usually there is the demand of purchase car insurance.
Therefore, platform side can access the business provider of one or more offer insurance businesses, provide vehicle insurance business for user.
The insurance products as provided by different insurance business providers are different, in order to maximize the product selection of user
Face, platform side can be using between schemes provided by the embodiment of the present application, with each business provider for providing insurance business
Agreement has data transmission interface, and according to data transmission interface, realizes the processing task for being directed to each business provider in advance.
Specifically, platform side can provide an APP (Application, application program) to user, by user installation in intelligence
In the personal devices such as energy mobile phone, user can obtain the service of platform side by the APP.It can be provided in the APP for user
The page for buying vehicle insurance, by the page, user can initiate the service request of related purchase vehicle insurance, can be in the service request
Carry the history insurance data of subscriber identity information, the information of vehicles of user or user etc. service related information.
Platform side's server receive the APP initiation service request after, can from all business providers of cooperation,
It chooses one or more business providers and initiates service data request.In practical application, the insurance of possible certain business providers
The guarantor that there is product geographical location to require (such as user's purchase for being only facing certain areas etc.), possible certain business providers
There is dangerous product vehicle to require (such as the user etc. for being only facing vehicle age 6 years or more) using duration, it is also possible to which user is to industry
Business has certain demand, such as user it is expected to buy the insured amount product etc. more than 200,000, therefore, in some instances, platform
Side can choose several suitable business providers from all business providers of cooperation and require according to service related information
Business datum.In other examples, it is also possible to choose all business providers and requires business datum, in practical applications may be used
With flexible configuration as needed.
For business provider selected by platform side, platform side needs to ask to each business provider initiation business datum
It asks.In order to solve the problems, such as inefficiency that multi-service provider may cause, the present embodiment initiates business by the way of asynchronous
Request of data.Specifically, the asynchronous system refers to the selected corresponding processing task of each business provider of triggering, each place
It is executed parallel between reason task, each processing task execution: initiating service data request to corresponding business provider, and wait
Corresponding business provider provides the operation of business datum.It is appreciated that each processing task is independent to correspondence by above-mentioned processing
Business provider initiate service data request, execute aforesaid operations parallel between each processing task.
Above-mentioned processing task is triggered after execution, and processing task is initiating service data request to corresponding business provider
Afterwards, corresponding business provider can be waited to provide business datum.Due to the uninterrupted of different business provider or processing capacity etc.
It is not quite similar, each processing task is also different to the waiting time of business datum.In the present embodiment, platform side can configure one
Or multiple target strategies are made with needing to respond service request to user side equipment under what conditions using target strategy monitoring
After obtaining multiple parallel processing task starts, it may finally be converted into the synchronized result to user side equipment response service request,
Optionally, the request to business datum can be stopped after strategy meets, without waiting the business of other non-feedback data
Provider.
Wherein, the above-mentioned specific implementation executed parallel according to actual programming language flexible choice implementation.As
Example can realize the parallel execution of multiple processing tasks by taking Java language as an example using completablefuture function,
Completablefuture function defines each thread of scheduling and the release strategy of each thread.It, will by the function
The return of multiple parallel asynchronous threads is converted into synchronized result, when policy condition meets can winding-up data etc.
To.
It can according to need in practical application and various configurations carried out to target strategy, as an example, can only configuration one
Strategy can also configure the set of strategies comprising multiple strategies, and in the case where multiple strategies, platform side can be according to one or more
A Consideration selects suitable one or more strategies as target strategy, these Considerations can according to need flexibly
Configuration, such as the preference of user, the requirement of business provider etc..As an example, the strategy centralized policy, which is used to indicate, to be needed
The condition of the service request is responded, the condition can be configured from many aspects, and including at least can as follows wherein
It is a kind of:
The waiting time of the business datum is reached;There is the processing task of predetermined number in several described processing tasks
Obtain business datum;There is specified processing task to obtain business datum in several described processing tasks.
As an example, above-mentioned strategy may include:
Absolute status strategy, i.e., several insurance providers have absolute priority, the feedback of these insurance providers
Business datum is the condition to user side equipment response service request.
Speed-priority strategy receives the business datum for feeding back the insurance provider of most fast predetermined number, be to
The condition of family side apparatus response service request.
Time priority strategy reaches preset duration threshold value in waiting time, be to respond service request to user side equipment
Condition.
Priority query's strategy can configure each insurance provider's that is, for several insurance providers of selection
Priority uses the insurance of high priority if it can receive the quotation of insurance company of high priority in specified waiting time
The business datum of provider, if do not received, with the business datum of the insurance provider of opposite low priority.Later, from
In the business datum of each insurance provider received, the business datum of the business provider of highest priority is chosen.
Fair competition strategy refers to that each insurance company is in same status, does not have priority difference.
In practical application, the above-mentioned strategy of combination also can according to need, as an example, excellent in absolute status strategy and time
First under the combine scenes of strategy, when business provider's feedback traffic data of absolute priority and waiting time arrival threshold value,
Terminate the processing task of other all business providers, i.e., the industry of the business provider of absolute priority is provided to user side equipment
Be engaged in data, and within waiting time received other business providers business datum.By the above-mentioned means, both can guarantee industry
The receiving efficiency for data of being engaged in, can also realize the preferential recommendation of the business provider of absolute priority.
Wherein, the service data request in the present embodiment, can carry subscriber identity information, user information of vehicles or
The history insurance data of user etc. service related information, so that business provider is according to service related information feedback traffic number
According to above-mentioned business datum may include: insurance products introduction, price or product time limit etc..In practical applications, in addition to normal
Business datum feedback, business provider is also possible to feed back other data, for example, because interface malloc failure malloc, network access compared with
Slowly, the system problems such as system is busy and the data fed back;Or because user provide vehicle data mistake, forbid contracting new energy
Vehicle vehicle damages danger, the user informations wrong data such as strange land number plate, or by the history insurance data of user feed back not in window
Mouth issue evidence, wherein do not include in window phase: the state that can continue insurance (refers to that user bought certain insurance products, which produces
The time limit of product has arrived at, and continues this product for buying subsequent time period for user at present), the following state of insuring again
(referring to insurance products that user is bought still in the state of insuring, the time limit does not reach, insures again after the time limit reaches) and
Not commercially available state (user has bought certain insurance products, no longer needs to similar-type products of insuring) etc..
In view of certain customers have continuation of insurance demand or platform side to have the need of a certain business provider product of preferential recommendation
It asks, is a kind of the application method for processing business schematic diagram shown according to an exemplary embodiment, platform can as shown in Figure 3A
To set one or more business providers as default business provider, it is described execute parallel several processing units it
Before, to default business provider initiating business request, determine whether to execute according to the response results of the default business provider
Described the step of executing several processing units parallel.
Specifically, service request is first directly issued default business provider by platform side, mentioned by default business provider
For business datum.As an example, may include following a variety of situations in practical application: if default business provider returns the result
It is not in window phase but particular content is: can continues insurance, then the continuation of insurance page be presented to user;If defaulting business provider returns to knot
Fruit is not in window phase and particular content is: insuring again later, then jumps to continuation of insurance reservation page;If defaulting business to provide
It is user information mistake that side, which returns the result, such as user has filled out drivers license number wrong, then jumps back to information solicitation page etc..It is real
The corresponding processing mode of flexible configuration, the embodiment of the present application this can be not construed as limiting according to concrete scene in the application of border.
Optionally, pre- when determining that user's selection is abandoned continuing insurance or continuing insurance by the continuation of insurance page or continuation of insurance reservation page
About, platform side can then execute: triggering several processing tasks and executed parallel to corresponding business provider initiation business datum
Request, and corresponding business provider is waited to provide the operation of business datum, to provide the industry of other business providers for user
Business data.
And in confirmation default business provider generating system problem, such as situations such as network failure, can also execute: triggering
Several processing tasks execute parallel to corresponding business provider and initiate service data request, and wait corresponding business provider
The operation for providing business datum prevents user etc. so as to provide the business datum of other business providers in time for user
To the long period, business processing efficiency is improved.
It as shown in Figure 3B, is the application another method for processing business schematic diagram shown according to an exemplary embodiment,
After defaulting business provider generating system problem, platform side, which can according to need, chooses N number of insurance business side, and from set of strategies
Middle Selection Strategy requires industry to other insurance business sides as an example, can be absolute priority strategy and time priority strategy
Business datum is obtained according to strategy after business data and feeds back to pre- measurement equipment.
By the above-mentioned means, the combination of default business provider and multi-service provider may be implemented, meeting user's need
Ask or platform side's demand on the basis of, maximize user product selection face, reduce the operating cost of user, improve business
Treatment effeciency.
It is corresponding with the embodiment of aforementioned method for processing business, the embodiment of the present application also provides business processing device and its
The embodiment of applied server.
As shown in figure 4, Fig. 4 is a kind of the embodiment of the present application business processing device shown according to an exemplary embodiment
Block diagram, described device include:
Request module 41, is used for: obtaining the service request that user side equipment is initiated;
Trigger module 42, is used for: triggering several processing tasks and is executed parallel to corresponding business provider initiation business
Request of data, and corresponding business provider is waited to provide the operation of business datum;
Respond module 43, is used for: according to target strategy determine need to respond the service request after, according to it is described several
Processing task responds the service request to the reception result of business datum.
The embodiment of the present application can be applied to the server-side of platform side's configuration, can between platform side and each business provider
There is data transmission interface with agreement, which can define platform side server interface address, business provider's server connects
Port address, the tunneling of data, coding protocol, the rule for sending agreement, decompression agreement or encryption and decryption agreement etc. agreement, with
Guarantee that data can be transmitted with security and stability between platform side and business provider, it can be by platform in detail practical application
Flexible configuration as needed, the embodiment of the present application are not construed as limiting this between side and business provider.
By the data-interface, after platform side receives the service request of user side initiation, platform side can be by this
Data-interface requests to provide business datum to business provider.Optionally, when requested service data, business correlation can be carried
The subscriber identity informations such as information, such as account, user's name, gender, age and other information relevant to this business.
In the embodiment of the present application, corresponding processing task is configured for each business provider, processing task is for executing:
Service data request is initiated to corresponding business provider, and corresponding business provider is waited to provide the operation of business datum.When
After user side initiating business request, platform side executes aforesaid operations by triggering each processing task parallel.
Since the processing capacity of each business provider is different, certain processing tasks can may comparatively fast receive business number
According to, and certain processing tasks may receive business datum more slowly.Based on this, target strategy is present embodiments provided, the target
Strategy can be understood as the condition that platform side sets response service request, after triggering several processing tasks, server-side benefit
It needs to respond service request under what conditions with target strategy monitoring.Need to respond the business when determining according to target strategy
After request, the service request can be responded to the reception result of business datum according to several described processing tasks.
It can according to need in practical application and various configurations carried out to target strategy, as an example, can only configuration one
Strategy can also configure the set of strategies comprising multiple strategies, and in the case where multiple strategies, service side can be according to one or more
A Consideration selects suitable one or more strategies as target strategy, these Considerations can according to need flexibly
Configuration, such as the preference of user, the requirement of business provider etc..As an example, the strategy centralized policy, which is used to indicate, to be needed
The condition of the service request is responded, the condition can be configured from many aspects, and including at least can as follows wherein
It is a kind of:
The waiting time of the business datum is reached;The present embodiment can use waiting time configuration strategy, actually answer
In, unified waiting time can be configured for all processing tasks, that is to say and start to be counted after triggering processing task
When, it is reached in waiting time, determination needs to respond service request;In other examples, it is also possible to for different processing tasks
Configure different waiting times, each processing task corresponding waiting time can be different, the waiting time of certain processing tasks
Can be longer, the waiting time of certain processing tasks can be shorter, when concrete application, can start after triggering processing task into
Row timing, and business datum is obtained according to the waiting time of each processing task processing task.
There is the processing task of predetermined number to obtain business datum in several described processing tasks;The present embodiment can be managed
Solution is the speed configuration strategy that business datum is obtained according to processing task, be that is to say after triggering processing task, and certain processing are appointed
After the very fast acquisition business datum of business, that is, it can determine and need to respond service request;Specifically, the processing that can be predetermined number is appointed
Business obtains business datum, that is, can determine and need to respond service request.The predetermined number can be one, two etc. and a variety of set
It is fixed, it can be with flexible configuration in practical application.
There is specified processing task to obtain business datum in several described processing tasks.In the present embodiment, Ke Yili
Solution is certain business provider priority with higher, and the corresponding processing task of these business provider is as appointed place
Reason task determines that needing to respond business asks after after triggering processing task needing that these processing tasks is waited to receive business datum
It asks.
Can be configured according to above-mentioned condition include one or more strategies set of strategies, and can according to user's needs,
The service related information for obtaining user side is chosen from the preset set of strategies including at least one strategy and matches the business phase
Close the target strategy of information.As an example, the certain business providers of the possible preference of certain user, therefore can be inclined according to user
It is good, choose the plan above-mentioned with " thering is specified processing task to obtain business datum in several processing tasks " for condition configuration
It slightly, and by the corresponding processing task setting of the business provider of user preference is the specified processing task.Certain user may
The timeliness of business datum is more paid close attention to, therefore can be chosen above-mentioned " to have in several described processing tasks default
The processing task of number obtains business datum " it is the strategy that condition configures.Wherein, user preference can first pass through user in advance
People's information or historical data etc. carry out data analysis and obtain, and can be inclined for user and its corresponding user based on the analysis results
Incidence relation is established well, after the service related information for obtaining user side, determines initiating business request from service related information
User, and then user preference is determined according to incidence relation.
It currently needs to respond service request when platform side has determined, indicates that platform side needs to send to user side equipment now
Feedback data, at this time, it is possible to which certain processing tasks have been obtained for business datum, and certain processing tasks do not obtain business temporarily
Data;It for unclosed processing task, can directly discharge, terminate unclosed processing task.And the processing terminated is appointed
Business may only one, it is also possible to have multiple, all acquired business datums can all be fed back to user side and set by platform side
It is standby, user side equipment is fed back to after wherein one or more business datums can also be selected.
Meet the business datum of user preference as an example, can be to choose and feed back to user side equipment, alternatively, can also be with
Wherein one or more processing tasks are chosen according to the priority of the processing task, according to the business of the processing task selected
Data respond the service request.Above-mentioned priority can be in some instances can by platform side's flexible configuration as needed
It is determined with the service related information according to the user side;Specifically, due to different business provider may provide it is not of the same trade or business
Business, every kind of business are not quite similar, and platform side can analyze the demand or preference of user from service related information, according to business
The business of provider is that different business provider configures different priority, so as to be chosen according to the priority of processing task
The business datum of wherein one or more processing tasks feeds back to user side equipment.
In practical application, it is possible to the case where there are user preference some business providers, it is also possible to which there are certain industry
The business of business provider needs situations such as preferential recommendation is to user, and platform side can set one or more business provider conducts
Default business provider, optionally, described device can also include: sending module, be used for: trigger in the trigger module several
A processing task is executed parallel before corresponding business provider initiation service data request, is initiated to default business provider
Service request;The trigger module is also used to: determining the trigger module according to the response results of the default business provider
Several processing tasks whether are triggered to be executed parallel to corresponding business provider initiation service data request.Pass through above-mentioned processing
Mode, platform side first can submit service request to default business provider, and preferential receipt defaults the industry that business provider provides
Business data.
If default business provider can normally handle the service request, platform side can receive business datum, and
Business datum is sent to user side equipment, shows user to consult by user side equipment.In the feelings for having multiple business providers
Under condition, user is it may also be desired that consult the business datum of other business provider, and therefore, platform Fang Ruo receives the user side
The message of other business datums of the needs of equipment feedback, can execute described several processing tasks of triggering and be executed parallel to correspondence
Business provider the step of initiating service data request, it is hereby achieved that more business datum is supplied to user.
In practical application, after initiating request to default business provider, it is also possible to network access occur compared with slow, system is numerous
Busy or failure etc. or be situations such as service request of user can not be handled normally etc., therefore platform side is in discovery above situation
Afterwards, can also trigger several processing tasks execute parallel to corresponding business provider initiate service data request, so as to
User is supplied to obtain more business datums.
The function of modules and the realization process of effect are specifically detailed in above-mentioned business processing in above-mentioned business processing device
The realization process of step is corresponded in method, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The module of explanation may or may not be physically separated, and the component shown as module can be or can also be with
It is not physical module, it can it is in one place, or may be distributed on multiple network modules.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize the embodiment of the present application scheme.Those of ordinary skill in the art
It can understand and implement without creative efforts.
Correspondingly, the embodiment of the present application also provides a kind of server, described device includes processor;It is handled for storage
The memory of device executable instruction;Wherein, the processor is configured to:
Obtain the service request that user side equipment is initiated;
Several processing tasks are triggered to be executed parallel to corresponding business provider initiation service data request, and waiting pair
Business provider is answered to provide the operation of business datum;
It is determined according to target strategy after needing to respond the service request, according to several described processing tasks to business number
According to reception result respond the service request.
Correspondingly, the embodiment of the present application also provides a kind of computer storage medium, program is stored in the storage medium
Instruction, described program instruction include:
Obtain the service request that user side equipment is initiated;
Several processing tasks are triggered to be executed parallel to corresponding business provider initiation service data request, and waiting pair
Business provider is answered to provide the operation of business datum;
It is determined according to target strategy after needing to respond the service request, according to several described processing tasks to business number
According to reception result respond the service request.
It is (including but unlimited that the storage medium for wherein including program code in one or more can be used in the embodiment of the present application
In magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.Computer can use storage
Medium includes permanent and non-permanent, removable and non-removable media, can be accomplished by any method or technique information
Storage.Information can be computer readable instructions, data structure, the module of program or other data.The storage medium of computer
Example include but is not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory
(DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically 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-biography
Defeated medium, can be used for storage can be accessed by a computing device information.
Those skilled in the art will readily occur to the application implementation after considering specification and practicing the invention applied here
Other embodiments of example.Any modification, purposes or the adaptability that the embodiment of the present application is intended to cover the embodiment of the present application become
Change, these variations, uses, or adaptations follow the general principle of the embodiment of the present application and including the embodiment of the present application
The common knowledge or conventional techniques in the art that do not apply.The description and examples are only to be considered as illustrative,
The true scope and spirit of the embodiment of the present application are indicated by the following claims.
It should be understood that the embodiment of the present application is not limited to the accurate knot for being described above and being shown in the accompanying drawings
Structure, and various modifications and changes may be made without departing from the scope thereof.The range of the embodiment of the present application is only by appended right
It is required that limit.
The foregoing is merely the preferred embodiments of the embodiment of the present application, all not to limit the embodiment of the present application
Within the spirit and principle of the embodiment of the present application, any modification, equivalent substitution, improvement and etc. done should be included in this Shen
Please embodiment protection within the scope of.
Claims (22)
1. a kind of method for processing business, which is characterized in that the described method includes:
Obtain the service request that user side equipment is initiated;
It triggers several processing tasks to be executed parallel to corresponding business provider initiation service data request, and waits corresponding industry
The operation for provider's offer business datum of being engaged in;
It is determined according to target strategy after needing to respond the service request, according to several described processing tasks to business datum
Reception result responds the service request.
2. the method according to claim 1, wherein the method also includes:
After needing to respond the service request according to target strategy determination, unclosed processing task is terminated.
3. the method according to claim 1, wherein the method also includes:
The service related information for obtaining user side is chosen from the preset set of strategies including at least one strategy and matches the industry
The target strategy for relevant information of being engaged in.
4. according to the method described in claim 3, it is characterized in that, the strategy centralized policy is used to indicate described in needs response
The condition of service request, the condition include at least following one of:
The waiting time of the business datum is reached, has the processing task of predetermined number to obtain in several described processing tasks
There is specified processing task to obtain business datum in business datum or described several processing tasks.
5. according to the method described in claim 3, it is characterized in that, described several processing tasks according to are to business datum
Reception result respond the service request, comprising:
If there are multiple processing tasks to receive business datum, wherein one or more are chosen according to the priority of the processing task
Processing task responds the service request according to the business datum of the processing task selected.
6. according to the method described in claim 5, it is characterized in that, the priority of the processing task is according to the user side
Service related information and determine.
7. the method according to claim 1, wherein being executed parallel in described several processing tasks of triggering to right
Before the business provider answered initiates the step of service data request, the method also includes:
To default business provider initiating business request, determine whether to execute according to the response results of the default business provider
Described several processing tasks of triggering execute the step of initiating service data request to corresponding business provider parallel.
8. the method according to the description of claim 7 is characterized in that the response results according to the default business provider
Determine whether that executing described several processing tasks of triggering executes parallel to corresponding business provider initiation service data request
The step of, comprising:
After the business datum that the default business provider provides is sent to the user side equipment, if receiving the user
The message of other business datums of the needs of side apparatus feedback, executes described several processing tasks of triggering and is executed parallel to corresponding
Business provider initiates the step of service data request.
9. method according to any one of claims 1 to 8, which is characterized in that the service request includes: for insurance business
Request.
10. according to the method described in claim 9, it is characterized in that, the service related information includes following one or more:
The history insurance data of subscriber identity information, the information of vehicles of user or user.
11. a kind of business processing device, which is characterized in that described device includes:
Request module, is used for: obtaining the service request that user side equipment is initiated;
Trigger module is used for: trigger several processing tasks execute parallel to corresponding business provider initiate business datum ask
It asks, and corresponding business provider is waited to provide the operation of business datum;
Respond module is used for: being determined according to target strategy after needing to respond the service request, is appointed according to several described processing
It is engaged in responding the service request to the reception result of business datum.
12. device according to claim 11, which is characterized in that described device further includes terminating module, is used for:
After needing to respond the service request according to target strategy determination, unclosed processing task is terminated.
13. device according to claim 11, which is characterized in that described device further includes that strategy chooses module, is used for:
The service related information for obtaining user side is chosen from the preset set of strategies including at least one strategy and matches the industry
The target strategy for relevant information of being engaged in.
14. device according to claim 13, which is characterized in that the strategy centralized policy, which is used to indicate, needs to respond institute
The condition of service request is stated, the condition includes at least following one of:
The waiting time of the business datum is reached, has the processing task of predetermined number to obtain in several described processing tasks
There is specified processing task to obtain business datum in business datum or described several processing tasks.
15. device according to claim 13, which is characterized in that the respond module is also used to:
If there are multiple processing tasks to receive business datum, wherein one or more are chosen according to the priority of the processing task
Processing task responds the service request according to the business datum of the processing task selected.
16. device according to claim 15, which is characterized in that the priority of the processing task is according to the user side
Service related information and determine.
17. device according to claim 11, which is characterized in that described device further include:
Sending module is used for: being triggered several processing tasks in the trigger module and is executed parallel to corresponding business provider
Before initiating service data request, to default business provider initiating business request;
The trigger module is also used to: determining whether the trigger module touches according to the response results of the default business provider
Several processing tasks are sent out to be executed parallel to corresponding business provider initiation service data request.
18. device according to claim 17, which is characterized in that the trigger module is also used to:
After the business datum that the default business provider provides is sent to user side equipment by the sending module, if receiving
The message for needing other business datums fed back to the user side equipment, triggers several processing tasks and is executed parallel to correspondence
Business provider initiate service data request.
19. 1 to 18 any device according to claim 1, which is characterized in that the service request includes: for insurance
The request of business.
20. device according to claim 19, which is characterized in that the service related information includes following a kind of or more
Kind:
The history insurance data of subscriber identity information, the information of vehicles of user or user.
21. a kind of server characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the service request that user side equipment is initiated;
It triggers several processing tasks to be executed parallel to corresponding business provider initiation service data request, and waits corresponding industry
The operation for provider's offer business datum of being engaged in;
It is determined according to target strategy after needing to respond the service request, according to several described processing tasks to business datum
Reception result responds the service request.
22. a kind of computer storage medium, which is characterized in that be stored with program instruction in the storage medium, described program refers to
Order includes:
Obtain the service request that user side equipment is initiated;
It triggers several processing tasks to be executed parallel to corresponding business provider initiation service data request, and waits corresponding industry
The operation for provider's offer business datum of being engaged in;
It is determined according to target strategy after needing to respond the service request, according to several described processing tasks to business datum
Reception result responds the service request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810153947.4A CN110191140B (en) | 2018-02-22 | 2018-02-22 | Service processing method and device and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810153947.4A CN110191140B (en) | 2018-02-22 | 2018-02-22 | Service processing method and device and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110191140A true CN110191140A (en) | 2019-08-30 |
CN110191140B CN110191140B (en) | 2022-07-22 |
Family
ID=67713853
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810153947.4A Active CN110191140B (en) | 2018-02-22 | 2018-02-22 | Service processing method and device and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110191140B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111523692A (en) * | 2020-04-09 | 2020-08-11 | 北京白龙马云行科技有限公司 | Order management method, order management device and order management system |
CN113409142A (en) * | 2021-06-15 | 2021-09-17 | 深圳市丽海弘金科技有限公司 | Security trading method, device, system and computer readable storage medium |
CN114125062A (en) * | 2021-11-25 | 2022-03-01 | 北京达佳互联信息技术有限公司 | Task information display method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102737065A (en) * | 2011-04-15 | 2012-10-17 | 腾讯科技(深圳)有限公司 | Method and device for acquiring data |
CN103077006A (en) * | 2012-12-27 | 2013-05-01 | 浙江工业大学 | Multithreading-based parallel executing method for long transaction |
US20140164474A1 (en) * | 2006-06-30 | 2014-06-12 | Qurio Holdings, Inc. | Methods, systems, and products for pairing agents and service providers |
CN104618429A (en) * | 2014-12-23 | 2015-05-13 | 华为技术有限公司 | Information interacting method and device |
CN104918224A (en) * | 2014-03-14 | 2015-09-16 | 中国移动通信集团江苏有限公司 | Application service providing method and system and client service platform |
CN105335143A (en) * | 2014-07-30 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Business processing method and apparatus |
-
2018
- 2018-02-22 CN CN201810153947.4A patent/CN110191140B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140164474A1 (en) * | 2006-06-30 | 2014-06-12 | Qurio Holdings, Inc. | Methods, systems, and products for pairing agents and service providers |
CN102737065A (en) * | 2011-04-15 | 2012-10-17 | 腾讯科技(深圳)有限公司 | Method and device for acquiring data |
CN103077006A (en) * | 2012-12-27 | 2013-05-01 | 浙江工业大学 | Multithreading-based parallel executing method for long transaction |
CN104918224A (en) * | 2014-03-14 | 2015-09-16 | 中国移动通信集团江苏有限公司 | Application service providing method and system and client service platform |
CN105335143A (en) * | 2014-07-30 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Business processing method and apparatus |
CN104618429A (en) * | 2014-12-23 | 2015-05-13 | 华为技术有限公司 | Information interacting method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111523692A (en) * | 2020-04-09 | 2020-08-11 | 北京白龙马云行科技有限公司 | Order management method, order management device and order management system |
CN113409142A (en) * | 2021-06-15 | 2021-09-17 | 深圳市丽海弘金科技有限公司 | Security trading method, device, system and computer readable storage medium |
CN114125062A (en) * | 2021-11-25 | 2022-03-01 | 北京达佳互联信息技术有限公司 | Task information display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110191140B (en) | 2022-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110222533B (en) | Distributed data security application method and system and electronic equipment | |
US10492039B1 (en) | State-based electronic message management systems and controllers | |
US10649796B2 (en) | Rolling resource credits for scheduling of virtual computer resources | |
US20160077846A1 (en) | Resource credit pools for replenishing instance resource credit balances of virtual compute instances | |
CN110661849A (en) | Request processing method and device, electronic equipment and storage medium | |
EP3489825A1 (en) | Method, apparatus and computer readable storage medium for processing service | |
CN108334972A (en) | vehicle travel monitoring method and device | |
US11418603B2 (en) | Dynamic backoff and retry attempts based on incoming request | |
CN110191140A (en) | Method for processing business, device and server | |
TWI354475B (en) | Dispatching client requests to appropriate server- | |
WO2021057084A1 (en) | Blockchain-based data processing method and apparatus, system, and electronic device | |
CN112311851B (en) | Network policy configuration method and device | |
CN111490947A (en) | Data packet transmitting method, data packet receiving method, system, device and medium | |
CN109561054A (en) | A kind of data transmission method, controller and access device | |
CN108122124B (en) | Information pushing method, platform and system | |
CN113095936B (en) | Entrusted order processing method, entrusted order processing device, computer equipment and storage medium | |
CN112991064B (en) | Service processing method, device, computer equipment and storage medium | |
CN109743357A (en) | A kind of successional implementation method of business access and device | |
US11200616B2 (en) | Electronic file transmission method, device, system, and computer readable storage medium | |
CN114157997B (en) | IROS topic bridging method, equipment and medium | |
CN111832862B (en) | Flow management method and system based on block chain | |
CN110955504A (en) | Method, server, system and storage medium for intelligently distributing rendering tasks | |
CN113961162A (en) | Screen projection control method, screen projection sending end, screen projection receiving end and screen projection system | |
US10742802B2 (en) | Methods and devices for verifying a communication number | |
CN110474954A (en) | Sharing files method, apparatus, computer equipment and readable storage medium storing program for executing based on block chain |
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 |