CN115934158B - Personalized configuration method based on service identity - Google Patents

Personalized configuration method based on service identity Download PDF

Info

Publication number
CN115934158B
CN115934158B CN202310154254.8A CN202310154254A CN115934158B CN 115934158 B CN115934158 B CN 115934158B CN 202310154254 A CN202310154254 A CN 202310154254A CN 115934158 B CN115934158 B CN 115934158B
Authority
CN
China
Prior art keywords
solution
service
configuration
software development
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.)
Active
Application number
CN202310154254.8A
Other languages
Chinese (zh)
Other versions
CN115934158A (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.)
Yunzhu Information Technology Chengdu Co ltd
Original Assignee
Yunzhu Information Technology Chengdu 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 Yunzhu Information Technology Chengdu Co ltd filed Critical Yunzhu Information Technology Chengdu Co ltd
Priority to CN202310154254.8A priority Critical patent/CN115934158B/en
Publication of CN115934158A publication Critical patent/CN115934158A/en
Application granted granted Critical
Publication of CN115934158B publication Critical patent/CN115934158B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a personalized configuration method based on service identity, which comprises accessing and configuring a solution software development kit; based on the API interface of the solution software development kit, matching the solution corresponding to the service, preferentially acquiring from the local cache, and acquiring from the configuration server if not; a solution for deserializing the acquisition; a solution of deserialization is performed. The technical scheme of accessing the solution software development kit to the service system is adopted, when a new service is accessed, the HTTP interface or the RPC interface is not required to be called to acquire configuration, a set of third-party DTO object is not required to be defined, the solution software development kit is only required to be introduced, and then the static method provided by the API interface is called, so that the flow of the service system is simplified.

Description

