CN108418851B - Policy issuing system, method, device and equipment - Google Patents

Policy issuing system, method, device and equipment Download PDF

Info

Publication number
CN108418851B
CN108418851B CN201810029566.5A CN201810029566A CN108418851B CN 108418851 B CN108418851 B CN 108418851B CN 201810029566 A CN201810029566 A CN 201810029566A CN 108418851 B CN108418851 B CN 108418851B
Authority
CN
China
Prior art keywords
policy
message
strategy
change configuration
configuration message
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
CN201810029566.5A
Other languages
Chinese (zh)
Other versions
CN108418851A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201810029566.5A priority Critical patent/CN108418851B/en
Publication of CN108418851A publication Critical patent/CN108418851A/en
Application granted granted Critical
Publication of CN108418851B publication Critical patent/CN108418851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • 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/21Design, administration or maintenance of databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the specification discloses a system, a method, a device and equipment for issuing a policy. After the strategy is modified by a strategy releasing party, a strategy releasing server sends a strategy configuration change message to a message server, the message server pushes the configuration change message to an application server, then the application server modifies a local cache according to the content increment of the message, and the interaction between the full change and removal of the cache and a strategy database is avoided by modifying the cache in an increment manner, so that the jitter of the operation caused by loading and accessing the strategy database in the whole process of releasing the strategy is reduced, and the stability of the system is ensured.

Description

