CN117290579A - Information generating method, apparatus, electronic device, computer readable medium, and program product - Google Patents

Information generating method, apparatus, electronic device, computer readable medium, and program product Download PDF

Info

Publication number
CN117290579A
CN117290579A CN202210671791.5A CN202210671791A CN117290579A CN 117290579 A CN117290579 A CN 117290579A CN 202210671791 A CN202210671791 A CN 202210671791A CN 117290579 A CN117290579 A CN 117290579A
Authority
CN
China
Prior art keywords
information
service type
service
generation request
subsystem
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.)
Pending
Application number
CN202210671791.5A
Other languages
Chinese (zh)
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.)
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Wodong Tianjun Information Technology 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 Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Wodong Tianjun Information Technology Co Ltd
Priority to CN202210671791.5A priority Critical patent/CN117290579A/en
Publication of CN117290579A publication Critical patent/CN117290579A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0276Advertisement creation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Embodiments of the present disclosure disclose information generation methods, apparatuses, electronic devices, computer-readable media, and program products. One embodiment of the method comprises the following steps: in response to receiving the information generation request, determining a service type corresponding to the information generation request; determining whether information corresponding to the service type exists in an information cache library; and in response to determining that the information corresponding to the service type does not exist in the information cache, sending an information generation request to an offline generation subsystem, wherein the offline generation subsystem is used for determining and running a service execution graph corresponding to the service type so as to generate the information corresponding to the information generation request, and storing the generated information into the information cache. The implementation mode is related to personalized generation of creative advertisements, and achieves rapid generation of information and multiplexing of operation nodes.

Description

Information generating method, apparatus, electronic device, computer readable medium, and program product
Technical Field
Embodiments of the present disclosure relate to the field of computer technology, and in particular, to an information generating method, an apparatus, an electronic device, a computer readable medium, and a program product.
Background
The generation of various content information such as creative advertisements is generally to combine various elements, such as background, text, typesetting, with predefined templates to generate the required information (e.g., creative advertisements).
However, the inventors found that when information is generated in the above manner, there are often the following technical problems:
the generation of the first and creative advertisements and other information has certain system delay and cannot meet the timeliness requirement.
Secondly, in the process of generating the information, constraint conditions of different service scenes need to be introduced in order to adapt to the requirements of the different service scenes, so that the service scenes and the creative content are tightly coupled, different services cannot share the same processing flow, and the multiplexing rate is low.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, may contain information that does not form the prior art that is already known to those of ordinary skill in the art in this country.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose information generation methods, apparatuses, devices/terminals/servers, computer readable media and program products to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide an information generating method applied to an online query subsystem, including: in response to receiving the information generation request, determining a service type corresponding to the information generation request; determining whether information corresponding to the service type exists in an information cache library; and in response to determining that the information corresponding to the service type does not exist in the information cache, sending an information generation request to an offline generation subsystem, wherein the offline generation subsystem is used for determining and running a service execution graph corresponding to the service type so as to generate the information corresponding to the information generation request, and storing the generated information into the information cache.
In a second aspect, some embodiments of the present disclosure provide an information generating method applied to an offline generating subsystem, including: in response to receiving an information generation request sent by an online query subsystem, determining to generate a service execution diagram corresponding to a service type; running a service execution diagram to generate information corresponding to the information generation request; and storing the generated information into an information cache library.
In a third aspect, some embodiments of the present disclosure provide an information generating apparatus, including: the online query subunit is configured to respond to the received information generation request, determine the service type corresponding to the information generation request, determine whether information corresponding to the service type exists in the information cache library, respond to the determination that information corresponding to the service type does not exist in the information cache library, and send the information generation request to the offline generation subsystem; and the offline generation subunit is configured to determine and run a service execution diagram corresponding to the service type so as to generate information corresponding to the information generation request and store the generated information into the information cache library.
In a fourth aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; and a storage device having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to implement the method described in any of the first or second implementations.
In a fifth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program when executed by a processor implements the method described in any of the above first or second aspects.
In a sixth aspect, some embodiments of the present disclosure provide a computer program product comprising a computer program which, when executed by a processor, implements the method described in any one of the above first or second aspects.
The above embodiments of the present disclosure have the following advantageous effects: and the matched information is queried through the online query subsystem, so that the information is rapidly generated. In addition, for the request of query failure, the offline generation subsystem can generate corresponding information by executing the corresponding service execution graph. The information generation process can be split into different operation nodes by organizing the information generation process through the service execution graph. For different business processes, the operation nodes can be recombined, so that the operation nodes are reused, the expansion and development of new business are facilitated, and the development cost is saved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is an architecture diagram of an exemplary system in which some embodiments of the present disclosure may be applied;
FIG. 2 is a flow chart of some embodiments of an information generation method according to the present disclosure;
FIG. 3 is a flow chart of other embodiments of information generation methods according to the present disclosure;
FIG. 4 is an illustration of one exemplary business execution diagram in a method of information generation according to some embodiments of the present disclosure;
FIG. 5 is a schematic diagram of the structure of some embodiments of an information generating apparatus according to the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure;
fig. 7 is a schematic diagram of an exemplary abstract syntax tree in an information generation method according to some embodiments of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Operations such as collection, storage, use, etc. of personal information (e.g., user information) of a user referred to in the present disclosure, before performing the corresponding operations, the relevant organization or individual is up to the end to include developing personal information security impact assessment, fulfilling informed obligations to the personal information body, obtaining authorized consent of the personal information body in advance, etc.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which the information generating method or information generating apparatus of some embodiments of the present disclosure may be applied.
As shown in fig. 1, system architecture 100 may include an online query subsystem 101, an offline generation subsystem 102, and an information repository 103. Wherein, in response to receiving the information generation request, the online query subsystem 101 may determine a service type corresponding to the information generation request, and on this basis, the online query subsystem 101 may query whether information corresponding to the information generation request exists in the information repository 103. If so (i.e., present), the queried information may be returned. If the information generation request is not (i.e. does not exist) sent to the offline generation subsystem 102, the offline generation subsystem 102 may determine and run a service execution graph corresponding to the service type to generate information corresponding to the information generation request, and store the generated information in the information repository 103 to enrich the information in the information repository 103, so as to facilitate subsequent query.
The online query subsystem 101 and the offline generation subsystem 102 may be hardware or software. When hardware, it may be a variety of electronic devices, including but not limited to various types of servers and the like. The online query subsystem 101 and the offline generation subsystem 102 may also be different modules in the same electronic device, as desired. When it is software, it can be installed in the above-described various electronic devices. It may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention is not particularly limited herein. Information repository 103 may be various types of databases for storing data. For example, an implementation of information repository 103 may employ, but is not limited to, a high performance distributed storage system. A distributed hash algorithm may also be employed as needed to ensure real-time response of the information generation request.
With continued reference to fig. 2, a flow 200 of some embodiments of information generation methods according to the present disclosure is shown. The information generation method is applied to an online query subsystem and comprises the following steps:
in step 201, in response to receiving the information generation request, a service type corresponding to the information generation request is determined.
In some embodiments, an executing body of the information generating method (e.g., the online query subsystem 101 shown in fig. 1) may determine a service type corresponding to the information generating request in response to receiving the information generating request. For example, the executing body may parse the information generating request according to a predefined parsing rule to extract service description information therein. And then, matching the service description information with a predefined service type identification rule so as to obtain a corresponding service type. For another example, the executing body may directly extract a field related to the service type in the information generating request, so as to obtain the corresponding service type. The service description information may be various kinds of information related to the service. In practice, the services may be divided as needed, so as to obtain different service types. For example, the service type may be a search service, a promotion service, or the like.
Step 202, determining whether information corresponding to the service type exists in the information cache library.
In some embodiments, the executing entity may first determine whether information corresponding to the service type exists in the information repository. Wherein, the information cache library is stored with the service type and the corresponding information. Therefore, the execution subject can inquire the service type in the information cache library so as to obtain corresponding information.
In some alternative implementations of some embodiments, to ensure that the information in the information cache library can reflect the personalized information needs of the online query subsystem in real time, a decommissioning update mechanism may be configured for the information cache library. Specifically, weights may be set for information in the information repository. Further, the weight of the information in the information repository is updated by at least one of: responding to the information queried by the online query subsystem, and increasing the weight of the information; and reducing the weight of the information in response to the information not being queried by the online query subsystem within the target time period. Optionally, the information is deleted from the information repository in response to the weight of the information being less than or equal to a preset threshold. Therefore, the weight of the information with low hit rate can be continuously reduced until the information is deleted, so that the storage resources can be timely released, the dynamic adjustment of the information in the information cache library is realized, and the real-time query requirement is met.
In practice, optionally, for the weight of the information in the information cache library, the weight of the information can be dynamically updated according to positive and negative feedback of target effect data (such as indexes of click rate, conversion rate and the like) of the information, so that an association relationship between the weight of the information and the indexes of information delivery is established, and more targeted information inquiry is facilitated.
In step 203, in response to determining that the information corresponding to the service type does not exist in the information repository, an information generation request is sent to an offline generation subsystem, and the offline generation subsystem is configured to determine and run a service execution graph corresponding to the service type, so as to generate information corresponding to the information generation request, and store the generated information in the information repository.
In some embodiments, the execution body may send an information generation request to the offline generation subsystem in response to determining that no information corresponding to the traffic type exists in the repository. On this basis, the offline generation subsystem may generate information corresponding to the information generation request, and store the generated information in the information repository. Specific implementations thereof will be described in the following examples.
According to the information generation method provided by some embodiments of the present disclosure, the matched information is queried through the online query subsystem, so that the information is rapidly generated. For a query failure request, the offline generation subsystem may generate corresponding information by executing a corresponding service execution graph. The information generation process can be split into different operation nodes by organizing the information generation process through the service execution graph. For different business processes, the operation nodes can be recombined, so that the operation nodes are reused, the expansion and development of new business are facilitated, and the development cost is saved.
With further reference to fig. 3, a flow 300 of further embodiments of the information generation method is shown. The flow 300 of the information generating method is applied to an offline generating subsystem, and comprises the following steps:
step 301, determining a service execution diagram corresponding to a service type in response to receiving an information generation request sent by the online query subsystem.
In some embodiments, in response to receiving an information generation request sent by an online query subsystem, an execution subject of an information generation method (e.g., offline generation subsystem 102 shown in fig. 1) may determine a service execution graph corresponding to a service type. The service execution graph may be a graph structure for organizing a specific information generation process. The traffic execution graph includes a plurality of interconnected nodes.
In practice, a business execution graph for a certain business type may be generated based on business process rules for that business type. The business flow rule declares the name of the graph, the definition of each node in the graph and the adjacency relationship between each node. For example, the graph name may be: graph_ops, each node in the Graph is defined as: the node comprises four nodes node_1, node_2, node_3 and node_4, wherein node_1 is an input node, node_4 is an output node, and the adjacent relation among the nodes is as follows: node_1 is connected to node_2 and node_3, and node_2 is connected to node_4, and node_3 is connected to node_4. On this basis, the generated service execution diagram is shown in fig. 4. Each node in the service execution graph is an operation node, and the operation nodes are basic operations in the service flow, taking the creative advertisement content generation flow as an example, the basic operations can include commodity information reading, document reading, picture video reading, model estimation operation, sequencing operation and the like. The business processes may be obtained by combining a plurality of basic operations. These operating nodes may be predefined or updated as needed. Different business processes can be realized by selecting different operation nodes and combining the operation nodes differently. So that once defined, these operational nodes can multiplex between different services.
In some optional implementations of some embodiments, determining a service execution graph corresponding to a service type includes: reading the service configuration statement and converting the service configuration statement into an abstract syntax tree; and traversing the abstract syntax tree by taking the service type as input to determine a service execution diagram corresponding to the service type. In practice, since multiple service types exist, each service type has a corresponding service execution diagram, in order to quickly determine the service execution diagram corresponding to the service type corresponding to the current request, the service execution diagram corresponding to the service type may be determined by traversing the abstract syntax tree. The service configuration statement is used for describing the corresponding relation between the service type and the service execution diagram. For example, if the service type is a, the service execution diagram a corresponds to the service type, and if the service type is B, the service execution diagram B corresponds to the service type. On this basis, in order to realize more general matching and query, the service configuration statement is converted into an abstract syntax tree. As an example, an abstract syntax tree corresponding to the above example is shown in fig. 7. The root node indicates that the whole business rule is an IF-statement, and three corresponding sub-nodes are sequentially as follows from left to right: condition judgment logic of IF-sentence, execution logic when condition judgment is true, and execution logic when condition judgment is false. Further, the node of the execution logic itself when the condition is judged to be false represents another sub-IF-statement. Taking a request with a service type (business_type) as an example, the abstract syntax tree is traversed from the root node from top to bottom in a depth-first manner, so that a corresponding output result graph=graph_a_ops, namely an execution Graph graph_a_ops corresponding to the service a, can be obtained.
It will be appreciated that the execution body may determine the service execution graph corresponding to the service type in other manners, for example, by querying a data table storing a correspondence between the service type and the service execution graph.
And 302, running a service execution diagram to generate information corresponding to the information generation request.
In some embodiments, the execution body may execute a service execution graph corresponding to a service type, so as to generate information corresponding to the information generation request. Taking the creative advertising content generation process as an example, the operation nodes in the business execution graph may include basic creative material library (including user information) reading, candidate creative package synthesis, creative package element evaluation, preference, and the like. Through these operations, creative advertising content corresponding to the information generation request is generated.
And step 303, storing the generated information into an information cache.
In some embodiments, the executing entity may store the generated information in an information repository to facilitate queries of the same service type.
According to the information generation method provided by some embodiments of the present disclosure, the information generation process is organized through the service execution graph, and the information generation process can be split into different operation nodes. For different business processes, the operation nodes can be recombined, so that the operation nodes are reused, the expansion and development of new business are facilitated, and the development cost is saved.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present disclosure provides some embodiments of an information generating apparatus, which correspond to those method embodiments shown in fig. 2, and which are particularly applicable in various electronic devices.
As shown in fig. 5, the information generating apparatus 500 of some embodiments includes: an online query subunit 501 and an offline generation subunit 502. Wherein the online querying subunit 501 is configured to determine, in response to receiving the information generating request, a service type corresponding to the information generating request, and whether information corresponding to the service type exists in the information repository, and send the information generating request to the offline generating subsystem in response to determining that information corresponding to the service type does not exist in the information repository. The offline generation subunit 502 is configured to determine and run a service execution graph corresponding to a service type to generate information corresponding to the information generation request, and store the generated information in the information repository.
In an alternative implementation of some embodiments, the information in the information repository is configured with weights, the weights of the information being updated by at least one of: responding to the information queried by the online query subsystem, and increasing the weight of the information; and reducing the weight of the information in response to the information not being queried by the online query subsystem within the target time period.
In an alternative implementation of some embodiments, the information in the information repository is updated by: and deleting the information from the information cache in response to the weight of the information being less than or equal to a preset threshold.
In alternative implementations of some embodiments, the offline generation subunit 502 is further configured to read the business configuration statement and translate the business configuration statement into an abstract syntax tree; and traversing the abstract syntax tree by taking the service type as input to determine a service execution diagram corresponding to the service type.
It will be appreciated that the elements described in the apparatus 500 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting benefits described above with respect to the method are equally applicable to the apparatus 500 and the units contained therein, and are not described in detail herein.
Referring now to FIG. 6, a schematic diagram of an architecture of an electronic device (e.g., the line querying subsystem or offline generating subsystem of FIG. 1) 600 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 6 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 6 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 609, or from storage device 608, or from ROM 602. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to receiving the information generation request, determining a service type corresponding to the information generation request; determining whether information corresponding to the service type exists in an information cache library; and in response to determining that the information corresponding to the service type does not exist in the information cache, sending an information generation request to an offline generation subsystem, wherein the offline generation subsystem is used for determining and running a service execution graph corresponding to the service type so as to generate the information corresponding to the information generation request, and storing the generated information into the information cache. Or,
in response to receiving an information generation request sent by an online query subsystem, determining to generate a service execution diagram corresponding to a service type; running a service execution diagram to generate information corresponding to the information generation request; and storing the generated information into an information cache library.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes an online query subunit and an offline generation subunit. Where the names of these units do not constitute a limitation on the unit itself in some cases, for example, the online query subunit may also be described as "a unit that determines a service type corresponding to an information generation request in response to receiving the information generation request".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
Some embodiments of the present disclosure also provide a computer program product comprising a computer program which, when executed by a processor, implements any of the above-described methods of generating information.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (10)

1. An information generation method applied to an online query subsystem, comprising:
in response to receiving an information generation request, determining a service type corresponding to the information generation request;
determining whether information corresponding to the service type exists in the information cache library;
and in response to determining that the information corresponding to the service type does not exist in the information cache, sending the information generation request to an offline generation subsystem, wherein the offline generation subsystem is used for determining and running a service execution diagram corresponding to the service type so as to generate information corresponding to the information generation request, and storing the generated information into the information cache.
2. The method of claim 1, wherein information in the information repository is configured with weights, the weights of the information being updated by at least one of:
increasing the weight of the information in response to the information being queried by the online query subsystem;
and reducing the weight of the information in response to the information not being queried by the online query subsystem within a target time period.
3. The method of claim 2, wherein the information in the information repository is updated by:
and deleting the information from the information cache in response to the weight of the information being less than or equal to a preset threshold.
4. An information generation method applied to an offline generation subsystem comprises the following steps:
determining a service execution diagram corresponding to the service type in response to receiving an information generation request sent by an online query subsystem;
running the service execution diagram to generate information corresponding to the information generation request;
and storing the generated information into an information cache library.
5. The method of claim 4, wherein the determining the service execution graph corresponding to the service type comprises:
reading a service configuration statement and converting the service configuration statement into an abstract syntax tree;
and traversing the abstract syntax tree by taking the service type as input to determine a service execution diagram corresponding to the service type.
6. An information generating apparatus comprising:
an online query subunit configured to determine, in response to receiving an information generation request, a service type corresponding to the information generation request, and whether information corresponding to the service type exists in the information cache, and send the information generation request to the offline generation subsystem in response to determining that information corresponding to the service type does not exist in the information cache;
and the offline generation subunit is configured to determine and run a service execution diagram corresponding to the service type so as to generate information corresponding to the information generation request and store the generated information into the information cache library.
7. The apparatus of claim 6, wherein the online query subunit is further configured to:
reading a service configuration statement and converting the service configuration statement into an abstract syntax tree;
and traversing the abstract syntax tree by taking the service type as input to determine a service execution diagram corresponding to the service type.
8. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-3 or 4-5.
9. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-3 or 4-5.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-3 or 4-5.
CN202210671791.5A 2022-06-15 2022-06-15 Information generating method, apparatus, electronic device, computer readable medium, and program product Pending CN117290579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210671791.5A CN117290579A (en) 2022-06-15 2022-06-15 Information generating method, apparatus, electronic device, computer readable medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210671791.5A CN117290579A (en) 2022-06-15 2022-06-15 Information generating method, apparatus, electronic device, computer readable medium, and program product

Publications (1)

Publication Number Publication Date
CN117290579A true CN117290579A (en) 2023-12-26

Family

ID=89239484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210671791.5A Pending CN117290579A (en) 2022-06-15 2022-06-15 Information generating method, apparatus, electronic device, computer readable medium, and program product

Country Status (1)

Country Link
CN (1) CN117290579A (en)

Similar Documents

Publication Publication Date Title
US20140136717A1 (en) Configuring cloud resources
CN111291103B (en) Interface data analysis method and device, electronic equipment and storage medium
CN108733317B (en) Data storage method and device
CN111324342B (en) Method, device, medium and electronic equipment for generating interface layer code
CN111510466B (en) Data updating method and device for client, electronic equipment and readable medium
US20210200806A1 (en) Method and apparatus for parallel processing of information
US11934287B2 (en) Method, electronic device and computer program product for processing data
WO2020199659A1 (en) Method and apparatus for determining push priority information
CN116433388B (en) Data storage resource partitioning method, device, electronic equipment and computer medium
CN116860286A (en) Page dynamic update method, device, electronic equipment and computer readable medium
CN116521317A (en) Mirror image management method and device, electronic equipment and computer readable storage medium
CN112307061A (en) Method and device for querying data
CN116226189A (en) Cache data query method, device, electronic equipment and computer readable medium
CN113468342B (en) Knowledge graph-based data model construction method, device, equipment and medium
CN112507676B (en) Method and device for generating energy report, electronic equipment and computer readable medium
CN117290579A (en) Information generating method, apparatus, electronic device, computer readable medium, and program product
CN112035581B (en) Model-based task processing method, device, equipment and medium
CN110705935B (en) Logistics document processing method and device
CN113986959A (en) Logistics information acquisition method and device, electronic equipment and computer readable medium
CN113393288A (en) Order processing information generation method, device, equipment and computer readable medium
CN117692672B (en) Snapshot-based video information sending method and device, electronic equipment and medium
CN118035594B (en) Method, apparatus, electronic device and computer readable medium for accessing production document
US11514016B2 (en) Paging row-based data stored as objects
CN114979308B (en) Message processing method and device
CN111291038B (en) Data query method and device

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