CN112181984A - Channel service management method, device, equipment and medium - Google Patents

Channel service management method, device, equipment and medium Download PDF

Info

Publication number
CN112181984A
CN112181984A CN202011043101.9A CN202011043101A CN112181984A CN 112181984 A CN112181984 A CN 112181984A CN 202011043101 A CN202011043101 A CN 202011043101A CN 112181984 A CN112181984 A CN 112181984A
Authority
CN
China
Prior art keywords
condition
tenant
channel service
standard
condition object
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
CN202011043101.9A
Other languages
Chinese (zh)
Other versions
CN112181984B (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.)
Shenzhen Pingan Zhihui Enterprise Information Management Co ltd
Original Assignee
Ping An Digital Information Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Digital Information Technology Shenzhen Co Ltd filed Critical Ping An Digital Information Technology Shenzhen Co Ltd
Priority to CN202011043101.9A priority Critical patent/CN112181984B/en
Publication of CN112181984A publication Critical patent/CN112181984A/en
Application granted granted Critical
Publication of CN112181984B publication Critical patent/CN112181984B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • 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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Fuzzy Systems (AREA)
  • Computational Linguistics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Mathematical Physics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to the technical field of artificial intelligence, and discloses a channel service management method, a device, equipment and a medium, wherein the method comprises the following steps: acquiring a tenant condition label set; performing condition object conversion on condition labels in the tenant condition label set to obtain a tenant condition object set; acquiring a standard service type condition object set and a standard performance index condition object set; determining a channel service identifier to be screened according to the tenant condition object set and the standard service type condition object set; determining a target channel service identifier according to the tenant condition object set, the channel service identifier to be screened and the standard performance index condition object set; storing the target channel service identification in a database. Therefore, the decoupling of the channel service and the business logic is realized, the increase of channel merchants or the ending of the cooperation relation has no relation with the business logic, the expandability of the system is increased, and the difficulty of system maintenance is reduced.

Description

