Quotation subscription method and device, equipment, storage medium and product

By employing a primary/backup quotation application architecture and coordinator monitoring, the reliability issues of the quotation publishing and subscription system in a cloud-based precious metals trading system were resolved, achieving highly reliable quotation data transmission.

CN121352913APending Publication Date: 2026-01-16CHINA MERCHANTS BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511412351.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-29
Publication Date
2026-01-16

AI Technical Summary

Technical Problem

In a cloud environment, the price publishing and subscription system of a precious metals trading system is at risk of failure, which could lead to service interruptions and loss of price data, reducing the reliability of the system.

Method used

A primary-backup quoting application architecture is adopted. Product quotations are subscribed to from the message queue at regular intervals to determine if there are any anomalies. If there are anomalies, the correct quotations are retrieved. If there are no anomalies, the quotations sent by the primary quoting application are retained. Under the monitoring of the coordinator application, the primary-backup role is switched and the database is checked to ensure data continuity.

Benefits of technology

This effectively avoids service interruptions and loss of quotation data, improves the reliability and data integrity of the quotation publishing and subscription system, and ensures the continuity and consistency of quotations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121352913A_ABST
    Figure CN121352913A_ABST
Patent Text Reader

Abstract

The invention discloses a quotation subscription method and device, equipment, a storage medium and a product, and relates to the technical field of data processing, and the quotation subscription method comprises the steps: subscribing a product quotation from a message queue at regular time, and judging whether the product quotation is abnormal or not, the product quotation in the message queue is obtained by real-time sending based on a main quotation application and a standby quotation application, and the standby quotation application is used for supplementing the quotation of the main quotation application; if the product quotation is abnormal, a correct product quotation is obtained through reverse checking from a quotation application; and if the product quotation is not abnormal, reserving the product quotation sent by the main quotation application. According to the invention, when the product price acquired by the message queue is abnormal, the product quotation can be reversely checked from the quotation application, and the standby quotation application can supplement the quotation of the main quotation application, so that the problem of reliability of a quotation publishing and subscribing system caused by service interruption and quotation data can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a pricing subscription method, apparatus, device, storage medium, and product. Background Technology

[0002] In a precious metals order matching system, it is necessary to monitor precious metal quotes every second and match them with customers' order prices. This requires an efficient and reliable quote publishing and subscription system as a foundation, among which the reliability, integrity and continuity of quotes are particularly important.

[0003] In related technologies, service interruptions and loss of quotation data are unacceptable for precious metal trading systems. In a cloud environment, various applications and middleware in conventional quotation publishing and subscription systems are at risk of failure, resulting in service interruptions and loss of quotation data, thus reducing the reliability of the quotation publishing and subscription system. Summary of the Invention

[0004] The main objective of this application is to provide a method, apparatus, device, storage medium, and product for publishing and subscribing to quotes, which aims to solve the technical problem that various applications and middleware in conventional publishing and subscribing systems are prone to failure, resulting in service interruptions and loss of quote data, thus reducing the reliability of the publishing and subscribing system.

[0005] To achieve the above objectives, this application proposes a pricing subscription method, which includes:

[0006] The system periodically subscribes to product quotes from a message queue and determines whether the product quotes are abnormal. The product quotes in the message queue are obtained in real time based on the main quote application and the backup quote application. The backup quote application is used to supplement the quotes of the main quote application.

[0007] If the product price is abnormal, the correct product price can be obtained by reverse lookup from the pricing application;

[0008] If the product quote is not abnormal, the product quote sent by the main quote application will be retained.

[0009] In one embodiment, the step of retaining the product quote sent by the main quote application if the product quote is not abnormal includes:

[0010] If the product quote is not abnormal, then based on the main tag and backup tag included in the product quote, filter the product quotes corresponding to the backup tags from the product quotes, and retain the product quotes sent by the application corresponding to the main tag.

[0011] In one embodiment, the step of periodically subscribing to product quotes from the message queue to obtain the subscribed content includes:

[0012] If the coordinator application does not receive a heartbeat status from the primary bidding application within a preset time, the primary / backup role between the backup bidding application and the primary bidding application is switched. The backup bidding application and the primary bidding application periodically send heartbeat status to the coordinator application.

[0013] Update the tags for the primary quote application and the backup quote application after the switch.

[0014] In one embodiment, the step of periodically subscribing to product quotes from a message queue to obtain the subscribed content further includes:

[0015] Periodically check the database corresponding to the main quotation application for any missing prices. If any missing prices are found, supplement the quotation from the backup quotation application.

[0016] In one embodiment, the step of retrieving the correct product quote from the quote application if the product quote is abnormal includes:

[0017] If the product price is not updated within a preset time or the product price is not continuous, the correct product price will be obtained by reverse lookup from the quotation application.

[0018] If the product price is not obtained within the preset time, the correct product price is retrieved from the quotation application.

[0019] In one embodiment, the step of retrieving the correct product price from the pricing application if the product price is not updated within a preset time or the product price is discontinuous includes:

[0020] If the product price is not updated within a preset time or the product price is not continuous, then it is determined in the database corresponding to the main quotation application whether there is a continuous product price.

[0021] If it exists, the correct product quote is retrieved from the database corresponding to the main quote application.

[0022] If it does not exist, the correct product quote will be retrieved from the database corresponding to the prepared quote application.

[0023] Furthermore, to achieve the above objectives, this application also proposes a price subscription device, the price subscription device comprising:

[0024] The judgment module is used to periodically subscribe to product quotes from the message queue and judge whether the product quotes are abnormal. The product quotes in the message queue are obtained in real time based on the main quote application and the backup quote application. The backup quote application is used to supplement the quotes of the main quote application.

[0025] The reverse lookup module is used to retrieve the correct product quote from the quote application if the product quote is abnormal.

[0026] A retention module is used to retain the product quote sent by the main quote application if the product quote is not abnormal.

[0027] In addition, to achieve the above objectives, this application also proposes a price subscription device, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the price subscription method as described above.

[0028] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the quotation subscription method described above.

[0029] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the quote subscription method described above.

[0030] One or more technical solutions proposed in this application have at least the following technical effects:

[0031] In contrast to related technologies, service interruptions and loss of price data are unacceptable for precious metal trading systems. In cloud environments, various applications and middleware in conventional price publishing and subscription systems are prone to failure, leading to service interruptions and loss of price data, thus reducing the reliability of the price publishing and subscription system. This application periodically subscribes to product prices from a message queue and determines whether the product prices are abnormal. The product prices in the message queue are obtained in real time based on the primary price application and the backup price application, with the backup price application used to supplement the price of the primary price application. If the product price is abnormal, the correct product price is retrieved from the price application. If the product price is not abnormal, the product price sent by the primary price application is retained. This application periodically retrieves product quotes sent in real time by the primary and backup quoting applications from the message queue. It then determines whether the product quotes are abnormal. If a product quote is abnormal, the correct product quote is retrieved from the quoting application. If the product quote is not abnormal, the product quote sent by the primary quoting application is retained. Thus, when the product price retrieved from the message queue is abnormal, this application retrieves the product quote from the quoting application. Furthermore, the backup quoting application can supplement the quotes from the primary quoting application, which can avoid service interruptions and quote data loss, thus preventing reliability issues in the quote publishing and subscription system. Attached Figure Description

[0032] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0033] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0034] Figure 1 This is a flowchart illustrating an embodiment of the pricing and subscription method of this application.

[0035] Figure 2 A diagram illustrating the highly reliable quote publishing and subscription system for the quote subscription method described in this application;

[0036] Figure 3 A simplified flowchart illustrating the pricing subscription method provided in Embodiment 2 of this application;

[0037] Figure 4 This is a schematic diagram of the module structure of the quotation subscription device according to an embodiment of this application;

[0038] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the quotation subscription method in this application embodiment.

[0039] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0040] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0041] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0042] The main solution of this application embodiment is: periodically subscribing to product quotes from a message queue, determining whether the product quotes are abnormal, wherein the product quotes in the message queue are obtained in real time based on the main quote application and the backup quote application, and the backup quote application is used to supplement the quotes of the main quote application; if the product quotes are abnormal, the correct product quotes are obtained by reverse lookup from the quote application; if the product quotes are not abnormal, the product quotes sent by the main quote application are retained.

[0043] In related technologies, service interruptions and loss of quotation data are unacceptable for precious metal trading systems. In a cloud environment, various applications and middleware in conventional quotation publishing and subscription systems are at risk of failure, resulting in service interruptions and loss of quotation data, thus reducing the reliability of the quotation publishing and subscription system.

[0044] When the product price obtained from the message queue is abnormal, this application will retrieve the product price from the pricing application. Furthermore, the backup pricing application can supplement the price of the main pricing application, which can avoid service interruption and pricing data, thus avoiding reliability issues of the pricing publish-subscribe system.

[0045] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or price subscription device capable of performing the above functions. The following description uses a price subscription device as an example to illustrate this embodiment and the subsequent embodiments.

[0046] Based on this, the embodiments of this application provide a pricing subscription method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the quotation subscription method of this application.

[0047] In this embodiment, the pricing subscription method includes steps S10 to S30:

[0048] Step S10: Periodically subscribe to product quotes from the message queue and determine whether the product quotes are abnormal. The product quotes in the message queue are obtained in real time based on the main quote application and the backup quote application. The backup quote application is used to supplement the quotes of the main quote application.

[0049] It should be noted that the execution entity in this embodiment is the price subscription device. A message queue refers to a distributed messaging system built on middleware (such as a Kafka cluster) for reliably transmitting price data. Product prices refer to real-time price information in precious metal trading, typically generated per second. The primary price application is the main application instance that actively generates and publishes prices, undertaking the core responsibility of price publication. The backup price application is a standby price application instance running in hot standby mode, used to enhance system redundancy. The price subscription device is a downstream price subscription application that performs subscription operations at fixed time intervals (e.g., per second), obtains product prices from the message queue, and determines whether there is any loss of price data, discontinuous price time series, or abnormal price fluctuations. The product prices in the message queue are sent every second by the primary and backup price applications. When the primary price application fails or prices are missing, the backup price application provides redundant price data to ensure continuity. Anomaly detection based on the primary and backup dual-source price mechanism effectively avoids price data loss due to network jitter, consumption delays, or single points of failure, improving the reliability and data integrity of price subscription. Figure 2 , Figure 2 A highly reliable quote publishing and subscription system diagram is provided, and the quote subscription application is scheduled to start from [the point of origin].

[0050] Step S20: If the product price is abnormal, the correct product price is obtained by reverse lookup from the price application;

[0051] Understandably, a correct product quote refers to verified, accurate quote data that meets the requirements of time series continuity, typically provided by the quote application currently in the primary role. Upon detecting a quote anomaly, the quote subscription device proactively initiates a query request to the quote application to retrieve the correct quote data for the missing or abnormal time period. By establishing a proactive reverse lookup mechanism triggered by the subscriber, missing quotes can be quickly compensated from the source when data stream anomalies are detected, forming an effective closed-loop data integrity assurance mechanism. This overcomes the data loss problem that may occur due to passive consumption in the traditional publish-subscribe model, ensuring that the data ultimately obtained by the quote consumer is continuous and complete. Figure 2 Price omissions during reverse lookup.

[0052] Step S30: If the product quote is not abnormal, then retain the product quote sent by the main quote application.

[0053] It should be noted that the quotation subscription device directly retains and uses the master quotation data when the product quotation is normal, avoiding unnecessary reverse lookup requests and backup quotation data switching, effectively reducing system load and processing latency, and ensuring the efficiency of the quotation processing flow.

[0054] In one feasible implementation, step S30 includes:

[0055] If the product quote is not abnormal, then based on the main tag and backup tag included in the product quote, filter the product quotes corresponding to the backup tags from the product quotes, and retain the product quotes sent by the application corresponding to the main tag.