Policy issuing system, method, device and equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a policy issuing system, method, apparatus, and device.
Background
In the internet, network security and wind control are indispensable parts, and decision strategies are frequently accessed in the running of a wind control analysis service.
In the prior art, a policy is published and stored in a database, and when the policy is changed, the database becomes effective in time, but a policy consumer (e.g., an application server) does not become effective in time, and at this time, the policy consumer needs to reload and replace the full amount of policy configuration data from the database to update the policy.
Based on this, a more convenient policy issuing scheme is required.
Disclosure of Invention
The embodiment of the specification provides a policy issuing system, a policy issuing method, a policy issuing device and policy issuing equipment, which are used for solving the following problems: to provide a more convenient policy publication scheme.
Based on this, this specification embodiment provides a policy issuing system, including: the system comprises a policy issuing server, a message server and an application server;
the strategy issuing server receives the instruction of the user, changes the strategy and stores the strategy; generating a strategy change configuration message according to the change situation of the strategy; sending the strategy change configuration message to a message server, wherein the strategy change configuration message carries a theme;
the message server receives the strategy change configuration message and pushes the strategy change configuration message to an application server subscribed with the theme according to a pre-acquired subscription/release relation;
and the application server side receives the strategy change configuration message pushed by the message server side and updates the strategy of the local cache according to the strategy change configuration message.
Meanwhile, an embodiment of the present specification further provides a policy issuing method, including:
receiving an instruction of a user, changing the strategy and storing the strategy;
generating a strategy change configuration message according to the change situation of the strategy, wherein the strategy change configuration message carries a theme
And sending the policy change configuration message to a message server, so that the message server pushes the policy change configuration message to an application server subscribed with the theme according to a pre-acquired subscription/release relationship.
Meanwhile, an embodiment of the present specification further provides another policy issuing method, where the method includes:
receiving a strategy change configuration message carrying a theme and sent by a strategy release server;
and pushing the strategy change configuration message to an application server subscribed with the theme according to the pre-acquired subscription/release relation.
Meanwhile, an embodiment of the present specification further provides another policy issuing method, where the method includes:
receiving a strategy change configuration message pushed by a message server;
and updating the policy of the local cache according to the policy change configuration message.
Meanwhile, an embodiment of the present specification further provides a policy issuing apparatus, including:
the receiving and storing module is used for receiving the instruction of the user, changing the strategy and storing the strategy;
a generating module, for generating a policy change configuration message according to the change situation of the policy, wherein the policy change configuration message carries a theme
And the sending module is used for sending the strategy change configuration message to a message service end so that the message service end can push the strategy change configuration message to an application service end subscribed with the theme according to the pre-acquired subscription/release relation.
Meanwhile, an embodiment of the present specification further provides another policy issuing device, including:
the receiving module is used for receiving a strategy change configuration message which carries a theme and is sent by the strategy release server;
and the pushing module is used for pushing the strategy change configuration message to the application server subscribed with the theme according to the pre-acquired subscription/release relation.
Meanwhile, an embodiment of the present specification further provides another policy issuing device, including:
the receiving module is used for receiving the strategy change configuration message pushed by the message server;
and the updating module updates the local cache strategy according to the strategy change configuration message.
Correspondingly, an embodiment of the present specification further provides a policy issuing device, including:
a memory storing a policy issuing program;
the processor calls the strategy issuing program in the memory and executes:
receiving an instruction of a user, changing the strategy and storing the strategy;
generating a strategy change configuration message according to the change situation of the strategy, wherein the strategy change configuration message carries a theme
And sending the policy change configuration message to a message server, so that the message server pushes the policy change configuration message to an application server subscribed with the theme according to a pre-acquired subscription/release relationship.
Correspondingly, an embodiment of the present specification further provides another policy issuing device, including:
a memory storing a policy issuing program;
the processor calls the strategy issuing program in the memory and executes:
receiving a strategy change configuration message carrying a theme and sent by a strategy release server;
and pushing the strategy change configuration message to an application server subscribed with the theme according to the pre-acquired subscription/release relation.
Correspondingly, an embodiment of the present specification further provides another policy issuing device, including:
a memory storing a policy issuing program;
the processor calls the strategy issuing program in the memory and executes:
receiving a strategy change configuration message pushed by a message server;
and updating the policy of the local cache according to the policy change configuration message.
Correspondingly, embodiments of the present specification also provide a non-volatile computer storage medium storing computer-executable instructions configured to:
receiving an instruction of a user, changing the strategy and storing the strategy;
generating a strategy change configuration message according to the change situation of the strategy, wherein the strategy change configuration message carries a theme
And sending the policy change configuration message to a message server, so that the message server pushes the policy change configuration message to an application server subscribed with the theme according to a pre-acquired subscription/release relationship.
Correspondingly, embodiments of the present description also provide another non-volatile computer storage medium storing computer-executable instructions configured to:
receiving a strategy change configuration message carrying a theme and sent by a strategy release server;
and pushing the strategy change configuration message to an application server subscribed with the theme according to the pre-acquired subscription/release relation.
Correspondingly, embodiments of the present specification also provide a non-volatile computer storage medium storing computer-executable instructions configured to:
receiving a strategy change configuration message pushed by a message server;
and updating the policy of the local cache according to the policy change configuration message.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
after the strategy is modified by a strategy releasing party, a strategy releasing service terminal sends a strategy configuration change message to a message service terminal, the message service terminal pushes the configuration change message to an application service terminal, then the application service terminal modifies a local cache according to the content increment of the message, and the interaction between the full change and removal of the cache and a strategy database is avoided by modifying the cache in an increment mode, so that the jitter of the operation caused by loading and accessing the database in the whole strategy in the process of releasing the strategy is reduced, and the stability of the system is ensured. In addition, for the modification situation of the strategy, no special person is needed to manage and release when the strategy takes effect again, so that the user experience of the strategy release party is improved.
Drawings
FIG. 1 is a diagram illustrating a system architecture involved in policy distribution in the prior art;
FIG. 2 is a schematic diagram of a policy issuing system architecture according to an embodiment of the present specification;
FIG. 3 is a diagram illustrating a data structure of a policy provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a policy publishing business process provided by an embodiment of the present specification;
FIG. 5 is a flow diagram illustrating aspects of a policy issuing server provided by an embodiment of the present specification;
FIG. 6 is a flow diagram illustrating aspects of a message service provided by an embodiment of the present description;
FIG. 7 is a flow diagram illustrating aspects of an application server provided by an embodiment of the present disclosure;
FIG. 8 is a block diagram of an apparatus in the policy issuing server according to an embodiment of the present disclosure;
FIG. 9 is a block diagram of an apparatus in the message server side according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an apparatus in the aspect of an application server according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step are within the scope of the present application.
In the prior art, the decision-making policy is frequently accessed when the wind control analysis service is running, for example, in a payment scenario, any operation behavior (login and payment) is subjected to real-time wind control analysis, each real-time analysis is calculated according to the corresponding decision-making policy, and the decision-making policies load the whole amount of preheated decision-making policy from the database into a local cache when the system is started. But the situation of risk countermeasures requires that the policy is operable and needs to be effective in time after the policy is changed (added or deleted). At present, after the strategy is changed, the database can take effect in time, but the application server needs to uniformly refresh the cache to load the full configuration data from the database again and replace the data during the operation.
As shown in fig. 1, fig. 1 is a schematic diagram of a system architecture involved in policy issuing in the prior art.
The method comprises the steps of registering a resource published by a decision strategy in distributed resource management, and registering a subscription-publication relation in a configuration center. When an operator (a policy issuer) changes a policy, the policy is directly modified and validated in a policy table of a database, but a local cache of an application server is not validated yet, and then the local cache of the application server is inconsistent with the policy content in the policy table of the database. The operator operates the 'policy issuing' function, calls the instruction service of the distributed resource management, and the distributed resource instruction service does two things: firstly, writing the pushed instruction content into a distributed resource database; secondly, an instruction is pushed to the application server side through the configuration center, the application server side obtains the changing content of the decision strategy issuing resource from the distributed resource cluster according to the received instruction, and then the application is triggered to load the full-scale decision strategy from the strategy database according to the changing content.
The strategy issuing mode depends on distributed resource management and unified management and control, but the efficiency is low, if issuing is frequent, the strategy full loading of the application server side can repeatedly interact with the database and carry out memory switching, the service performance is reduced, and service unavailability can be caused when the service performance is serious.
Based on this, an embodiment of the present specification provides a policy issuing system, where a policy issuing client sends a policy configuration change message to a message server, the message server pushes the configuration change message to an application server in a multicast manner, and then the application server modifies a local cache according to a message content increment.
Fig. 2 is a schematic diagram of a policy issuing system architecture according to an embodiment of the present disclosure, as shown in fig. 2. The policy issuing system includes: a policy issuing server 201, a message server 202 and an application server 203;
the policy issuing server 201 receives the instruction of the user, changes the policy, and stores the policy; generating a strategy change configuration message according to the change situation of the strategy; and sending the strategy change configuration message to a message server, wherein the strategy change configuration message carries a theme.
The strategy is usually stored in a database of a strategy issuing party by a certain data structure, the change of the strategy comprises operations such as addition, modification, deletion, state change and the like, and the strategy issuing party can edit the strategy in a background of a service end. The modifications of each policy are stored in the database. In other words, after the policy is modified, the specific modification content of the policy is known in the database, so that while storing, the database may generate a corresponding policy change configuration message (for example, a configuration message containing a policy name and the corresponding modification content) according to the specific change situation of the policy, and send the policy change configuration message in a message form of a certain topic. For example, a Message with a topic is sent to the Message server via Message Queue Telemetry Transport (MQTT). In the process, an operator does not need to issue the modified strategy manually, the display issuing function is removed, and the user experience of the strategy issuing party is improved.
The message server 203 receives the policy change configuration message, and pushes the policy change configuration message to the application server subscribed to the topic according to the pre-obtained subscription/release relationship.
The message server serves as a message transfer station, and pushes the message to an application server which subscribes the theme according to the pre-registered publishing/subscribing relation. It should be noted that, the registration of the publish/subscribe relationship may be performed on the message server, but in practice, the registration may also be performed on a special configuration center server for management, so that the message server may obtain the corresponding publish/subscribe relationship from the configuration center in advance, and only needs to be responsible for pushing the message in the operating state.
The application server 205 receives the policy change configuration message pushed by the message server, and updates the policy of the local cache according to the policy change configuration message.
The application server 205 can perform topic subscription (or subscription on the message server 203) in a configuration center in advance, so that the message server 203 can accurately perform message pushing. When the policy change configuration message pushed by the message server is monitored, the message is analyzed, and the related information (such as a policy name, policy modification information and the like) in the message is acquired to update the policy in the local cache. The storage relationship in the cache is generally implemented based on hash map (HashMap), that is, the policy is stored in the cache in the form of a key-value key value pair (policy name, policy information), the key is uuid of each policy, and is a unique ID of a newly generated policy; value is the specific content of the policy, and generally includes the policy name, the policy description, the policy output action, and the policy condition content; in the routing tree strategy, the content can add more node strategy reference information on the basis of a simple strategy. And each node strategy corresponds to a simple strategy. The content of the policy in the value can be expanded, not only the policy, but also replaced by rules, variables, models, and the like.
And analyzing the policy change configuration message to obtain a policy name, namely modifying the policy information according to the policy modification information contained in the configuration information, and updating the policy locally cached by the application server.
Of course, the policy of the application server may also be stored in the local database of the application server instead of being stored in the cache, and the policy in the local database of the application server may also be modified in the above manner, so as to be modified when the application server is started next time.
After the strategy is modified by a strategy releasing party, a strategy releasing service terminal sends a strategy configuration change message to a message service terminal, the message service terminal pushes the configuration change message to an application service terminal, then the application service terminal modifies a local cache according to the content increment of the message, and the interaction between the full change and removal of the cache and a strategy database is avoided by modifying the cache in an increment mode, so that the jitter of the operation caused by loading and accessing the database in the whole strategy in the process of releasing the strategy is reduced, and the stability of the system is ensured.
As a specific implementation manner, the application server 205 receives the policy change configuration message, generates a confirmation message, and sends the confirmation message to the message server 203; the message server 203 receives the confirmation message. In other words, in the process of publishing the message, a reliable message publishing mode can be adopted to ensure that all application servers receive the message, thereby ensuring the consistency of the policy data.
As a specific implementation manner, the policy issuing server 201 sends a policy change configuration message carrying a version number; and the application server side verifies the version number of the strategy change configuration message, updates the local strategy according to the strategy change configuration message if the verification is passed, and does not update the local strategy if the verification fails. Specifically, the version number has a certain format (for example, a time number or a sequence number), and the application server may verify the version number and know which version number is the latest or the highest, so that only the policy change configuration message carrying the highest version number is updated when the message is received, thereby ensuring timeliness of the policy.
As a specific implementation manner, the policy issuing server 201 sends a policy change configuration message carrying a message identifier; the application server 203 verifies the message identifier of the policy change configuration message, and does not update the local policy if the policy change configuration message carrying the message identifier has been processed. Specifically, the message server 203 may push messages repeatedly when pushing messages. Based on this, the policy issuing server 201 sends the policy change configuration message with the unique ID (message identifier), so that if repeated pushing occurs, their message identifiers are the same, and the application server determines the message identifier when receiving the message, and if the policy change configuration message with the message identifier is updated, the message identifier is not updated, thereby ensuring the processing idempotency.
As a specific implementation manner, the message server 203 stores the received policy change configuration message. By carrying out persistence processing on the strategy change configuration message, the same message can be pushed for many times, and phenomena such as missing sending and the like are avoided.
As a specific implementation manner, the policy includes a routing tree policy composed of a plurality of nodes, and the routing tree policy includes routing tree policy basic information, node expansion information, and node reference relationship. The policy change configuration message includes: and the routing tree strategy name and corresponding routing tree strategy basic information, node expansion information and node reference relation.
As shown in fig. 3, fig. 3 is a schematic diagram of a data structure of a policy provided in an embodiment of the present specification. In the figure, (a) stream (policy information) refers to the content of a specific policy; (b) stream _ extension, which refers to the attribute of the extension inside the policy; (c) stream _ def (policy elementary information definition), which refers to policy elementary information definition; (d) a policy _ ref, according to which a routing tree structure is implemented, and the outward appearance form of the policy may be a tree structure, and this table records the relationship between policies, such as the relationship between parent and child nodes.
For example, there is a routing tree policy: a → (b, c), so that, in traffic modeling, the information of this routing tree policy is defined in the table as: stream _ def: basic information of the routing tree policy; strand: a. b, information of three nodes; stream _ extension: a. b, c, expanding information of three nodes; stream _ ref: a. b, c, reference relation of three nodes.
Therefore, when the policy in the database is edited and modified, what kind of modification is performed on the part of which routing tree policy can be explicitly known in the database (for example, a certain policy node is added or deleted, or information or extension information of a certain node is edited), so as to generate a corresponding policy update configuration message, where the message includes a policy name and a corresponding modification mode for the policy (for example, content of the node policy or reference situation of the node policy), so that the application server can correspondingly update the hash mapping table of the storage policy in the local cache according to the policy name after receiving the policy change configuration message.
A specific policy issuing flow is shown in fig. 4, and fig. 4 is a schematic diagram of a policy issuing business flow provided in an embodiment of this specification.
Based on the same idea, an embodiment of the present specification further provides a policy issuing method, as shown in fig. 5, where fig. 5 is a schematic flow diagram of a policy issuing server provided in the embodiment of the present specification, and the method includes:
s501, receiving an instruction of a user, changing a strategy and storing the strategy;
s503, generating a policy change configuration message according to the change situation of the policy, wherein the policy change configuration message carries a theme;
and S505, sending the policy change configuration message to a message service end, so that the message service end pushes the policy change configuration message to an application service end subscribed with the theme according to a pre-acquired subscription/release relationship.
Further, for the step S503, generating a policy change configuration message includes: and generating a strategy change configuration message carrying the version number.
Further, for the step S503, generating a policy change configuration message includes: and generating a policy change configuration message carrying the message identifier.
Further, for the policy in 501, a routing tree policy composed of a plurality of nodes is included, and the routing tree policy includes routing tree policy basic information, node expansion information, and node reference relationship.
Based on the same idea, an embodiment of the present specification further provides another policy issuing method, as shown in fig. 6, where fig. 6 is a schematic flow diagram of a message server aspect provided by the embodiment of the present specification, and the method includes:
s601, receiving a strategy change configuration message carrying a theme sent by a strategy release server;
s603, pushing the strategy change configuration message to the application server subscribed with the theme according to the pre-acquired subscription/release relationship.
Based on the same idea, an embodiment of the present specification further provides another policy issuing method, as shown in fig. 7, where fig. 7 is a schematic flow diagram of an application server side aspect provided in the embodiment of the present specification, and the method includes:
s701, receiving a strategy change configuration message pushed by a message server;
s703, updating the strategy of the local cache according to the strategy change configuration message.
Further, for the method, before updating the policy of the local cache according to the policy change configuration message in S703, the method further includes: verifying the version number and/or the message identifier carried by the policy change configuration message, and if the verification fails, not updating; and if the verification is successful, updating.
Further, the updating the policy of the local cache according to the policy change configuration message in S703 includes: acquiring a policy name contained in the policy change configuration message; and updating the policy hash mapping table in the local cache according to the policy name.
Based on the same idea, the present invention further provides a policy issuing device, as shown in fig. 8, where fig. 8 is a schematic structural diagram of a device in the aspect of a policy issuing server provided in the embodiment of the present specification, and the device includes:
a receiving and storing module 801 for receiving the instruction of the user, changing the strategy and storing;
a generating module 803, generating a policy change configuration message according to the change situation of the policy, wherein the policy change configuration message carries a theme
The sending module 805 is configured to send the policy change configuration message to a message service end, so that the message service end pushes the policy change configuration message to an application service end subscribed to the topic according to a pre-obtained subscription/publication relationship.
Based on the same idea, the present invention further provides another policy issuing device, as shown in fig. 9, where fig. 9 is a schematic structural diagram of a device in the aspect of a message server provided in the embodiment of the present specification, and the device includes:
a receiving module 901, configured to receive a policy change configuration message carrying a theme sent by a policy issuing server;
the pushing module 903 is configured to push the policy change configuration message to the application server subscribed to the topic according to the pre-obtained subscription/release relationship.
Based on the same idea, the present invention further provides another policy issuing device, as shown in fig. 10, where fig. 10 is a schematic structural diagram of a device in the aspect of an application server provided in the embodiment of the present specification, and the schematic structural diagram includes:
a receiving module 1001, which receives a policy change configuration message pushed by a message server;
and the updating module 1003 is configured to update the policy of the local cache according to the policy change configuration message.
Correspondingly, an embodiment of the present specification further provides a policy issuing device, including:
a memory storing a policy issuing program;
the processor calls the strategy issuing program in the memory and executes:
receiving an instruction of a user, changing the strategy and storing the strategy;
generating a strategy change configuration message according to the change situation of the strategy, wherein the strategy change configuration message carries a theme
And sending the policy change configuration message to a message server, so that the message server pushes the policy change configuration message to an application server subscribed with the theme according to a pre-acquired subscription/release relationship.
Correspondingly, an embodiment of the present specification further provides another policy issuing device, including:
a memory storing a policy issuing program;
the processor calls the strategy issuing program in the memory and executes:
receiving a strategy change configuration message carrying a theme and sent by a strategy release server;
and pushing the strategy change configuration message to an application server subscribed with the theme according to the pre-acquired subscription/release relation.
Correspondingly, an embodiment of the present specification further provides another policy issuing device, including:
a memory storing a policy issuing program;
the processor calls the strategy issuing program in the memory and executes:
receiving a strategy change configuration message pushed by a message server;
and updating the policy of the local cache according to the policy change configuration message.
Correspondingly, embodiments of the present specification also provide a non-volatile computer storage medium storing computer-executable instructions configured to:
receiving an instruction of a user, changing the strategy and storing the strategy;
generating a strategy change configuration message according to the change situation of the strategy, wherein the strategy change configuration message carries a theme
And sending the policy change configuration message to a message server, so that the message server pushes the policy change configuration message to an application server subscribed with the theme according to a pre-acquired subscription/release relationship.
Correspondingly, embodiments of the present description also provide another non-volatile computer storage medium storing computer-executable instructions configured to:
receiving a strategy change configuration message carrying a theme and sent by a strategy release server;
and pushing the strategy change configuration message to an application server subscribed with the theme according to the pre-acquired subscription/release relation.
Correspondingly, embodiments of the present specification also provide a non-volatile computer storage medium storing computer-executable instructions configured to:
receiving a strategy change configuration message pushed by a message server;
and updating the policy of the local cache according to the policy change configuration message.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the method, apparatus, device and medium embodiments, since they are substantially similar to the system embodiments, the description is simple, and reference may be made to part of the description of the method embodiments for relevant points, which is not repeated here.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps or modules recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in one or more pieces of software and/or hardware when implementing the embodiments of the present description.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transmyedia) such as modulated data signal numbers and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
Embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular transactions or implement particular abstract data types. Embodiments of the present description may also be practiced in distributed computing environments where transactions are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.

Claims (12)

1. A policy issuing system comprising: the system comprises a policy issuing server, a message server and an application server;
the strategy issuing server receives the instruction of the user, changes the strategy and stores the strategy; generating a strategy change configuration message according to the change situation of the strategy; sending the policy change configuration message to a message server, wherein the policy change configuration message carries a theme, and is generated according to the change situation of the policy while being stored;
the message server receives the policy change configuration message, and pushes the policy change configuration message to an application server subscribed with the theme according to a pre-acquired subscription/publication relation, wherein the pre-acquired subscription/publication relation can ensure that the message server only needs to be responsible for pushing the message in an operating state;
and the application server receives the strategy change configuration message pushed by the message server, analyzes the strategy change configuration message according to the strategy change configuration message, and updates the strategy of the local cache.
2. The system of claim 1, wherein the application server, after receiving the policy change configuration message, generates a confirmation message and sends the confirmation message to the message server; and the message server receives the confirmation message.
3. The system of claim 1, wherein the policy issuing server sends a policy change configuration message carrying a version number; and the application server side verifies the version number of the strategy change configuration message, updates the local strategy according to the strategy change configuration message if the verification is passed, and does not update the local strategy if the verification fails.
4. The system of claim 1, wherein the policy issuing server sends a policy change configuration message carrying a message identifier; and the application server side verifies the message identifier of the policy change configuration message, and does not update the local policy if the policy change configuration message carrying the message identifier is processed.
5. The system of claim 1, the message service side stores the received policy change configuration message.
6. The system of claim 1, the policy comprising a routing tree policy comprised of a plurality of nodes, the routing tree policy comprising routing tree policy base information, node extension information, and node reference relationships.
7. A policy issuing method includes:
receiving an instruction of a user, changing the strategy and storing the strategy;
generating a policy change configuration message according to the change situation of the policy, wherein the policy change configuration message carries a theme, and the policy change configuration message is generated according to the change situation of the policy while being stored;
and sending the policy change configuration message to a message service end so that the message service end pushes the policy change configuration message to an application service end subscribed to the theme according to a pre-acquired subscription/publication relation, wherein the pre-acquired subscription/publication relation can ensure that the message service end only needs to be responsible for pushing the message in an operating state.
8. The method of claim 7, generating a policy change configuration message, comprising:
and generating a strategy change configuration message carrying the version number.
9. The method of claim 7, generating a policy change configuration message, comprising:
and generating a policy change configuration message carrying the message identifier.
10. The method of claim 7, the policy comprising a routing tree policy comprised of a plurality of nodes, the routing tree policy comprising routing tree policy base information, node extension information, and node reference relationships.
11. A policy issuing apparatus comprising:
the receiving and storing module is used for receiving the instruction of the user, changing the strategy and storing the strategy;
the generating module is used for generating a strategy change configuration message according to the change situation of the strategy, wherein the strategy change configuration message carries a theme, and the strategy change configuration message is generated according to the change situation of the strategy while being stored;
and the sending module is used for sending the strategy change configuration message to a message service end so that the message service end can push the strategy change configuration message to an application service end subscribed with the theme according to a pre-acquired subscription/publication relation, wherein the pre-acquired subscription/publication relation can ensure that the message service end only needs to be responsible for pushing the message in an operating state.
12. A policy issuing apparatus comprising:
a memory storing a policy issuing program;
the processor calls the strategy issuing program in the memory and executes:
receiving an instruction of a user, changing the strategy and storing the strategy;
generating a policy change configuration message according to the change situation of the policy, wherein the policy change configuration message carries a theme, and the policy change configuration message is generated according to the change situation of the policy while being stored;
and sending the policy change configuration message to a message service end so that the message service end pushes the policy change configuration message to an application service end subscribed to the theme according to a pre-acquired subscription/publication relation, wherein the pre-acquired subscription/publication relation can ensure that the message service end only needs to be responsible for pushing the message in an operating state.
CN201810029566.5A 2018-01-12 2018-01-12 Policy issuing system, method, device and equipment Active CN108418851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810029566.5A CN108418851B (en) 2018-01-12 2018-01-12 Policy issuing system, method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810029566.5A CN108418851B (en) 2018-01-12 2018-01-12 Policy issuing system, method, device and equipment