Personalized configuration method based on service identity
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 (that is, to Business, that is, an enterprise entrepreneur is an enterprise-oriented, service-providing industry for an enterprise), the requirements of various To B users are greatly different, and some industries are thousands of people and thousands of sides. In view of the demands of such personalization, most business systems face the problems of repeatedly manufacturing wheels, low code multiplexing rate, excessive branch codes and the like. It is common practice to solve the personalized demands of users based on configuration, and different companies use different configuration methods, which have different advantages and disadvantages. The distributed configuration center is a set of Key-Value configuration system, so that real-time thermal update of configuration can be realized; there are also databases that are used to store configuration data in a database table, each time the database is queried in real time. While the above methods have more or less drawbacks: a configuration center is used, which lacks obvious service identification and friendly configuration interaction pages; while configuring a system using a database is too single-point, once a single-point service fails, it will affect all other business systems.
Therefore, the invention provides a personalized configuration method based on service identity, so as to at least solve the technical problems.
Disclosure of Invention
The invention aims to solve the technical problems that: the personalized configuration method based on the service identity solves the existing technical problems.
In order to achieve the above 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 to a service system and parameters are configured;
step 2, when the service system executes the service, matching the solution corresponding to the service through an open API interface of a solution software development kit;
step 3, according to the serialization type of the service, the solution obtained by deserialization is adopted;
and 4, the service system executes corresponding operation according to the anti-serialization solution corresponding to the service.
Further, the step 2 includes: when a service system executes a service, calling a static method through an open API interface of a solution software development kit, and acquiring a solution according to a service identity of the service; the operation A is that 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, and 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: the method comprises the steps of 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; operation B2, issuing the solution to a solution software development kit through long chain connection; operating B3, the solution software development kit locally caches the solution to a service system; and B4, acquiring the solution by the service system.
Further, in the operation B2, the solution may also 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 monitors the configuration change of the service identity in real time, and updates the corresponding solution.
Further, the solution software development tool monitoring and updating process includes: step a, establishing a monitoring long link and registering a monitoring method; b, when the configuration of the configuration server is changed, scanning a registered monitoring method, and pushing and changing the configuration by monitoring a long link; and c, calling a monitoring method to acquire pushed change configuration, and updating a solution corresponding to the local cache based on the change configuration.
Further, if the entry of the service identity contains extension information, matching the solution corresponding to the service according to the extension information, wherein the extension information matching is realized by adopting a text parsing engine, and the entry 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 technical scheme of accessing the solution software development kit to the service system is adopted, when a new service is accessed, the HTTP interface or the RPC interface is not required to be called to acquire configuration, a set of third-party DTO object is not required to be defined, the solution software development kit is only required to be introduced, and then the static method provided by the 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.
Description of the embodiments
Term interpretation:
API interface: an application programming interface;
HTTP interface: development interfaces based on the HTTP protocol;
RPC interface: an interface based on a remote procedure call protocol;
DTO object: DTO Data Transfer Object (DTO) (Data Transfer Object) is a software application system that transfers data between design patterns.
The present invention will be described in further detail with reference to the accompanying drawings, in order to make the objects, technical solutions and advantages of the present invention more apparent. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, the personalized configuration method based on service identity provided by the invention comprises the following steps:
step 1, a solution software development kit is accessed to a service system and parameters are configured;
step 2, when the service system executes the service, matching the solution corresponding to the service through an open API interface of a solution software development kit;
step 3, according to the serialization type of the service, the solution obtained by deserialization is adopted;
and 4, the service system executes corresponding operation according to the anti-serialization solution corresponding to the service.
In the prior art, an HTTP interface or an RPC interface is usually called to acquire configuration, a set of third-party DTO objects are required to be defined, and the operation is complex. For example, calling an HTTP interface to obtain a configuration requires defining a request of a third party and returning a DTO object; then using HTTP Client to call an interface provided by a configuration system to transmit the request DTO object, and acquiring a returned DTO object; and finally, analyzing the returned DTO object, inversely sequencing the DTO object into a service configuration object, returning the service configuration object to the service system and executing the service configuration object.
Compared with the prior art, the technical scheme of accessing the solution software development kit into the service system is adopted, when a new service is accessed, the HTTP interface or the RPC interface is not required to be called to acquire configuration, a set of third-party DTO object is not required to be defined, the solution software development kit is only required to be introduced, and then the static method provided by the API interface is called, so that the flow of the service system is simplified.
In some embodiments, when the service system in step 2 executes the service, the solution is obtained according to the service identity of the service by calling a static method through an open API interface of a solution software development kit. The service identity comprises configuration information at least comprising a service identity type, configuration codes, context information, extension information and serialization type; the service identity type includes, but is not limited to, an organization, tenant, or user, and the configuration code includes, but is not limited to, a unique code of the organization, tenant, or user. The operation A is that 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, and the solution is locally cached to a service system through a solution software development kit, and the service system acquires the solution.
The invention queries through the built-in local cache, and the local cache is not used for configuring the server to query through the long link, so that the defect that the existing service is too single-point, and all other service systems are influenced once the single-point service fails is overcome. The solution is obtained based on each parameter of the service identity of the configuration server, for example, the configuration server configures a corresponding solution of the service identity, the parameters are encoded into test001 and some other filtering conditions, and the service system obtains the corresponding solution through the input encoded test001 and the filtering parameters (optional). And if no corresponding solution exists in the service system, a solution is immediately generated through the service identity and is locally cached, so that the next direct call is convenient, and the service system is not limited by the fault of the server.
In some embodiments, the operation B includes: the method comprises the steps of 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; operation B2, issuing the solution to a solution software development kit through long chain connection; operating B3, the solution software development kit locally caches the solution to a service system; and B4, acquiring the solution by the service system. For users with different service identities, when each user uses, different personalized configuration solutions are configured, and the solutions are a set of parameter item configurations configured according to the service identities.
In some embodiments, if the service includes 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 implemented by adopting a text parsing engine, wherein the service includes parameters required by an interface of a software development kit.
In some embodiments, in operation B2, the solution may also be transmitted to a solution software development kit by real-time pushing or active pulling. 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 the operation B, the solution software development kit further monitors configuration changes of service identities in real time, and updates corresponding solutions. When the configuration is changed, the configuration and the requirements of each user are maintained in time by automatically monitoring and updating the local cache in real time. The solution software development tool monitoring and updating process comprises the following steps: step a, establishing a monitoring long link and registering a monitoring method; b, when the configuration of the configuration server is changed, scanning a registered monitoring method, and pushing and changing the configuration by monitoring a long link; and c, calling a monitoring method to acquire 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 a long-linked address configuration and a configuration of interest to the business system. The long-link address is the address where the long-link is issued in operation B2, and the configuration focused 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 merely preferred embodiments of the present invention for illustrating the technical solution of the present invention, but not limiting the scope of the present invention; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions; that is, even though the main design concept and spirit of the present invention is modified or finished in an insubstantial manner, the technical problem solved by the present invention is still consistent with the present invention, and all the technical problems are 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 is included in the scope of the invention.

Claims (5)

1. The personalized configuration method based on the service identity is characterized by comprising the following steps:
step 1, a solution software development kit is accessed to a service system and parameters are configured; the configuration parameters comprise address configuration of long links;
step 2, when the service system executes the service, matching the solution corresponding to the service through an open API interface of a solution software development kit;
step 3, according to the serialization type of the service, the solution obtained by deserialization is adopted;
step 4, the service system executes corresponding operation according to the reverse-serialization solution corresponding to the service;
the step 2 comprises the following steps: when a service system executes a service, calling a static method through an open API interface of a solution software development kit, and acquiring a solution according to a service identity of the service; the operation A is that if the solution is cached locally, the service system directly acquires the solution; if the local cache does not have the solution, the configuration server generates the solution according to the service identity of the service, and the solution is locally cached to a service system through a solution software development kit, and the service system acquires the solution;
the operation B includes: the method comprises the steps of 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; operation B2, issuing the solution to a solution software development kit through long chain connection; operating B3, the solution software development kit locally caches the solution to a service system; and B4, acquiring the solution by the service system.
2. The personalized configuration method according to claim 1, wherein in operation B2, the solution is further transmitted to a solution software development kit by pushing or actively pulling in real time.
3. The personalized configuration method according to claim 1, wherein in the operation B, the solution software development kit monitors configuration changes of the service identities in real time and updates corresponding solutions.
4. A method of personalizing a configuration based on a business identity according to claim 3, wherein the solution software development tool listening and updating process comprises: step a, establishing a monitoring long link and registering a monitoring method; b, when the configuration of the configuration server is changed, scanning a registered monitoring method, and pushing and changing the configuration by monitoring a long link; and c, calling a monitoring method to acquire pushed change configuration, and updating a solution corresponding to the local cache based on the change configuration.
5. The personalized configuration method according to claim 1, wherein if the service identity includes extension information, matching the solution corresponding to the service according to the extension information, and the extension information matching is implemented by using a text parsing engine, wherein the extension information refers to parameters required by an interface of a software development kit.
CN202310154254.8A 2023-02-23 2023-02-23 Personalized configuration method based on service identity Active CN115934158B (en)

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 CN115934158A (en) 2023-04-07
CN115934158B true 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107643954A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 SDK access systems and method
CN113656195A (en) * 2021-08-13 2021-11-16 广州虎牙科技有限公司 Service message channel management method and device and electronic equipment
CN115514665A (en) * 2022-08-31 2022-12-23 北京达佳互联信息技术有限公司 Service expansion method and device, electronic equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7725605B2 (en) * 2004-08-06 2010-05-25 Salesforce.Com, Inc. Providing on-demand access to services in a wide area network
US9009058B2 (en) * 2008-01-10 2015-04-14 At&T Intellectual Property I, L.P. Aiding creation of service offers associated with a service delivery framework
CN112527248A (en) * 2019-09-18 2021-03-19 阿里巴巴集团控股有限公司 Request processing method and device and electronic equipment
CN110851209B (en) * 2019-11-08 2023-07-21 北京字节跳动网络技术有限公司 Data processing method and device, electronic equipment and storage medium
CN111382421B (en) * 2020-03-19 2024-04-09 深信服科技股份有限公司 Service access control method, system, electronic equipment and storage medium
CN111552464A (en) * 2020-04-27 2020-08-18 上海鸿翼软件技术股份有限公司 SDK generation method, device, equipment and medium
CN111625781B (en) * 2020-08-03 2020-11-10 腾讯科技(深圳)有限公司 SDK authorization authentication method, device, equipment and storage medium
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 平安普惠企业管理有限公司 Data docking method and related device
CN115390939B (en) * 2022-08-17 2023-07-25 中电金信软件有限公司 Service processing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107643954A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 SDK access systems and method
CN113656195A (en) * 2021-08-13 2021-11-16 广州虎牙科技有限公司 Service message channel management method and device and electronic equipment
CN115514665A (en) * 2022-08-31 2022-12-23 北京达佳互联信息技术有限公司 Service expansion method and device, electronic equipment and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Customization of On-Demand ERP Software Using SAP Business ByDesign as an Example;Karl Kurbel等;Innovation and Future of Enterprise Information Systems;第289–297页 *
Design considerations for the Apache Server API;Robert Thau;Computer Networks and ISDN Systems;第28卷(第7-11期);第1113-1122页 *
基于多信息源的校车智能交互及推送系统研究;周密;中国优秀硕士学位论文全文数据库 信息科技辑(第4期);I138-1746 *
针对无硬件安全的终端版权保护的安全设计;赵云辉;广播电视信息(第S1期);第16-19页 *

Also Published As

Publication number Publication date
CN115934158A (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US6934706B1 (en) Centralized mapping of security credentials for database access operations
CN101506769B (en) Generating search results based on determined relationships between data objects and user connections to identified destinations
JP4456485B2 (en) Method and apparatus for managing a collection of portlets in a portal server
JP4218759B2 (en) Method and apparatus for relaying session information from portal server
Dowler et al. Table access protocol version 1.0
CN108197237B (en) Visual data acquisition and display system
KR100819021B1 (en) Method and apparatus for enabling associated portlets of a web portal to collaborate for synchronized content display
US8195603B2 (en) Rapid caching and data delivery system and method
US20040111728A1 (en) Method and system for managing metadata
US6917944B1 (en) Method and apparatus for configuring access to a plurality of data repositories
US6496825B1 (en) Systems and methods for the detection of a loop-back of a transaction
CN100586112C (en) Method for establishing contact list and managing contact information in instant communication
CN101256650A (en) Method and system for extracting enterprise data based on service entity
KR20030077623A (en) A method and a bridge for coupling a server and a client of different object types
WO2006116497B1 (en) Recording and tracing non-trending production data and events in an industrial process control environment
US20140229435A1 (en) In-memory real-time synchronized database system and method
CN106611000A (en) Method, device and system for searching resource object
US8015262B2 (en) Stateless core service transaction patterns
CN115934158B (en) Personalized configuration method based on service identity
US7076488B2 (en) XML-LDAP adapters and methods therefor
CN101916283A (en) Method for acquiring link information from dynamic webpage and server thereof
US20030135479A1 (en) Method and system for providing access to a database
CN103425793B (en) Method for utilizing database purchase layer to access data base in instant communicating system
CN112487075A (en) Operator for integrating data conversion of relational database and non-relational database
CN109977084A (en) A kind of page static method based on file buffer

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