[0056] Understandably, the primary tag is an identifier added by the primary quoting application when publishing quoting data, indicating that the quoting data originates from the quoting application instance currently in the primary role. The backup tag is an identifier added by the backup quoting application when publishing quoting data, indicating that the quoting data originates from the quoting application instance currently in the backup role. When consuming product quotations in the message queue, the quoting subscription device actively identifies and discards product quotations with backup tags based on the tag identifiers, selecting only those with primary tags. By embedding role tags in the quoting data published from both primary and backup sources, and enabling effective filtering by the subscription end based on tags, it ensures that downstream business logic is always processed based on a single, consistent primary data source. This avoids data chaos caused by potential micro-hourly timeline or numerical differences between the primary and backup data sources, ensuring high availability of the data source while strictly maintaining data consistency.

[0057] In one possible implementation, the following steps are included prior to step S10:

[0058] If the coordinator application does not receive a heartbeat status from the primary bidding application within a preset time, the primary / backup role between the backup bidding application and the primary bidding application is switched. The backup bidding application and the primary bidding application periodically send heartbeat status to the coordinator application.

[0059] It should be noted that the coordinator application refers to the core control component in the system responsible for monitoring the running status of the primary and backup bidding applications and managing their role switching. The preset time refers to a pre-set heartbeat timeout threshold, such as 10 seconds. The heartbeat status refers to a signal sent periodically (e.g., every 5 seconds) by the primary and backup bidding applications to the coordinator application, containing their own health status and current role information. If the coordinator application of the bidding subscription device does not receive a heartbeat status from the primary bidding application within the preset time, it determines that the primary bidding application has failed (heartbeat timeout), promotes the backup bidding application to the new primary role, and marks the original primary bidding application as the backup bidding application. By centrally monitoring heartbeats and controlling primary / backup switching through the coordinator application, an automatic and rapid fault detection and role switching mechanism is established. This ensures that the bidding publishing service can seamlessly and quickly complete primary / backup failover when a single application instance fails, thereby greatly improving the overall availability and robustness of the system and effectively avoiding service interruptions caused by single points of failure.

[0060] Update the tags for the primary quote application and the backup quote application after the switch.

[0061] Understandably, after the coordinator application issues the primary / backup role switch instruction, the pricing subscription device notifies the relevant pricing applications to update the role identifier embedded in their subsequently published pricing data. The switched primary pricing application refers to the application instance promoted from the original backup pricing application and undertaking the new primary role responsibilities. Its published pricing data needs to be updated with the primary label. The switched backup pricing application refers to the application instance that may be downgraded from the original primary pricing application or other instances in a backup role state. Its published pricing data needs to be updated with the backup label. By synchronously updating the role labels in the pricing data after the primary / backup role switch, the identity of the pricing data source is ensured to be strictly consistent with its actual role. This enables downstream subscription devices to continuously and accurately identify and filter out valid primary pricing data, achieving a transparent and seamless primary / backup switch process for the business. It also ensures data consistency and system continuity in the pricing publishing and subscription process under fault recovery scenarios.

[0062] In one possible implementation, the method further includes the following step before step S10:

[0063] Periodically check the database corresponding to the main quotation application for any missing prices. If any missing prices are found, supplement the quotation from the backup quotation application.

[0064] It should be noted that the scheduled check refers to the main quotation application proactively scanning its local database for quotation records at preset time intervals (e.g., every 5 seconds). Missing quotation records refer to quotation records that failed to be successfully generated or persisted at the expected time point due to application lag, publishing failure, or other anomalies, manifesting as an interruption in the quotation time series. The quotation subscription device proactively scans its local database for quotation records at preset time intervals (e.g., every 5 seconds) to determine if any quotation records in the database failed to be successfully generated or persisted at the expected time point. If such records exist, it proactively queries the backup quotation application for the missing quotation data and adds the correct quotation to its own database and publishes it to the message queue. By establishing a proactive self-checking and compensation mechanism for missing quotation records on the main quotation application side, data gaps can be promptly detected and repaired at the source on the publishing side, forming the first line of defense for data integrity on the publishing side. This complements the reverse lookup mechanism on the consumer side, constituting a multi-layered, three-dimensional data reliability assurance system, further reducing the risk of quotation data loss and ensuring quotation continuity from source to end.

[0065] In this implementation, a primary and backup dual-publisher architecture is adopted. The primary and backup switching is realized through heartbeat synchronization and role confirmation mechanisms. The quotation data includes primary and backup identifiers. The subscriber uses only the primary node data through a filtering strategy, which solves the problem of quotation interruption caused by single point of failure and ensures the continuity and reliability of quotation publication.

[0066] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in Embodiment 1 above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 3 Step S20, the quotation subscription method further includes steps S01 to S02:

[0067] Step S01: If the product price is not updated within a preset time or the product price is not continuous, the correct product price is obtained by reverse lookup from the quotation application.

[0068] It should be noted that if the quotation subscription device does not receive new quotation data within a preset time threshold (e.g., 5 seconds) after the last successful receipt of quotation data, or if the timestamp of the received quotation data does not increase continuously at the expected frequency (e.g., once per second), but instead experiences an interruption or jump, the correct product quotation can be obtained by reverse lookup in the quotation application.

[0069] Step S02: If the product price is not obtained within the preset time, the correct product price is obtained by reverse lookup from the quotation application.

[0070] Understandably, if the bidding subscription device fails to receive any bidding data packets within the preset monitoring time window (e.g., 5 seconds) by subscribing to the message queue, it means that there is a serious failure in the message queue service or network link, causing a complete interruption of data delivery. In this case, the exception handling process is triggered, bypassing the failed message queue, and directly initiating a reverse lookup request to the current main bidding application. The main bidding application queries its local database for the correct bids within the last 5 seconds and returns them, enabling the subscription device to complete the missing data for that time period. This ensures that the bidding flow is uninterrupted and achieves the system's high reliability goal.

[0071] In one feasible implementation, step S01 may include:

[0072] If the product price is not updated within a preset time or the product price is not continuous, then it is determined in the database corresponding to the main quotation application whether there is a continuous product price.

[0073] It should be noted that before triggering the reverse lookup mechanism, the pricing subscription device first queries the main pricing application's local database for the sequence of pricing records stored during the abnormal time period, and verifies whether the sequence is continuous and complete. By adding a pre-verification of the continuity of data at the source end, the reverse lookup behavior becomes more accurate and efficient. It can effectively distinguish whether the data is missing from the publishing source itself or from data loss in the intermediate transmission link. If it is the latter, the reverse lookup can effectively complete the data.

[0074] Specifically, when the pricing subscription device detects a missing quote with timestamp T+1, it does not immediately request a replacement quote. Instead, it first requests the main pricing application to check the quote records in its local database from timestamp T to T+2. If the records returned by the main pricing application show that it also lacks data for T+1 seconds, it indicates a missing quote from the publishing source. The subscription device can record this anomaly and may rely on backup quote sources. If the records from the main pricing application are continuous, it indicates a loss during transmission. The subscription device can then clearly retrieve the missing quote for T+1 seconds, thus achieving accurate compensation.

[0075] If it exists, the correct product quote is retrieved from the database corresponding to the main quote application.

[0076] Understandably, after receiving a query request, if the main quotation application confirms that the quotation data stored in its local database is complete and timestamps are continuous within the abnormal time period (such as the time period detected as missing by the subscriber), the main quotation application will return the specific missing data in the continuous sequence (such as the T+1 second quotation confirmed to be lost in transmission) to the subscriber. This mechanism ensures the accuracy and efficiency of the compensation data.

[0077] If it does not exist, the correct product quote will be retrieved from the database corresponding to the prepared quote application.

[0078] It should be noted that when the primary quotation application data is incomplete, the system automatically switches to the backup quotation application database to retrieve the correct product quotation, establishing a progressive, dual-source complementary data compensation mechanism. This constitutes the last solid line of defense for system data integrity, ensuring that even in extreme failure scenarios where the primary quotation application itself experiences data loss, complete quotation data can still be recovered from the backup, independent data source, thus achieving true high reliability and data continuity assurance.

[0079] In this implementation, a missing detection mechanism based on consumption location verification is established. When a discontinuous pricing time is detected, a reverse query interface is triggered to perform data compensation, forming a closed-loop quality assurance system of "publish-subscribe-compensation". A data integrity assurance layer is built in the pricing subscription publishing scenario to effectively deal with abnormal situations such as network jitter and consumption delay.

[0080] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the pricing subscription method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0081] This application also provides a price subscription device, please refer to... Figure 4 The quote subscription device includes:

[0082] The judgment module 10 is used to periodically subscribe to product quotes from the message queue and judge whether the product quotes are abnormal. The product quotes in the message queue are obtained in real time based on the main quote application and the backup quote application. The backup quote application is used to supplement the quotes of the main quote application.

[0083] The reverse lookup module 20 is used to retrieve the correct product quote from the quote application if the product quote is abnormal.

[0084] The retention module 30 is used to retain the product quote sent by the main quote application if the product quote is not abnormal.

[0085] Optionally, the retention module includes:

[0086] The filtering submodule is used to filter the product quotes corresponding to the backup tags from the product quotes based on the main tags and backup tags contained in the product quotes if the product quotes are not abnormal, and retain the product quotes sent by the application corresponding to the main tags.

[0087] Optionally, the determination module includes:

[0088] The update submodule is used to switch the primary / backup role between the backup bidding application and the primary bidding application if the coordinator application does not receive a heartbeat status from the primary bidding application within a preset time. The backup bidding application and the primary bidding application periodically send heartbeat status to the coordinator application. The submodule also updates the tags corresponding to the primary bidding application and the backup bidding application after the switch.

[0089] The inspection submodule is used to periodically check the database corresponding to the main quotation application for any missing prices. If any missing prices are found, the quotation is supplemented from the backup quotation application.

[0090] Optionally, the reverse lookup module includes:

[0091] The contrast submodule is used to retrieve the correct product price from the quotation application if the product price is not updated within a preset time or the product price is discontinuous; and to retrieve the correct product price from the quotation application if the product price is not obtained within the preset time.

[0092] Optionally, the contrast submodule includes:

[0093] The judgment unit is configured to determine whether there is a continuous product price in the database corresponding to the main quotation application if the product price is not updated within a preset time or the product price is not continuous; if it exists, the correct product price is obtained by reverse lookup from the database corresponding to the main quotation application; if it does not exist, the correct product price is obtained by reverse lookup from the database corresponding to the backup quotation application.

[0094] The price subscription device provided in this application, employing the price subscription method in the above embodiments, can solve the technical problem of price subscription. Compared with the prior art, the beneficial effects of the price subscription device provided in this application are the same as those of the price subscription method provided in the above embodiments, and other technical features in the price subscription device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0095] This application provides a price subscription device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the price subscription method in Embodiment 1 above.

[0096] The following is for reference. Figure 5 The diagram illustrates a structural schematic suitable for implementing the subscription pricing device of the embodiments of this application. The subscription pricing device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, tablets, digital broadcast receivers, PDAs (Personal Digital Assistants), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The illustrated subscription device is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0097] like Figure 5As shown, the subscription device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the subscription device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the subscription device to communicate wirelessly or wiredly with other devices to exchange data. While various systems are shown in the figures, it should be understood that implementation or possession of all shown systems is not required. More or fewer systems may be implemented alternatively.

[0098] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0099] The pricing subscription device provided in this application, employing the pricing subscription method described in the above embodiments, can solve the technical problem of pricing subscription. Compared with the prior art, the beneficial effects of the pricing subscription device provided in this application are the same as those of the pricing subscription method provided in the above embodiments, and other technical features of the pricing subscription device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0100] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0101] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0102] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the quote subscription method in the above embodiments.

[0103] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0104] The aforementioned computer-readable storage medium may be included in the subscription device or may exist independently and not assembled into the subscription device.

[0105] The aforementioned computer-readable storage medium carries one or more programs that, when executed by a pricing subscription device, cause the pricing subscription device to: periodically subscribe to product pricing from a message queue; determine whether the product pricing is abnormal, wherein the product pricing in the message queue is obtained in real time based on a primary pricing application and a backup pricing application, the backup pricing application being used to supplement the pricing of the primary pricing application; if the product pricing is abnormal, retrieve the correct product pricing from the pricing application; if the product pricing is not abnormal, retain the product pricing sent by the primary pricing application.

[0106] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0107] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0108] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0109] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described bid-subscription method, thereby solving the technical problem of bid-subscription. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the bid-subscription method provided in the above embodiments, and will not be repeated here.

[0110] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the quote subscription method described above.

[0111] The computer program product provided in this application can solve the technical problem of price subscription. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the price subscription method provided in the above embodiments, and will not be repeated here.

[0112] The above description is only a part of the embodiments of this application and does not limit the scope of protection of this application. All equivalent structural transformations made under the technical concept of this application and using the content of this application specification and drawings, or direct / indirect applications in other related technical fields, are included in the scope of protection of this application.

Claims

1. A method of offering a subscription, characterized by, The offer subscription method comprises: Timing subscription product offer from the message queue, judge whether the product offer is abnormal, wherein the product offer in the message queue is based on the main offer application and the standby offer application real-time sending, the standby offer application is used to supplement the main offer application offer; If the product offer is abnormal, the correct product offer is obtained by reverse searching from the offer application; If the product offer is not abnormal, the product offer sent by the main offer application is retained.

2. The offer subscription method of claim 1, wherein, The step of retaining the product offer sent by the main offer application if the product offer is not abnormal comprises: If the product offer is not abnormal, the product offer corresponding to the standby tag is filtered from the product offer based on the main tag and the standby tag contained in the product offer, and the product offer sent by the main offer application corresponding to the main tag is retained.

3. The offer subscription method of claim 1, wherein, The step of timing subscription product offer from the message queue to obtain the subscription content comprises: If the coordinator application does not receive the heartbeat state sent by the main offer application within the preset time, the master-slave roles between the standby offer application and the main offer application are switched, wherein the standby offer application and the main offer application send heartbeat state to the coordinator application at regular intervals; The tags corresponding to the switched main offer application and the switched standby offer application are updated respectively.

4. The offer subscription method of claim 1, wherein, The step of timing subscription product offer from the message queue to obtain the subscription content further comprises: Timing checking whether there is a missing price in the database corresponding to the main offer application, if there is a missing price, the offer is supplemented from the standby offer application.

5. The offer subscription method of claim 1, wherein, The step of obtaining the correct product offer by reverse searching from the offer application if the product offer is abnormal comprises: If the product price is not updated within the preset time or the product price is not continuous, the correct product offer is obtained by reverse searching from the offer application; If the product price is not obtained within the preset time, the correct product offer is obtained by reverse searching from the offer application.

6. The method of offering a subscription as claimed in claim 5, wherein, The step of obtaining the correct product offer by reverse searching from the offer application if the product price is not updated within the preset time or the product price is not continuous comprises: If the product price is not updated within the preset time or the product price is not continuous, it is judged whether there is continuous product price in the database corresponding to the main offer application; If there is, the correct product offer is obtained by reverse searching from the database corresponding to the main offer application; If not, the correct product offer is obtained by reverse searching from the database corresponding to the standby offer application.

7. An offer subscription apparatus characterized by comprising: The device comprises: A judgment module for timing subscription product offer from the message queue, judging whether the product offer is abnormal, wherein the product offer in the message queue is based on the main offer application and the standby offer application real-time sending, the standby offer application is used to supplement the main offer application offer; A reverse search module for obtaining the correct product offer by reverse searching from the offer application if the product offer is abnormal; A reverse search module for obtaining the correct product offer by reverse searching from the offer application if the product offer is abnormal; a retention module for retaining the product offer sent by the master offer application if the product offer is not abnormal.

8. A quote subscription device, characterized by The device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the offer subscription method according to any one of claims 1 to 6.

9. A storage medium, characterized by The storage medium is a computer readable storage medium, and the storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the offer subscription method according to any one of claims 1 to 6.

10. A computer program product, characterised in that, The computer program product comprises a computer program, and the computer program is executed by a processor to implement the steps of the offer subscription method according to any one of claims 1 to 6.