Publications (2)

Publication Number Publication Date
CN108418851A CN108418851A (en) 2018-08-17
CN108418851B true CN108418851B (en) 2020-12-04

Family

ID=63125506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810029566.5A Active CN108418851B (en) 2018-01-12 2018-01-12 Policy issuing system, method, device and equipment

Country Status (1)

Country Link
CN (1) CN108418851B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284305A (en) * 2018-08-23 2019-01-29 阿里巴巴集团控股有限公司 A kind of update method of data, apparatus and system
CN109522031A (en) * 2018-08-29 2019-03-26 上海你我贷互联网金融信息服务有限公司 The deployment and upgrade method of air control strategy
CN110401704B (en) * 2019-07-11 2022-04-29 安克创新科技股份有限公司 Message pushing method, device and system
CN110493143B (en) * 2019-07-11 2022-10-18 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Method, system, device and medium for dynamically adjusting message distribution frequency
CN112506896B (en) * 2019-09-16 2023-08-04 杭州海康威视系统技术有限公司 Data deleting method and device and electronic equipment
CN111222089B (en) * 2020-04-14 2020-07-31 苏宁云计算有限公司 Data processing method, data processing device, computer equipment and storage medium
CN112015469B (en) * 2020-07-14 2023-11-14 北京淇瑀信息科技有限公司 System reconstruction method and device and electronic equipment
CN112184235B (en) * 2020-09-04 2022-05-13 支付宝(杭州)信息技术有限公司 Wind control data changing method and device
CN112860343B (en) * 2021-02-10 2024-04-23 北京百度网讯科技有限公司 Configuration changing method, system, device, electronic equipment and storage medium
CN113362501A (en) * 2021-06-08 2021-09-07 南京邮电大学 Intelligent lock system based on Internet of things
CN114221906A (en) * 2021-11-11 2022-03-22 百度在线网络技术(北京)有限公司 Flow control method and device, electronic equipment and storage medium
CN114331167B (en) * 2021-12-31 2022-10-28 北京宇信科技集团股份有限公司 Method, system, medium and equipment for managing champion challenger strategy

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7640207B1 (en) * 2003-12-30 2009-12-29 Trading Technologies International, Inc. System and method for dynamically determining quantity for risk management
CN105488076A (en) * 2014-10-09 2016-04-13 阿里巴巴集团控股有限公司 Data accumulation method and device
CN105718490A (en) * 2014-12-04 2016-06-29 阿里巴巴集团控股有限公司 Method and device for updating classifying model
CN105844522A (en) * 2016-03-30 2016-08-10 东华大学 Programmed futures trading match system
CN106203754A (en) * 2015-05-04 2016-12-07 阿里巴巴集团控股有限公司 A kind of electronic surface list risk control method, device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7640207B1 (en) * 2003-12-30 2009-12-29 Trading Technologies International, Inc. System and method for dynamically determining quantity for risk management
CN105488076A (en) * 2014-10-09 2016-04-13 阿里巴巴集团控股有限公司 Data accumulation method and device
CN105718490A (en) * 2014-12-04 2016-06-29 阿里巴巴集团控股有限公司 Method and device for updating classifying model
CN106203754A (en) * 2015-05-04 2016-12-07 阿里巴巴集团控股有限公司 A kind of electronic surface list risk control method, device and electronic equipment
CN105844522A (en) * 2016-03-30 2016-08-10 东华大学 Programmed futures trading match system