Channel service management method, device, equipment and medium
Technical Field
The present application relates to the field of artificial intelligence technologies, and in particular, to a channel service management method, apparatus, device, and medium.
Background
A multi-tenant application system (SaaS) encapsulates services provided by an external service provider into standardized services and provides the standardized services to tenants or serves as basic services provided by an application business process, such as sending short messages, face recognition, document conversion and the like. The traditional method for accessing the multi-channel service is to adapt each channel service and integrate the channel service into the business logic, so that the channel service is tightly coupled with the business logic, and when the personalized service is needed to be provided for the tenant, in order to judge whether the service provider meets the requirements of the tenant, the channel service meeting the conditions needs to be screened in the business logic according to the requirements of the tenant, so that the coupling of the channel service and the business logic is further increased. Channel service and business logic are tightly coupled, so that the system is more and more bloated along with increase of channel merchants or end of a cooperative relationship, even the business flow is influenced, the expandability is poor, and the maintenance difficulty is increased.
Disclosure of Invention
The present application mainly aims to provide a channel service management method, device, equipment and medium, and aims to solve the technical problems of a multi-tenant application system in the prior art that channel services and business logic are tightly coupled, which results in a system being bloated, poor in expandability and large in maintenance difficulty.
In order to achieve the above object, the present application provides a channel service management method, including:
acquiring a tenant condition label set;
performing condition object conversion on condition labels in the tenant condition label set to obtain a tenant condition object set;
acquiring a standard service type condition object set and a standard performance index condition object set, wherein a condition object in the standard service type condition object set carries a channel service identifier, and a condition object in the standard performance index condition object set carries the channel service identifier;
determining a channel service identifier to be screened according to the tenant condition object set and the standard service type condition object set;
determining a target channel service identifier according to the tenant condition object set, the channel service identifier to be screened and the standard performance index condition object set;
and storing the target channel service identification in a database.
Further, the step of obtaining the tenant condition label set includes:
acquiring a condition set to be processed of a tenant;
and performing label conversion on the condition set to be processed to obtain the tenant condition label set.
Further, the step of performing label conversion on the condition set to be processed to obtain the tenant condition label set includes:
converting each condition in the condition set to be processed according to a preset condition label expression to obtain a condition label to be processed;
determining the tenant condition label set according to all the to-be-processed condition labels;
wherein the preset conditional tag expression is: < condition identification > [ < condition operator > < < value 1> [ metric unit ], [ value 2] [ metric unit ] >.
Further, before the step of obtaining the standard service type condition object set and the standard performance index condition object set, the method further includes:
acquiring a channel service condition label set;
determining a standard service type condition label set and a standard performance index condition label set according to the channel service condition label set;
performing conditional object conversion on each conditional label in the standard service type conditional label set to obtain the standard service type conditional object set;
and performing conditional object conversion on each conditional label in the standard performance index conditional label set to obtain the standard performance index conditional object set.
Further, the step of determining the channel service identifier to be screened according to the tenant condition object set and the standard service type condition object set includes:
acquiring a tenant service type condition object subset from the tenant condition object set;
and searching and matching in the standard service type condition object set according to each condition object in the tenant service type condition object subset, and taking the channel service identifier carried by the condition object which is successfully matched as the channel service identifier to be screened.
Further, the step of determining a target channel service identifier according to the tenant condition object set, the channel service identifier to be filtered and the standard performance index condition object set includes:
acquiring a tenant standard performance index condition object subset from the tenant condition object set;
determining a target performance index condition object subset from the standard performance index condition object set according to the channel service identifier to be screened;
and searching and matching in the target performance index condition object subset according to each condition object in the tenant standard performance index condition object subset, and taking the channel service identifier carried by the condition object which is successfully matched as the target channel service identifier.
Further, the target channel service identifier carries a tenant identifier and a tenant condition set identifier; and the number of the first and second groups,
after the step of storing the target channel service identification in a database, the method further comprises:
acquiring a tenant scheduling service request, wherein the scheduling service request carries the tenant identification and the tenant condition set identification;
acquiring the channel service identifier from the database according to the tenant identifier and the tenant condition set identifier carried by the scheduling service request, and taking the acquired channel service identifier as a channel service identifier to be called;
and determining a target calling channel service identifier according to the to-be-called channel service identifier based on a polling load balancing mode.
The present application further provides a channel service management device, the device including:
the tenant label acquisition module is used for acquiring a tenant condition label set;
the conditional object conversion module is used for performing conditional object conversion on the conditional tags in the tenant conditional tag set to obtain a tenant conditional object set;
a standard object obtaining module, configured to obtain a standard service type condition object set and a standard performance index condition object set, where a condition object in the standard service type condition object set carries a channel service identifier, and a condition object in the standard performance index condition object set carries the channel service identifier;
and the channel service screening module is used for determining a channel service identifier to be screened according to the tenant condition object set and the standard service type condition object set, determining a target channel service identifier according to the tenant condition object set, the channel service identifier to be screened and the standard performance index condition object set, and storing the target channel service identifier in a database.
The present application further proposes a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
The present application also proposes a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any of the above.
According to the channel service management method, the device, the equipment and the medium, the tenant condition label set is converted into the tenant condition object set, the channel service identification to be screened is determined according to the tenant condition object set and the standard service type condition object set, the target channel service identification is determined according to the tenant condition object set, the channel service identification to be screened and the standard performance index condition object set, the target channel service identification is stored in the database, when the tenant calls the channel service, the tenant only needs to obtain the target channel service identification in the database, and does not need to screen the service logic, so that the decoupling of the channel service and the service logic is realized, the increase of a channel provider or the ending of a cooperation relationship has no relation with the service logic, the expandability of a system is increased, and the difficulty of system maintenance is reduced.
Drawings
Fig. 1 is a flowchart illustrating a channel service management method according to an embodiment of the present application;
FIG. 2 is a block diagram illustrating a channel service management apparatus according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In order to solve the technical problems of the prior art that a multi-tenant application system is too bulky in system, poor in expandability and high in maintenance difficulty due to close coupling of channel service and business logic, the channel service management method is provided, and the method is applied to the technical field of artificial intelligence. The method decouples the channel service and the business logic, so that the increase of channel businessmen or the ending of the cooperation relation has no relation with the business logic, the expandability of the system is increased, and the difficulty of system maintenance is reduced.
Referring to fig. 1, the channel service management method includes:
s1: acquiring a tenant condition label set;
s2: performing condition object conversion on condition labels in the tenant condition label set to obtain a tenant condition object set;
s3: acquiring a standard service type condition object set and a standard performance index condition object set, wherein a condition object in the standard service type condition object set carries a channel service identifier, and a condition object in the standard performance index condition object set carries the channel service identifier;
s4: determining a channel service identifier to be screened according to the tenant condition object set and the standard service type condition object set;
s5: determining a target channel service identifier according to the tenant condition object set, the channel service identifier to be screened and the standard performance index condition object set;
s6: and storing the target channel service identification in a database.
In the embodiment, the tenant condition label set is converted into the tenant condition object set, the channel service identifier to be screened is determined according to the tenant condition object set and the standard service type condition object set, the target channel service identifier is determined according to the tenant condition object set, the channel service identifier to be screened and the standard performance index condition object set, the target channel service identifier is stored in the database, and when the tenant calls the channel service, the tenant only needs to obtain the target channel service identifier in the database and does not need to screen the service logic, so that decoupling of the channel service and the service logic is realized, the increase of the channel trader or the end of the cooperation relation has no relation with the service logic, the expandability of the system is increased, and the difficulty of system maintenance is reduced.
For S1, the tenant condition tag set may be obtained from the database, or the tenant condition tag set input by the tenant may be directly obtained.
The tenant condition label set refers to a condition label set of the same tenant.
The tenant condition label set comprises: at least one condition label.
The condition tags include, but are not limited to: service type condition label and performance index condition label.
The business type condition label is an identifier for describing the business type of the channel service. The business type refers to the specific completion of the channel service. The traffic types include, but are not limited to: face comparison and short message sending.
The performance index condition label is an identifier for describing a performance index of the channel service. The performance index refers to the highest performance index which can be reached by the channel service. The performance indicators include, but are not limited to: duration of response, maximum number of simultaneous processes. For example, the response duration is less than 100ms, and the maximum number of simultaneously sent short messages is 1000, which is not specifically limited in this example.
In the tenant condition label set, the number of the service type condition labels may be 1, or may be multiple, and is not specifically limited herein.
In the tenant condition tag set, the number of the performance index condition tags may be 0, 1, or multiple, and is not specifically limited herein.
For S2, performing condition object conversion on each condition label in the tenant condition label set to obtain a tenant condition object; and determining the tenant condition object set according to all the tenant condition objects. That is, each condition tag in the tenant condition tag set corresponds to one tenant condition object. And placing all the tenant condition objects in the same set to obtain the tenant condition object set.
For S3, the standard business type condition object set and the standard performance index condition object set may be obtained from a database, or the standard business type condition object set and the standard performance index condition object set may be obtained from other data sources.
The standard business type condition object set refers to a set of business type condition objects obtained by converting business type condition labels of channel services. That is, the standard business type condition object set includes: business type condition object and channel service identification.
The standard performance index condition object set is a set of performance index condition objects obtained by converting performance index condition labels of the channel service. That is, the standard business type condition object set includes: performance index condition object, channel service identification.
Preferably, each service type condition object in the standard service type condition object set carries at least one channel service identifier.
Preferably, each performance index conditional object in the standard performance index conditional object set carries at least one channel service identifier.
The channel service identifier may be a channel service ID, a channel service name, or the like, which uniquely identifies a channel service.
For step S4, a service type condition object included in the standard service type condition object set and the tenant condition object set is found, the found service type condition object is used as a target service type condition object, and a channel service identifier corresponding to the target service type condition object is used as the channel service identifier to be screened.
And S5, screening channel service identifications from the channel service identifications to be screened according to the tenant condition object set and the standard performance index condition object set, and taking the channel service identifications obtained by screening as target channel service identifications.
It is understood that the number of the target channel service identifications may be one or more.
For S6, the step of storing the target channel service identification in a database includes:
s61: performing JSON character string conversion on all the target channel service identifications to obtain target JSON character strings;
s62: and storing the target JSON character string in Redis.
For S62, the target JSON string is stored in the Redis in a distributed Key-Value manner.
The target channel service identifier is converted into a JSON character string and then stored in the Redis in a distributed Key-Value mode, so that efficiency of inquiring the target channel service identifier is improved when a tenant calls a channel service.
JSON (JSON) is a lightweight data exchange format. It stores and represents data in a text format that is completely independent of the programming language, based on a subset of ECMAScript (js specification set by the european computer association). The compact and clear hierarchy makes JSON an ideal data exchange language. The network transmission method is easy to read and write by people, is easy to analyze and generate by machines, and effectively improves the network transmission efficiency.
The JSON character string is a character string of a data exchange format of JSON.
The Redis is a key-value storage system. Similar to Memcached, it supports relatively more stored value types, including string, list, set, zset, and hash. These data types all support push/pop, add/remove, and intersect union and difference, and richer operations, and these operations are all atomic. On this basis, Redis supports various different ways of ordering. Like memcached, data is cached in memory to ensure efficiency. The difference is that Redis periodically writes updated data to a disk or writes a modification operation to an additional recording file, and a master-slave synchronization is realized on the basis of the updated data or the modification operation.
Redis is a high-performance key-value database. The occurrence of Redis greatly compensates the shortage of key-Value storage such as memcached, and can play a good role in supplementing a relational database in some occasions. The method provides clients such as Java, C/C + +, C #, PHP, JavaScript, Perl, Object-C, Python, Ruby, Erlang and the like, and is convenient to use.
In an embodiment, the step of obtaining the tenant condition label set includes:
s11: acquiring a condition set to be processed of a tenant;
s12: and performing label conversion on the condition set to be processed to obtain the tenant condition label set.
In this embodiment, a to-be-processed condition set input by a tenant is subjected to label conversion, so as to obtain a standardized tenant condition label set.
For S11, the set of conditions to be processed may be obtained from the database, or may also be obtained as directly input by the tenant.
The set of conditions to be processed includes at least one condition.
And S12, performing label conversion on each condition in the condition set to be processed, and putting the converted condition labels in a set to obtain the tenant condition label set.
In an embodiment, the step of performing label conversion on the to-be-processed condition set to obtain the tenant condition label set includes:
s121: converting each condition in the condition set to be processed according to a preset condition label expression to obtain a condition label to be processed;
s122: determining the tenant condition label set according to all the to-be-processed condition labels;
wherein the preset conditional tag expression is: < condition identification > [ < condition operator > < < value 1> [ metric unit ], [ value 2] [ metric unit ] >.
According to the embodiment, each condition in the condition set to be processed is converted according to the preset condition label expression, so that the standardized expression of the tenant on the channel service requirement is realized, the channel service screening accuracy is improved, and the channel service screening efficiency is also improved.
For step S121, each condition in the condition set to be processed is converted according to a preset condition tag expression to obtain a condition tag to be processed, that is, each condition in the condition set to be processed corresponds to one condition tag to be processed. And, the condition label to be processed is expressed in a format of a preset condition label expression.
When the condition set to be processed comprises a plurality of conditions, the number of the condition tags to be processed is multiple.
And S122, putting all the conditional tags to be processed in a set to obtain the tenant conditional tag set.
For the preset conditional tag expression: < condition identification > [ < condition operator > < < value 1> [ metric unit ], [ value 2] [ metric unit ] >.
The condition mark is a character string which is started by letter Chinese characters and can contain numbers and underlines and is used for uniquely marking a condition label.
The conditional operator is a symbol of the logical comparison, and the conditional operator includes: less than (<), less than or equal to (< ═ i), equal to (═ i), greater than or equal to (>), within the interval (> <:), not including both ends, within the interval (>: including both ends).
The value 1 and the value 2 are used as logical comparison values, and the types are numerical values. The value 2 is needed when the condition operator is > < or ] [ B.
The measurement unit is used for shortening the length of a value and improving readability and is composed of capital and small English letters. May be a common unit of time: seconds(s), milliseconds (ms), Mbps, MB, etc., with the units of measure being non-essential terms.
In the preset condition label expression, condition identification must exist, and a condition operator, a value 1, a value 2 and a metering unit are selectable items. When the condition label only containing the condition identification can only make the comparison of whether the character strings are equal or not.
After the conditional tags are firstly analyzed by the tag analyzer, the conditional tags are respectively analyzed out: the condition identifier, the condition operator, the value 1, the value 2 and the measurement unit are converted into a condition object which can be compared through an object converter, and the structure of the condition object is as follows:
Figure BDA0002707210500000091
preferably, the condition object no longer contains a unit of measure, wherein the object converter converts all values with the unit of measure into the smallest unit that the object converter can recognize. For example, the time measurement unit is converted into milliseconds, and the data transmission measurement unit is converted into bps, which is not limited in this embodiment.
In an embodiment, before the step of obtaining the standard service type condition object set and the standard performance index condition object set, the method further includes:
s031: acquiring a channel service condition label set;
s032: determining a standard service type condition label set and a standard performance index condition label set according to the channel service condition label set;
s033: performing conditional object conversion on each conditional label in the standard service type conditional label set to obtain the standard service type conditional object set;
s034: and performing conditional object conversion on each conditional label in the standard performance index conditional label set to obtain the standard performance index conditional object set.
The embodiment realizes the determination of the standard business type condition object set and the standard performance index condition object set according to the channel service condition label set, thereby realizing the standardized expression of the channel service, improving the accuracy of channel service screening and improving the efficiency of channel service screening.
For S031, a set of channel service condition tags may be obtained from the database.
And each condition label in the channel service condition label set carries a channel service identifier.
For S032, the same service type condition tags in the channel service condition tag set are combined to obtain a standard service type condition tag set, that is, the service type condition tags in the standard service type condition tag set have uniqueness, and each service type condition tag carries at least one channel service identifier.
The standard service type condition label set comprises: service type condition label and channel service identification.
And merging the same performance index condition labels in the channel service condition label set to obtain a standard performance index condition label set, namely, the performance index condition labels in the standard performance index condition label set have uniqueness, and each performance index condition label carries at least one channel service identifier.
The standard performance indicator conditional tag set comprises: performance index condition labels and channel service identifiers.
For S033, analyzing each conditional tag in the standard business type conditional tag set by using a tag analyzer, converting an analysis result by using an object converter, and using the conversion result as a business type conditional object of the channel service; and putting all the channel service type condition objects in a set to obtain the standard service type condition object set.
For S034, analyzing each condition label in the standard performance index condition label set by adopting a label analyzer, converting an analysis result by adopting an object converter, and taking the converted result as a channel service performance index condition object; and putting all the channel service performance index condition objects in a set to obtain the standard performance index condition object set.
In an embodiment, the step of determining the channel service identifier to be filtered according to the tenant condition object set and the standard service type condition object set includes:
s41: acquiring a tenant service type condition object subset from the tenant condition object set;
s42: and searching and matching in the standard service type condition object set according to each condition object in the tenant service type condition object subset, and taking the channel service identifier carried by the condition object which is successfully matched as the channel service identifier to be screened.
The channel service identification to be screened is screened out according to the business type condition object.
For S41, a service type condition object is obtained from the tenant condition object set, and the obtained service type condition object is placed in a set to obtain the tenant service type condition object subset.
For S42, according to each service type condition object in the tenant service type condition object subset, performing search matching on the standard service type condition object set, determining that matching is successful when the same service type condition object is found, and taking all the channel service identifiers carried by the successfully matched service type condition object as the channel service identifiers to be screened.
In an embodiment, the step of determining a target channel service identifier according to the tenant condition object set, the channel service identifier to be filtered, and the standard performance index condition object set includes:
s51: acquiring a tenant standard performance index condition object subset from the tenant condition object set;
s52: determining a target performance index condition object subset from the standard performance index condition object set according to the channel service identifier to be screened;
s53: and searching and matching in the target performance index condition object subset according to each condition object in the tenant standard performance index condition object subset, and taking the channel service identifier carried by the condition object which is successfully matched as the target channel service identifier.
According to the method and the device, the target channel service identification is screened from the channel service identification to be screened according to the performance index condition object.
For S51, a performance index condition object is obtained from the tenant condition object set, and the obtained performance index condition objects are placed in a set to obtain the tenant performance index condition object subset.
For step S52, a channel service identifier identical to the channel service identifier to be screened is found out from the standard performance index condition object set, and performance index condition objects corresponding to the found channel service identifier are placed in a set to obtain a target performance index condition object subset.
It can be understood that the number of channel service identifiers corresponding to the same performance index condition object in the target performance index condition object subset may be equal to or less than the number of channel service identifiers corresponding to the standard performance index condition object set. For example, the number of channel service identifiers corresponding to the performance index conditional object a in the target performance index conditional object subset is 4, and the number of channel service identifiers corresponding to the performance index conditional object a in the standard performance index conditional object set is greater than or equal to 4.
That is to say, the channel service identifiers carried by the performance index conditional objects in the target performance index conditional object subset can be found in the channel service identifiers to be screened.
For step S53, according to each performance index condition object in the tenant standard performance index condition object subset, performing search matching in the target performance index condition object subset, when the same performance index condition object is searched, determining that the matching is successful, and using the channel service identifier carried by the successfully matched performance index condition object as the target channel service identifier.
In one embodiment, the target channel service identifier carries a tenant identifier and a tenant condition set identifier; and the number of the first and second groups,
after the step of storing the target channel service identification in a database, the method further comprises:
s61: acquiring a tenant scheduling service request, wherein the scheduling service request carries the tenant identification and the tenant condition set identification;
s62: acquiring the channel service identifier from the database according to the tenant identifier and the tenant condition set identifier carried by the scheduling service request, and taking the acquired channel service identifier as a channel service identifier to be called;
s63: and determining a target calling channel service identifier according to the to-be-called channel service identifier based on a polling load balancing mode.
According to the method and the device, the target calling channel service identification is determined in a polling load balancing mode, so that the speed of responding to the tenant scheduling service request is improved, and the user experience of the tenant is improved.
The target channel service identifications of all tenants can be stored together through the tenant identification, and the target channel service identifications can also be stored in a database independently set for the tenants.
Through the tenant condition set identification, the tenant can provide a grading service for the end user.
The tenant identification can be an identification which uniquely identifies one tenant, such as a tenant ID, a tenant name, and the like.
The tenant condition set identifier may be an identifier that uniquely identifies a tenant condition set, such as a tenant condition set ID, a tenant condition set name, and the like.
For S61, the tenant scheduling service request refers to a request for the tenant to invoke a channel service.
For S62, the channel service identifier is obtained from the database according to the tenant identifier carried in the scheduling service request and the tenant condition set identifier, and the obtained channel service identifier is used as a channel service identifier to be called, that is, the tenant identifier corresponding to the channel service identifier to be called is the same as the tenant identifier carried in the scheduling service request, and the tenant condition set identifier corresponding to the channel service identifier to be called is the same as the tenant condition set identifier carried in the scheduling service request.
For step S63, based on the polling load balancing algorithm, determining a channel service identifier from the to-be-invoked channel service identifier, and using the determined channel service identifier as a target invocation channel service identifier.
After the step of determining the target calling channel service identifier according to the to-be-called channel service identifier based on the polling load balancing mode, the method comprises the following steps: and scheduling the channel service according to the target calling channel service identifier.
Referring to fig. 2, the present application further provides a channel service management apparatus, the apparatus including:
a tenant label acquisition module 100, configured to acquire a tenant condition label set;
a conditional object conversion module 200, configured to perform conditional object conversion on the conditional tags in the tenant conditional tag set to obtain a tenant conditional object set;
a standard object obtaining module 300, configured to obtain a standard service type condition object set and a standard performance index condition object set, where a condition object in the standard service type condition object set carries a channel service identifier, and a condition object in the standard performance index condition object set carries the channel service identifier;
the channel service screening module 400 is configured to determine a channel service identifier to be screened according to the tenant condition object set and the standard service type condition object set, determine a target channel service identifier according to the tenant condition object set, the channel service identifier to be screened and the standard performance index condition object set, and store the target channel service identifier in a database.
In the embodiment, the tenant condition label set is converted into the tenant condition object set, the channel service identifier to be screened is determined according to the tenant condition object set and the standard service type condition object set, the target channel service identifier is determined according to the tenant condition object set, the channel service identifier to be screened and the standard performance index condition object set, the target channel service identifier is stored in the database, and when the tenant calls the channel service, the tenant only needs to obtain the target channel service identifier in the database and does not need to screen the service logic, so that decoupling of the channel service and the service logic is realized, the increase of the channel trader or the end of the cooperation relation has no relation with the service logic, the expandability of the system is increased, and the difficulty of system maintenance is reduced.
In one embodiment, the tenant tag acquisition module 100 includes: a tenant condition acquisition sub-module and a tenant label conversion sub-module;
the tenant condition acquisition submodule is used for acquiring a condition set to be processed of a tenant;
and the tenant label conversion submodule is used for performing label conversion on the condition set to be processed to obtain the tenant condition label set.
In one embodiment, the tenant label conversion sub-module includes: the system comprises a tenant label conversion unit and a tenant label set determination unit;
the tenant label conversion unit is configured to convert each condition in the condition set to be processed according to a preset condition label expression to obtain a condition label to be processed, where the preset condition label expression is: < condition identification > [ < condition operator > < < value 1> [ measurement unit ], [ value 2] [ measurement unit ] >;
the tenant label set determining unit is used for determining the tenant condition label set according to all the to-be-processed condition labels.
In one embodiment, the apparatus further comprises: a standard set determination module;
the criteria set determination module includes: a channel label obtaining submodule, a set splitting submodule, a standard service type condition object set determining submodule and a standard performance index condition object set determining submodule;
the channel label acquisition submodule is used for acquiring a channel service condition label set;
the set splitting submodule is used for determining a standard service type condition label set and a standard performance index condition label set according to the channel service condition label set;
the standard service type condition object set determining submodule is used for performing condition object conversion on each condition label in the standard service type condition label set to obtain the standard service type condition object set;
and the standard performance index condition object set determining submodule is used for performing condition object conversion on each condition label in the standard performance index condition label set to obtain the standard performance index condition object set.
In one embodiment, the channel service screening module 400 includes: a channel service identifier to be screened determining submodule;
the channel service identification to be screened determining submodule is used for acquiring a tenant service type condition object subset from the tenant condition object set, searching and matching in the standard service type condition object set according to each condition object in the tenant service type condition object subset, and taking the channel service identification carried by the condition object which is successfully matched as the channel service identification to be screened.
In one embodiment, the channel service screening module 400 further comprises: a target channel service identification determining submodule;
the target channel service identification determining submodule is used for acquiring a tenant standard performance index condition object subset from the tenant condition object set, determining a target performance index condition object subset from the standard performance index condition object set according to the channel service identification to be screened, searching and matching the target performance index condition object subset according to each condition object in the tenant standard performance index condition object subset, and taking the channel service identification carried by the condition object which is successfully matched as the target channel service identification.
In one embodiment, the target channel service identifier carries a tenant identifier and a tenant condition set identifier;
the device further comprises: a dispatch service request response module;
the dispatch service request response module includes: the scheduling request acquisition submodule, the channel service identification to be called determining submodule and the target calling channel service identification determining submodule are arranged;
the scheduling request obtaining submodule is used for obtaining a tenant scheduling service request, and the scheduling service request carries the tenant identification and the tenant condition set identification;
the to-be-called channel service identifier determining submodule is used for acquiring the channel service identifier from the database according to the tenant identifier and the tenant condition set identifier carried by the scheduling service request, and taking the acquired channel service identifier as the to-be-called channel service identifier;
and the target calling channel service identification determining submodule is used for determining a target calling channel service identification according to the channel service identification to be called based on a polling load balancing mode.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing data such as channel service management methods and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a channel service management method. The channel service management method comprises the following steps: acquiring a tenant condition label set; performing condition object conversion on condition labels in the tenant condition label set to obtain a tenant condition object set; acquiring a standard service type condition object set and a standard performance index condition object set, wherein a condition object in the standard service type condition object set carries a channel service identifier, and a condition object in the standard performance index condition object set carries the channel service identifier; determining a channel service identifier to be screened according to the tenant condition object set and the standard service type condition object set; determining a target channel service identifier according to the tenant condition object set, the channel service identifier to be screened and the standard performance index condition object set; and storing the target channel service identification in a database.
In the embodiment, the tenant condition label set is converted into the tenant condition object set, the channel service identifier to be screened is determined according to the tenant condition object set and the standard service type condition object set, the target channel service identifier is determined according to the tenant condition object set, the channel service identifier to be screened and the standard performance index condition object set, the target channel service identifier is stored in the database, and when the tenant calls the channel service, the tenant only needs to obtain the target channel service identifier in the database and does not need to screen the service logic, so that decoupling of the channel service and the service logic is realized, the increase of the channel trader or the end of the cooperation relation has no relation with the service logic, the expandability of the system is increased, and the difficulty of system maintenance is reduced.
An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing a channel service management method, including the steps of: acquiring a tenant condition label set; performing condition object conversion on condition labels in the tenant condition label set to obtain a tenant condition object set; acquiring a standard service type condition object set and a standard performance index condition object set, wherein a condition object in the standard service type condition object set carries a channel service identifier, and a condition object in the standard performance index condition object set carries the channel service identifier; determining a channel service identifier to be screened according to the tenant condition object set and the standard service type condition object set; determining a target channel service identifier according to the tenant condition object set, the channel service identifier to be screened and the standard performance index condition object set; and storing the target channel service identification in a database.
According to the executed channel service management method, the tenant condition label set is converted into the tenant condition object set, the channel service identification to be screened is determined according to the tenant condition object set and the standard service type condition object set, the target channel service identification is determined according to the tenant condition object set, the channel service identification to be screened and the standard performance index condition object set, the target channel service identification is stored in the database, when the tenant calls the channel service, the target channel service identification only needs to be obtained in the database, and the screening of service logic is not needed, so that the decoupling of the channel service and the service logic is realized, the increase of channel merchants or the ending of the cooperation relationship has no relation with the service logic, the expandability of the system is increased, and the difficulty of system maintenance is reduced.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A channel service management method, the method comprising:
acquiring a tenant condition label set;
performing condition object conversion on condition labels in the tenant condition label set to obtain a tenant condition object set;
acquiring a standard service type condition object set and a standard performance index condition object set, wherein a condition object in the standard service type condition object set carries a channel service identifier, and a condition object in the standard performance index condition object set carries the channel service identifier;
determining a channel service identifier to be screened according to the tenant condition object set and the standard service type condition object set;
determining a target channel service identifier according to the tenant condition object set, the channel service identifier to be screened and the standard performance index condition object set;
and storing the target channel service identification in a database.
2. The channel service management method of claim 1, wherein the step of obtaining the tenant conditional tag set comprises:
acquiring a condition set to be processed of a tenant;
and performing label conversion on the condition set to be processed to obtain the tenant condition label set.
3. The channel service management method of claim 2, wherein the step of performing label transformation on the set of conditions to be processed to obtain the tenant condition label set comprises:
converting each condition in the condition set to be processed according to a preset condition label expression to obtain a condition label to be processed;
determining the tenant condition label set according to all the to-be-processed condition labels;
wherein the preset conditional tag expression is: < condition identification > [ < condition operator > < < value 1> [ metric unit ], [ value 2] [ metric unit ] >.
4. The channel service management method of claim 1, wherein the step of obtaining the set of standard business type condition objects and the set of standard performance indicator condition objects is preceded by the step of:
acquiring a channel service condition label set;
determining a standard service type condition label set and a standard performance index condition label set according to the channel service condition label set;
performing conditional object conversion on each conditional label in the standard service type conditional label set to obtain the standard service type conditional object set;
and performing conditional object conversion on each conditional label in the standard performance index conditional label set to obtain the standard performance index conditional object set.
5. The method for managing channel service of claim 1, wherein the step of determining the channel service identifier to be filtered according to the tenant condition object set and the standard business type condition object set comprises:
acquiring a tenant service type condition object subset from the tenant condition object set;
and searching and matching in the standard service type condition object set according to each condition object in the tenant service type condition object subset, and taking the channel service identifier carried by the condition object which is successfully matched as the channel service identifier to be screened.
6. The channel service management method of claim 1, wherein the step of determining a target channel service identifier according to the tenant condition object set, the channel service identifier to be filtered and the standard performance index condition object set comprises:
acquiring a tenant standard performance index condition object subset from the tenant condition object set;
determining a target performance index condition object subset from the standard performance index condition object set according to the channel service identifier to be screened;
and searching and matching in the target performance index condition object subset according to each condition object in the tenant standard performance index condition object subset, and taking the channel service identifier carried by the condition object which is successfully matched as the target channel service identifier.
7. The channel service management method according to claim 1, wherein the target channel service identifier carries a tenant identifier and a tenant condition set identifier; and the number of the first and second groups,
after the step of storing the target channel service identification in a database, the method further comprises:
acquiring a tenant scheduling service request, wherein the scheduling service request carries the tenant identification and the tenant condition set identification;
acquiring the channel service identifier from the database according to the tenant identifier and the tenant condition set identifier carried by the scheduling service request, and taking the acquired channel service identifier as a channel service identifier to be called;
and determining a target calling channel service identifier according to the to-be-called channel service identifier based on a polling load balancing mode.
8. An apparatus for channel service management, the apparatus comprising:
the tenant label acquisition module is used for acquiring a tenant condition label set;
the conditional object conversion module is used for performing conditional object conversion on the conditional tags in the tenant conditional tag set to obtain a tenant conditional object set;
a standard object obtaining module, configured to obtain a standard service type condition object set and a standard performance index condition object set, where a condition object in the standard service type condition object set carries a channel service identifier, and a condition object in the standard performance index condition object set carries the channel service identifier;
and the channel service screening module is used for determining a channel service identifier to be screened according to the tenant condition object set and the standard service type condition object set, determining a target channel service identifier according to the tenant condition object set, the channel service identifier to be screened and the standard performance index condition object set, and storing the target channel service identifier in a database.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011043101.9A 2020-09-28 2020-09-28 Channel service management method, device, equipment and medium Active CN112181984B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011043101.9A CN112181984B (en) 2020-09-28 2020-09-28 Channel service management method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011043101.9A CN112181984B (en) 2020-09-28 2020-09-28 Channel service management method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112181984A true CN112181984A (en) 2021-01-05
CN112181984B CN112181984B (en) 2023-04-11

Family

ID=73945525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011043101.9A Active CN112181984B (en) 2020-09-28 2020-09-28 Channel service management method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112181984B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052041A (en) * 2022-06-16 2022-09-13 平安银行股份有限公司 Channel identification distribution method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447088A (en) * 2015-11-06 2016-03-30 杭州掘数科技有限公司 Volunteer computing based multi-tenant professional cloud crawler
US20160117195A1 (en) * 2014-10-28 2016-04-28 Salesforce.Com, Inc. Facilitating elastic allocation of organization-specific queue resources in an on-demand services environment
US20160134619A1 (en) * 2014-10-15 2016-05-12 Zuora, Inc. System and Method for Single Sign-On Technical Support Access to Tenant Accounts and Data in a Multi-Tenant Platform
CN106331000A (en) * 2015-06-19 2017-01-11 北大方正集团有限公司 Method and device for determining service scheme
CN108510239A (en) * 2018-03-13 2018-09-07 平安普惠企业管理有限公司 Employee information management method, device, computer equipment and storage medium
EP3399432A1 (en) * 2017-05-05 2018-11-07 Servicenow, Inc. Identifying clusters for service management operations
CN111478967A (en) * 2020-04-08 2020-07-31 北京字节跳动网络技术有限公司 Request processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160134619A1 (en) * 2014-10-15 2016-05-12 Zuora, Inc. System and Method for Single Sign-On Technical Support Access to Tenant Accounts and Data in a Multi-Tenant Platform
US20160117195A1 (en) * 2014-10-28 2016-04-28 Salesforce.Com, Inc. Facilitating elastic allocation of organization-specific queue resources in an on-demand services environment
CN106331000A (en) * 2015-06-19 2017-01-11 北大方正集团有限公司 Method and device for determining service scheme
CN105447088A (en) * 2015-11-06 2016-03-30 杭州掘数科技有限公司 Volunteer computing based multi-tenant professional cloud crawler
EP3399432A1 (en) * 2017-05-05 2018-11-07 Servicenow, Inc. Identifying clusters for service management operations
CN108510239A (en) * 2018-03-13 2018-09-07 平安普惠企业管理有限公司 Employee information management method, device, computer equipment and storage medium
CN111478967A (en) * 2020-04-08 2020-07-31 北京字节跳动网络技术有限公司 Request processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052041A (en) * 2022-06-16 2022-09-13 平安银行股份有限公司 Channel identification distribution method, device, equipment and storage medium
CN115052041B (en) * 2022-06-16 2024-03-19 平安银行股份有限公司 Channel identifier allocation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112181984B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
CN111200523B (en) Method, device, equipment and storage medium for configuring middle platform system
CN108153803B (en) Data acquisition method and device and electronic equipment
CN112769802B (en) Access verification method and device based on server, electronic equipment and storage medium
DE112009001386T5 (en) RFID tag for RFID service and RFID service procedure for it
CN112181984B (en) Channel service management method, device, equipment and medium
CN111144402A (en) OCR recognition accuracy calculation method, device, equipment and storage medium
CN113625683B (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
CN106603593A (en) HTTP calling method and device based on adaption
CN111209325B (en) Service system interface identification method, device and storage medium
CN101916283B (en) Method for acquiring link information from dynamic webpage and server thereof
CN113126955A (en) Random data generation method and device, intelligent terminal and storage medium
CN114257640A (en) Cloud computing scheduling method and system
CN106485520B (en) Cross-channel communication control method and server
CN111131442B (en) Webpage data monitoring method, terminal equipment and readable storage medium
US20190147860A1 (en) Method and apparatus for identifying information
CN114492324A (en) Component data statistical method and device
CN113946363A (en) Method and device for executing and configuring service data, computer equipment and storage medium
CN113946615A (en) Data structuring processing method, device, equipment and storage medium
CN111708828A (en) Tagged data management method, device, equipment and computer readable storage medium
CN114297229A (en) Data query method and device, electronic equipment and storage medium
CN114239627A (en) Quality control product importing method, device, equipment and computer readable storage medium
CN113779018A (en) Data processing method and device
CN114661713B (en) Data synchronization method, device, equipment and storage medium
CN117596272B (en) Electronic balance and intelligent weighing data management system thereof
CN114710556B (en) Multi-system integrated message pushing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210220

Address after: 518000 room 64, 3 / F, building 364B, Jingui building, 68 Puti Road, Fubao community, Fubao street, Futian District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Pingan Zhihui Enterprise Information Management Co.,Ltd.

Address before: No.1411-14158, main tower of shipping center, No.59 Linhai Avenue, Nanshan street, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong 518000

Applicant before: Ping An digital information technology (Shenzhen) Co.,Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant