CN115934158A - Personalized configuration method based on service identity - Google Patents
Personalized configuration method based on service identity Download PDFInfo
- Publication number
- CN115934158A CN115934158A CN202310154254.8A CN202310154254A CN115934158A CN 115934158 A CN115934158 A CN 115934158A CN 202310154254 A CN202310154254 A CN 202310154254A CN 115934158 A CN115934158 A CN 115934158A
- Authority
- CN
- China
- Prior art keywords
- solution
- service
- software development
- configuration
- development kit
- 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
- 238000000034 method Methods 0.000 title claims abstract description 38
- 230000003068 static effect Effects 0.000 claims abstract description 6
- 238000012544 monitoring process Methods 0.000 claims description 19
- 230000008859 change Effects 0.000 claims description 9
- 230000008569 process Effects 0.000 claims description 3
- 238000001914 filtration Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a personalized configuration method based on service identity, which comprises accessing and configuring a solution software development kit; matching a solution corresponding to the service based on an API (application program interface) of a solution software development kit, and preferentially obtaining the solution from a local cache, if not, obtaining the solution from a configuration server; deserializing the solution obtained; a solution of deserialization is performed. The invention adopts the technical scheme of accessing the solution software development kit to the service system, when a new service is accessed, the configuration is obtained without calling an HTTP interface or an RPC interface, a set of third-party DTO objects are not required to be defined, the solution software development kit is only required to be introduced, and then a static method provided by an API interface is called, so that the flow of the service system is simplified.
Description
Technical Field
The invention belongs to the technical field of service terminals, and particularly relates to a personalized configuration method based on service identities.
Background
In the internet industry, especially in the To B industry (i.e., the To Business, i.e., the enterprise Business creation is enterprise-oriented and provides service for enterprises), the needs of various To B users are greatly different, and some industries are thousands of people. In the face of such personalized requirements, most business systems face the problems of repeated wheel building, low code reuse rate, excessive branch codes and the like. However, it is common practice to solve the personalized needs of users based on configuration, and different companies use different configuration methods, which have different advantages and disadvantages. The distributed configuration center is an open-source distributed configuration center, is a set of Key-Value configuration system and can realize real-time thermal update of configuration; it is also done using a database, where the configuration data is stored in a database table, and the database is queried each time in real time. The above methods have some disadvantages more or less: using a configuration center, which lacks obvious service identification and friendly configuration interaction pages; and the system is configured to be too single point by using the database, and all other business systems are affected once the single point service fails.
Therefore, the present invention provides a personalized configuration method based on service identity, so as to solve at least some technical problems.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: a personalized configuration method based on service identity is provided to solve the existing technical problems.
In order to realize the purpose, the technical scheme adopted by the invention is as follows:
a personalized configuration method based on service identity comprises the following steps:
step 1, a solution software development kit is accessed into a service system and parameters are configured;
step 2, when the service system executes the service, matching a solution corresponding to the service through an open API of a solution software development kit;
step 3, deserializing the acquired solution according to the serialization type of the service;
and 4, the service system executes corresponding operation according to the deserialization solution corresponding to the service.
Further, the step 2 comprises: when a service system executes a service, calling a static method through an open API (application program interface) of a solution software development kit, and acquiring a solution according to the service identity of the service; operation A, if the solution is cached locally, the service system directly acquires the solution; and B, if the local cache does not have the solution, the configuration server generates the solution according to the service identity of the service, the solution is locally cached to a service system through a solution software development kit, and the service system acquires the solution.
Further, the operation B includes: b1, selecting and configuring corresponding parameters based on the service identity of the service, and generating, storing and releasing a solution of the service identity; b2, sending the solution to a solution software development kit through a long chain; b3, locally caching the solution to a service system by the solution software development kit; and operation B4, the service system acquires the solution.
Further, in the operation B2, the solution may be transmitted to a solution software development kit through real-time pushing or active pulling.
Further, in the operation B, the solution software development kit also monitors the configuration change of the service identity in real time, and updates the corresponding solution.
Further, the monitoring and updating process of the solution software development tool comprises the following steps: step a, establishing a monitoring long link and registering a monitoring method; b, when the configuration of the configuration server side is changed, scanning a registered monitoring method, and pushing the changed configuration through a monitoring long chain; and c, calling a monitoring method to obtain the pushed change configuration, and updating a solution corresponding to the local cache based on the change configuration.
Further, if the access of the service identity contains extended information, matching a solution corresponding to the service according to the extended information, wherein the extended information matching is realized by adopting a text analysis engine, and the access refers to parameters required by an interface of a software development kit.
Compared with the prior art, the invention has the following beneficial effects:
the invention adopts the technical scheme of accessing the solution software development kit to the service system, when a new service is accessed, the configuration is obtained without calling an HTTP interface or an RPC interface, a set of third-party DTO objects are not required to be defined, the solution software development kit is only required to be introduced, and then a static method provided by an API interface is called, so that the flow of the service system is simplified.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed description of the preferred embodiments
Interpretation of terms:
API interface: an application programming interface;
an HTTP interface: a development interface based on the HTTP protocol;
RPC interface: an interface based on a remote procedure call protocol;
DTO object: a DTO Data Transfer Object (DTO) is a software application that is designed to Transfer Data between modes.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
As shown in fig. 1, the personalized configuration method based on service identity provided by the present invention includes the following steps:
step 1, a solution software development kit is accessed into a service system and parameters are configured;
step 2, when the service system executes the service, matching a solution corresponding to the service through an open API of a solution software development kit;
step 3, deserializing the acquired solution according to the serialization type of the service;
and 4, the service system executes corresponding operation according to the deserialization solution scheme corresponding to the service.
In the prior art, an HTTP interface or an RPC interface is usually called to obtain the configuration, and a set of third party DTO objects needs to be defined, which is complex to operate. For example, calling an HTTP interface to obtain a configuration requires defining a third party's request and returning a DTO object; then, the HTTP Client calls an interface provided by a configuration system to transmit a request DTO object, and a returned DTO object is obtained; and finally, analyzing the returned DTO object, forming a business configuration object by an inverse sequence, returning the business configuration object to a business system and executing the business configuration object.
Compared with the prior art, the technical scheme of accessing the solution software development kit to the service system is adopted, when a new service is accessed, the configuration is obtained without calling an HTTP interface or an RPC interface, a set of third-party DTO objects are not required to be defined, the solution software development kit is only required to be introduced, and then a static method provided by an API (application program interface) is called, so that the flow of the service system is simplified.
In some embodiments, when the service system in step 2 executes a service, a static method is called through an open API interface of a solution software development kit, and a solution is obtained according to a service identity of the service. The service identity comprises configuration information at least comprising a service identity type, configuration codes, context information, extension information and a serialization type; the service identity type includes but is not limited to an organization, a tenant, or a user, and the configuration code includes but is not limited to a unique code of the organization, the tenant, or the user. Operation A, if the solution is cached locally, the service system directly acquires the solution; and B, if the local cache does not have the solution, the configuration server generates the solution according to the service identity of the service, the solution is locally cached to a service system through a solution software development kit, and the service system acquires the solution.
The invention carries out inquiry through the built-in local cache, and if the local cache is not connected to configure the inquiry of the server through the long chain, the invention avoids the defect that the existing service is too single-point and once the single-point service fails, all other service systems are influenced. The solution is obtained based on parameters of the service identity of the configuration server, for example, the configuration server configures a solution corresponding to the service identity, and encodes the solution as test001 and parameters of some other filtering conditions, and the service system obtains the corresponding solution through the incoming encoded test001 and (optional) filtering parameters. And if no corresponding solution exists in the service system, a solution is immediately generated through the service identity and cached locally, so that the next direct call is facilitated, and the limitation of the fault of the service end is avoided.
In some embodiments, the operation B includes: b1, selecting and configuring corresponding parameters based on the service identity of the service, and generating, storing and releasing a solution of the service identity; b2, sending the solution to a solution software development kit through a long chain; b3, locally caching the solution to a business system by the solution software development kit; and B4, the service system acquires the solution. For users with different service identities, when each user uses the system, different personalized configuration solutions are configured, and the solution is a set configured according to a set of parameter items configured by the service identities.
In some embodiments, if the access of the service contains the extension information, the configuration method of the service identity is not adopted, but the solution corresponding to the service is matched according to the extension information, and the extension information matching is realized by adopting a text analysis engine, wherein the access refers to parameters required by an interface of a software development kit.
In some embodiments, in the operation B2, the solution may also be transmitted to the solution software development kit through real-time push or active pull. The push configuration issued by the long link is configured by an operator, and the time interval of real-time push or active pull can also be configured by the operator.
In some embodiments, in operation B, the solution software development kit further monitors configuration change of the service identity in real time, and updates the corresponding solution. When the configuration is changed, the configuration and the requirement of each user are maintained in time by automatically monitoring and updating the local cache in real time. The monitoring and updating process of the solution software development tool comprises the following steps: step a, establishing a monitoring long link and registering a monitoring method; b, when the configuration of the configuration server side is changed, scanning a registered monitoring method, and pushing the changed configuration through a monitoring long chain; and c, calling a monitoring method to obtain the pushed change configuration, and updating a solution corresponding to the local cache based on the change configuration.
In particular, in said step 1, the parameter configuration of the solution software development kit comprises at least the address configuration of the long link and the configuration concerned by the business system. The address of the long link is the address of the long link issued in operation B2, and the configuration concerned by the service system is some basic or necessary parameter configuration of the solution software development kit.
Finally, it should be noted that: the above embodiments are only preferred embodiments of the present invention to illustrate the technical solutions of the present invention, but not to limit the technical solutions, and certainly not to limit the patent scope of the present invention; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; the modifications or the substitutions do not cause the essence of the corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the present invention; that is, the technical problems to be solved by the present invention are still consistent with the present invention, and all the modifications or changes made without substantial meaning in the spirit and scope of the present invention should be included in the protection scope of the present invention; in addition, the technical scheme of the invention is directly or indirectly applied to other related technical fields, and the technical scheme of the invention is included in the patent protection scope of the invention.
Claims (7)
1. A personalized configuration method based on service identity is characterized by comprising the following steps:
step 1, a solution software development kit is accessed into a service system and parameters are configured;
step 2, when the service system executes the service, matching a solution corresponding to the service through an open API of a solution software development kit;
step 3, deserializing the acquired solution according to the serialization type of the service;
and 4, the service system executes corresponding operation according to the deserialization solution corresponding to the service.
2. The method for personalized configuration based on service identity as claimed in claim 1, wherein the step 2 comprises: when a service system executes a service, calling a static method through an open API (application program interface) of a solution software development kit, and acquiring a solution according to the service identity of the service; operation A, if the solution is cached locally, the service system directly acquires the solution; and B, if the local cache does not have the solution, the configuration server generates the solution according to the service identity of the service, the solution is locally cached to a service system through a solution software development kit, and the service system acquires the solution.
3. The method for personalized configuration based on service identity as claimed in claim 2, wherein the operation B comprises: b1, selecting and configuring corresponding parameters based on the service identity of the service, and generating, storing and releasing a solution of the service identity; b2, sending the solution to a solution software development kit through a long chain; b3, locally caching the solution to a service system by the solution software development kit; and operation B4, the service system acquires the solution.
4. The method of claim 3, wherein in the operation B2, the solution can be further transmitted to a solution software development kit through real-time push or active pull.
5. The method as claimed in claim 2, wherein in operation B, the solution software development kit further monitors configuration change of the service identity in real time, and updates the corresponding solution.
6. The method of claim 5, wherein the monitoring and updating process of the solution software development tool comprises: step a, establishing a monitoring long link and registering a monitoring method; b, when the configuration of the configuration server side is changed, scanning a registered monitoring method, and pushing the changed configuration through a monitoring long chain; and c, calling a monitoring method to obtain the pushed change configuration, and updating a solution corresponding to the local cache based on the change configuration.
7. The method according to claim 2, wherein if the access parameter of the service identity contains extension information, the solution corresponding to the service is matched according to the extension information, and the extension information matching is implemented by using a text parsing engine, wherein the access parameter is a parameter required by an interface of a software development kit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310154254.8A CN115934158B (en) | 2023-02-23 | 2023-02-23 | Personalized configuration method based on service identity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310154254.8A CN115934158B (en) | 2023-02-23 | 2023-02-23 | Personalized configuration method based on service identity |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115934158A true CN115934158A (en) | 2023-04-07 |
CN115934158B CN115934158B (en) | 2023-06-23 |
Family
ID=86557908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310154254.8A Active CN115934158B (en) | 2023-02-23 | 2023-02-23 | Personalized configuration method based on service identity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115934158B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060031225A1 (en) * | 2004-08-06 | 2006-02-09 | Grand Central Communications, Inc. | Providing on-demand access to services in a wide area network |
US20090182565A1 (en) * | 2008-01-10 | 2009-07-16 | At&T Services, Inc. | Aiding Creation of Service Offers Associated with a Service Delivery Framework |
CN107643954A (en) * | 2016-07-20 | 2018-01-30 | 平安科技(深圳)有限公司 | SDK access systems and method |
CN110851209A (en) * | 2019-11-08 | 2020-02-28 | 北京字节跳动网络技术有限公司 | Data processing method and device, electronic equipment and storage medium |
CN111382421A (en) * | 2020-03-19 | 2020-07-07 | 深信服科技股份有限公司 | Service access control method, system, electronic device and storage medium |
CN111552464A (en) * | 2020-04-27 | 2020-08-18 | 上海鸿翼软件技术股份有限公司 | SDK generation method, device, equipment and medium |
CN111625781A (en) * | 2020-08-03 | 2020-09-04 | 腾讯科技(深圳)有限公司 | SDK authorization authentication method, device, equipment and storage medium |
CN112527248A (en) * | 2019-09-18 | 2021-03-19 | 阿里巴巴集团控股有限公司 | Request processing method and device and electronic equipment |
CN113656195A (en) * | 2021-08-13 | 2021-11-16 | 广州虎牙科技有限公司 | Service message channel management method and device and electronic equipment |
CN113726868A (en) * | 2021-08-26 | 2021-11-30 | 上海微盟企业发展有限公司 | Distributed service configuration device method and device based on business identity |
CN114003647A (en) * | 2021-12-31 | 2022-02-01 | 北京泰迪熊移动科技有限公司 | Data processing method and device and computer readable storage medium |
CN114546370A (en) * | 2022-02-23 | 2022-05-27 | 平安普惠企业管理有限公司 | A data docking method and related device |
CN115390939A (en) * | 2022-08-17 | 2022-11-25 | 中电金信软件有限公司 | Service processing method and system |
CN115514665A (en) * | 2022-08-31 | 2022-12-23 | 北京达佳互联信息技术有限公司 | Service expansion method and device, electronic equipment and storage medium |
-
2023
- 2023-02-23 CN CN202310154254.8A patent/CN115934158B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060031225A1 (en) * | 2004-08-06 | 2006-02-09 | Grand Central Communications, Inc. | Providing on-demand access to services in a wide area network |
US20090182565A1 (en) * | 2008-01-10 | 2009-07-16 | At&T Services, Inc. | Aiding Creation of Service Offers Associated with a Service Delivery Framework |
CN107643954A (en) * | 2016-07-20 | 2018-01-30 | 平安科技(深圳)有限公司 | SDK access systems and method |
CN112527248A (en) * | 2019-09-18 | 2021-03-19 | 阿里巴巴集团控股有限公司 | Request processing method and device and electronic equipment |
CN110851209A (en) * | 2019-11-08 | 2020-02-28 | 北京字节跳动网络技术有限公司 | Data processing method and device, electronic equipment and storage medium |
CN111382421A (en) * | 2020-03-19 | 2020-07-07 | 深信服科技股份有限公司 | Service access control method, system, electronic device and storage medium |
CN111552464A (en) * | 2020-04-27 | 2020-08-18 | 上海鸿翼软件技术股份有限公司 | SDK generation method, device, equipment and medium |
CN111625781A (en) * | 2020-08-03 | 2020-09-04 | 腾讯科技(深圳)有限公司 | SDK authorization authentication method, device, equipment and storage medium |
CN113656195A (en) * | 2021-08-13 | 2021-11-16 | 广州虎牙科技有限公司 | Service message channel management method and device and electronic equipment |
CN113726868A (en) * | 2021-08-26 | 2021-11-30 | 上海微盟企业发展有限公司 | Distributed service configuration device method and device based on business identity |
CN114003647A (en) * | 2021-12-31 | 2022-02-01 | 北京泰迪熊移动科技有限公司 | Data processing method and device and computer readable storage medium |
CN114546370A (en) * | 2022-02-23 | 2022-05-27 | 平安普惠企业管理有限公司 | A data docking method and related device |
CN115390939A (en) * | 2022-08-17 | 2022-11-25 | 中电金信软件有限公司 | Service processing method and system |
CN115514665A (en) * | 2022-08-31 | 2022-12-23 | 北京达佳互联信息技术有限公司 | Service expansion method and device, electronic equipment and storage medium |
Non-Patent Citations (4)
Title |
---|
KARL KURBEL等: "Customization of On-Demand ERP Software Using SAP Business ByDesign as an Example", INNOVATION AND FUTURE OF ENTERPRISE INFORMATION SYSTEMS * |
ROBERT THAU: "Design considerations for the Apache Server API", COMPUTER NETWORKS AND ISDN SYSTEMS * |
周密: "基于多信息源的校车智能交互及推送系统研究", 中国优秀硕士学位论文全文数据库 信息科技辑 * |
赵云辉: "针对无硬件安全的终端版权保护的安全设计", 广播电视信息 * |
Also Published As
Publication number | Publication date |
---|---|
CN115934158B (en) | 2023-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8073810B2 (en) | Shared view of customers across business support systems (BSS) and a service delivery platform (SDP) | |
US6934706B1 (en) | Centralized mapping of security credentials for database access operations | |
US8868586B2 (en) | Generating search results based on determined relationships between data objects and user connections to identified destinations | |
CN110708322A (en) | A realization method of proxy service of industrial Internet identification resolution system | |
US8745088B2 (en) | System and method of performing risk analysis using a portal | |
US20090125526A1 (en) | System and method for providing automated non-volatile offline access to relational data | |
CN111861140A (en) | Service processing method, device, storage medium and electronic device | |
CN101159730B (en) | Information processing method, system and device of multimedia affiliation center | |
CN108509523A (en) | Structuring processing method, equipment and the readable storage medium storing program for executing of block chain data | |
CN101552801A (en) | A method and system for on-line browsing and downloading the address-book of user group | |
CN101207838A (en) | Message forwarding based on sender-receiver relationship | |
CN109040300A (en) | The method, apparatus and storage medium of PUSH message | |
CN112364087A (en) | Method and system for accessing database by C/C + + application program of ARM platform | |
CN111083038A (en) | Enterprise management online instant messaging system and method | |
US8015262B2 (en) | Stateless core service transaction patterns | |
CN101277301B (en) | Method, device and system for invocation of distributed system interface | |
US20130204964A1 (en) | Retrieving availability information from published calendars | |
CN115934158A (en) | Personalized configuration method based on service identity | |
US20110038471A1 (en) | Dialing Plan Analysis and Cleanup | |
CN114500002B (en) | Cluster account distribution method and system based on LDAP | |
CN114095471B (en) | Address conversion method, device and address tracing method and device | |
CN113407367A (en) | Interface configuration method and system | |
CN114327898A (en) | Websocket-based task progress interaction method and system | |
US10165122B2 (en) | Centrally provided interactive call menu for a call structure | |
US7116770B1 (en) | Communication network management |
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 |