Also Published As

Publication number Publication date
CN108418851A (en) 2018-08-17

Similar Documents

Publication Publication Date Title
CN108418851B (en) Policy issuing system, method, device and equipment
CN107450979B (en) Block chain consensus method and device
CN106899666B (en) Data processing method and device for service identification
CN109344348B (en) Resource updating method and device
CN107578338B (en) Service publishing method, device and equipment
CN109725989B (en) Task execution method and device
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
CN115617799A (en) Data storage method, device, equipment and storage medium
CN108989072B (en) Method and device for deploying, managing and calling assembly
CN113744063A (en) Method and device for executing transaction in block chain
CN110022351B (en) Service request processing method and device
CN111209022A (en) Resource publishing and acquiring method, device and equipment
CN108536447B (en) Operation and maintenance management method
CN115033350A (en) Execution method and device of distributed transaction
CN114625410A (en) Request message processing method, device and equipment
CN114528121A (en) Power grid standing book data distribution method and device
CN110413427B (en) Subscription data pulling method, device, equipment and storage medium
US10262054B2 (en) Database and service upgrade without downtime
CN112596780A (en) Service execution method and device
CN112749152A (en) Data migration method and device of intelligent contract and storage medium
US8887125B1 (en) Systems and methods for dynamic artefact substitution
CN112181979A (en) Data updating method and device, storage medium and electronic equipment
CN110955653A (en) Data page processing method, device, equipment and computer system
CN114268540B (en) Rule engine optimization method, device and equipment
CN114785800B (en) Cross-link communication method, device, storage medium and computing equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20201020

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

Applicant after: Innovative advanced technology Co.,Ltd.

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

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201020

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

Applicant after: Advanced innovation technology Co.,Ltd.

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

Applicant before: Alibaba Group Holding Ltd.

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