CN113791733A - Information storage method, device, equipment and storage medium - Google Patents

Information storage method, device, equipment and storage medium Download PDF

Info

Publication number
CN113791733A
CN113791733A CN202111037530.XA CN202111037530A CN113791733A CN 113791733 A CN113791733 A CN 113791733A CN 202111037530 A CN202111037530 A CN 202111037530A CN 113791733 A CN113791733 A CN 113791733A
Authority
CN
China
Prior art keywords
information
identifier
receiving
collected
server
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
CN202111037530.XA
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.)
Qingdao Zhongke Shuguang Technology Service Co ltd
Original Assignee
Qingdao Zhongke Shuguang Technology Service 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 Qingdao Zhongke Shuguang Technology Service Co ltd filed Critical Qingdao Zhongke Shuguang Technology Service Co ltd
Priority to CN202111037530.XA priority Critical patent/CN113791733A/en
Publication of CN113791733A publication Critical patent/CN113791733A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for storing information, wherein the method comprises the following steps: when the acquisition information sent by the terminal equipment is detected, determining an information receiving strategy matched with the acquisition information according to the information type of the acquisition information, and receiving the acquisition information sent by the terminal equipment according to the information receiving strategy; and generating an information identifier of the representation area information corresponding to the acquired information according to the information type of the acquired information, and storing the acquired information based on the information identifier. According to the technical scheme of the embodiment of the invention, for different types of collected information, the information is received by adopting corresponding different receiving strategies, so that the receiving efficiency of the collected information can be improved, and meanwhile, the information identifier for representing the regional information is generated and the collected information is stored based on the information identifier, so that the regional division and storage of the collected information are realized, the effective index of the collected information is established, and the difficulty of information retrieval is reduced.

Description

Information storage method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of big data, in particular to a method, a device, equipment and a storage medium for storing information.
Background
With the increasing popularization of intelligent devices, how to effectively acquire, store and manage a large amount of data generated by the intelligent devices becomes a difficult problem to be solved urgently.
At present, as shown in fig. 1, an existing information collection and storage method generally collects data of a front-end message source or a message database to a big data storage or management service through a message queue or a distributed log system technology, and then cleans, stores and utilizes the data through the big data storage or management service.
However, the following problems exist in the prior art: the collected information of each area cannot be classified and stored, so that the collected information of multiple areas is mixed, the difficulty in cleaning and managing the information is increased, and the later maintenance and management cost is increased; meanwhile, the information retrieval difficulty is high, the information storage redundancy is high, and the information retrieval efficiency is low due to the lack of effective indexes for the stored information.
Disclosure of Invention
The invention provides an information storage method, an information storage device, information storage equipment and a storage medium, and provides a new way for storing collected information based on information identification representing area information corresponding to the collected information, so that the area division storage of the collected information is realized, the information management difficulty is reduced, an effective index of the collected information is established, and the information retrieval difficulty is reduced.
In a first aspect, an embodiment of the present invention provides an information storage method, including:
when the acquisition information sent by the terminal equipment is detected, determining an information receiving strategy matched with the acquisition information according to the information type of the acquisition information;
receiving the acquisition information sent by the terminal equipment according to the information receiving strategy;
and generating an information identifier of the characterization area information corresponding to the acquired information according to the information type of the acquired information, and storing the acquired information based on the information identifier.
Optionally, the generating, according to the information type of the collected information, an information identifier of the characterization area information corresponding to the collected information, and storing the collected information based on the information identifier includes:
when the collected information is text data, generating an information identifier representing area information corresponding to the collected information through a snowflake algorithm, and storing the collected information and the information identifier locally and correspondingly to form a mapping relation between the collected information and the information identifier;
when the acquired information is picture data or video data, generating an information identifier of the representation area information corresponding to the acquired information through a snowflake algorithm, determining a target storage server matched with the terminal equipment based on the mapping relation between the information identifier and the storage server, and sending the IP address of the target storage server to the terminal equipment so as to store the acquired information sent by the terminal equipment through the target storage server.
By adopting the technical scheme, for the text data, the receiving server generates the corresponding information identifier representing the regional information based on the snowflake algorithm, locally stores the text data based on the information identifier, and simultaneously generates the mapping relation between the information identifier and the text data, so that the storage flow of the acquired information can be simplified, and the information storage efficiency is improved; for picture data and video data, the receiving server determines the matched storage server, and the data is stored by the storage server, so that occupation of large data volume of acquired information on the internal memory of the receiving server can be avoided, and efficient management of the acquired information and quick response to information retrieval are ensured.
Optionally, the generating, by the snowflake algorithm, an information identifier of the characterization area information corresponding to the collected information includes:
determining an area identifier in ten-bit working machine identifiers based on a snowflake algorithm;
determining the area of the terminal equipment according to the internet protocol IP address of the acquired information;
determining a target area identifier matched with the terminal equipment according to the belonging area;
and filling the area identification by adopting the target area identification to obtain the information identification corresponding to the acquired information.
By adopting the technical scheme, the working machine identification is divided, and the area identification representing the area information is adopted for filling, so that the information identification representing the area information is obtained, the regional storage of the collected information can be realized, and the management efficiency and the retrieval speed of the collected information can be improved.
Optionally, the determining, according to the information type of the collected information, an information receiving policy matched with the collected information includes:
when the collected information is text data, determining that an information receiving strategy matched with the collected information is a short link protocol and an information compensation mechanism;
and when the acquired information is picture data or video data, determining that an information receiving strategy matched with the acquired information is a long link protocol and a disconnected network continuous transmission mechanism.
By adopting the technical scheme, the acquisition information of different information types is received by adopting the corresponding matched information receiving strategy, so that the receiving efficiency of the acquisition information is improved.
Optionally, after storing the collected information based on the information identifier, the method further includes:
responding to a query request for acquiring information, and acquiring a target query identifier in the query request;
if a target information identifier matched with the target query identifier is found in the mapping relation between the acquisition information and the information identifier, the target acquisition information corresponding to the target information identifier is used as a response result of the query request;
otherwise, according to the target query identifier, searching a target information identifier matched with the target query identifier in a mapping relation between the information identifier and a storage server, sending the query request to a target storage server corresponding to the target information identifier, and sending the acquisition information corresponding to the target query identifier to a sender of the query request through the target storage server.
By adopting the technical scheme, the receiving server searches the matched acquisition information in the local or storage server according to the target query identifier in the query request, and sends the searched matched acquisition information to the query request sender, so that the high-efficiency retrieval of the acquisition information is realized, and the information retrieval efficiency is improved.
Optionally, when the collected information sent by the terminal device is detected, before determining the information receiving policy matched with the collected information according to the information type of the collected information, the method further includes:
receiving a registration request of the terminal equipment through a registration server, and determining the area of the terminal equipment through the registration server according to the IP address of the registration request;
and determining a receiving server matched with the terminal equipment through a registration server according to the area to which the terminal equipment belongs, and feeding back the IP address of the matched receiving server to the terminal equipment so that the receiving server receives the acquisition information sent by the terminal equipment.
By adopting the technical scheme, the terminal equipment is subjected to equipment registration through the registration server, and the terminal equipment is not allocated with the corresponding receiving server, so that the terminal equipment acquires the IP address matched with the receiving server, and the safety of information transmission is improved.
Optionally, the determining, by the registration server, the receiving server matched with the terminal device according to the area to which the terminal device belongs includes:
determining at least one alternative receiving server matched with the terminal equipment according to the affiliated area through a registration server;
and determining a receiving server matched with the terminal equipment in each alternative receiving server by the registration server according to a near principle and/or a load balancing principle.
By adopting the technical scheme, the registration server can realize more reasonable distribution of the receiving server, and the efficiency of receiving and storing the acquired information by the receiving server can be improved.
In a second aspect, an embodiment of the present invention further provides an information storage apparatus, including:
the information receiving strategy determining module is used for determining an information receiving strategy matched with the acquired information according to the information type of the acquired information when the acquired information sent by the terminal equipment is detected;
the acquisition information receiving module is used for receiving acquisition information sent by the terminal equipment according to the information receiving strategy;
and the collected information storage module is used for generating an information identifier of the representation area information corresponding to the collected information according to the information type of the collected information and storing the collected information based on the information identifier.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the information storage method according to any embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the information storage method according to any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, when the acquisition information sent by the terminal equipment is detected, an information receiving strategy matched with the acquisition information is determined according to the information type of the acquisition information, and the acquisition information sent by the terminal equipment is received according to the information receiving strategy; and then according to the information type of the collected information, an information identifier of the characterization area information corresponding to the collected information is generated, the collected information is stored based on the information identifier, the information is received by adopting different receiving strategies corresponding to different types of collected information, the receiving efficiency of the collected information can be improved, meanwhile, the information identifier of the characterization area information is generated, the collected information is stored based on the information identifier, the area division storage of the collected information is realized, the information management difficulty is reduced, meanwhile, an effective index of the collected information is established, and the information retrieval difficulty is reduced.
Drawings
FIG. 1 is a diagram illustrating a method for storing information in the prior art;
fig. 2 is a flowchart of a method for storing information according to an embodiment of the present invention;
fig. 3A is a flowchart of a method for storing information according to an embodiment of the present invention;
FIG. 3B is a schematic diagram of an information identifier based on a snowflake algorithm according to an embodiment of the present invention;
FIG. 3C is a schematic diagram of another information identifier based on a snowflake algorithm according to an embodiment of the present invention;
fig. 4A is a flowchart of a method for storing information according to an embodiment of the present invention;
fig. 4B is a schematic view of an application scenario of a method for storing information according to an embodiment of the present invention;
fig. 4C is a schematic view of an application scenario of another information storage method according to an embodiment of the present invention;
FIG. 5 is a block diagram of an information storage device according to an embodiment of the present invention;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 2 is a flowchart of an information storage method according to an embodiment of the present invention, where the embodiment of the present invention is applicable to generating a corresponding information identifier according to area information of collected information, and storing the collected information based on a current information identifier, where the method may be executed by an information storage device in the embodiment of the present invention, where the information storage device may be implemented by software and/or hardware and integrated on an electronic device, and typically, the electronic device may be a server, and the method specifically includes the following steps:
s110, when the acquisition information sent by the terminal equipment is detected, determining an information receiving strategy matched with the acquisition information according to the information type of the acquisition information.
The terminal device may be an electronic device integrated with a photographing or shooting function module, such as a camera and a video camera; or may be a cell phone or computer device that includes text input means (e.g., a keyboard). It can be understood that one terminal device can realize the collection of various types of information, for example, a computer device can simultaneously realize the collection of text, voice, picture, video and other types of information; furthermore, the collected information may also be existing information in the network. In this embodiment, the information type of the information that can be acquired by the terminal device and the manner of acquiring the information are not particularly limited.
The information receiving strategy refers to an information transmission mode between the server and the terminal equipment; it should be noted that, an information transmission mode can only realize effective transmission of specific information or information of several types; for example, the message queue information transmission method is only suitable for transmission of text information, and transmission efficiency is extremely low for large data amount information such as pictures and videos. Therefore, when the receiving server of the collected information detects that the terminal equipment needs to send the collected information, the corresponding information receiving strategy is determined according to the information type of the collected information needing to be transmitted, the problem that the information transmission rate is low due to the fact that the information receiving mode is not matched with the collected information type can be avoided, and the receiving efficiency of the collected information is improved.
In a specific implementation manner of this embodiment, determining an information receiving policy matched with the collected information according to the information type of the collected information may include: and searching an information receiving strategy matched with the information type of the acquired information in a mapping relation between the information type and the information receiving strategy which is established in advance according to the information type of the acquired information.
In an optional implementation manner of this embodiment, determining the information receiving policy matched with the collected information according to the information type of the collected information may include: when the collected information is text data, determining that an information receiving strategy matched with the collected information is a short link protocol and an information compensation mechanism; and when the acquired information is picture data or video data, determining that an information receiving strategy matched with the acquired information is a long link protocol and a disconnected network continuous transmission mechanism.
The short link protocol is a protocol in which a link is established every time information transmission is performed, and if the information transmission is completed, the link is interrupted, and the short link protocol is suitable for information transmission with a small unit data amount but a high frequency, such as transmission of text data. The information compensation mechanism is used for avoiding information loss, storing information in the local when an information sending party transmits the information, detecting whether the locally stored information is consistent with the information stored by a receiving party at regular time, if the locally stored information is inconsistent with the information stored by the receiving party, considering that the information is lost, retransmitting the information, and ensuring the stability of information transmission. In this embodiment, when the receiving server determines that the collected information is text data, a short link protocol and an information compensation mechanism are used to receive the collected information, so that efficient and stable reception of the collected information can be ensured.
The long link protocol means that after a communication link is established, the communication link is maintained for a certain time without interruption; the time for keeping the link can be set adaptively, and the method is suitable for continuous transmission of information with large unit data volume. For example the transmission of pictures or video data. The network-broken continuous transmission mechanism is used for dividing information to be transmitted into a plurality of parts when the information is transmitted, simultaneously transmitting the plurality of parts, and if network link interruption occurs in the transmission process, suspending a transmission task; when the network link is recovered, the information transmission is continued from the suspended position, so that the stability of information transmission can be improved. In this embodiment, when the receiving server receives a large amount of collected information such as pictures or videos, the long-chain reception protocol is used in combination with the broken network continuous transmission mechanism to receive the collected information, so that the information receiving efficiency is ensured, and the stability of information receiving is further improved.
And S120, receiving the acquisition information sent by the terminal equipment according to the information receiving strategy.
Specifically, after determining an information receiving strategy matched with the current acquisition information, the receiving server receives the acquisition information sent by the terminal device in real time based on the current information receiving strategy.
It should be noted that, since the terminal device can acquire different types of information, the information type of the acquired information sent by the terminal device may change. In this embodiment, the receiving server detects the information type of the collected information to be received in real time, so that when the information type of the collected information is changed, the information receiving policy can be switched in time.
In an optional implementation manner of this embodiment, the receiving server may receive the collected information of the terminal device through the information transceiver element based on the Netty architecture. Wherein, Netty is a client/server framework based on Java; in this embodiment, by using the zero-copy characteristic of the NIO (non-blocking I/O) in Netty, when the collected information needs to be received, a block of memory is opened up from the outside of the heap memory to directly read the collected information, so that multiple copies of the collected information can be avoided, and the receiving efficiency of the collected information is improved.
In this embodiment, the receiving server receives the collected information of the terminal device through the information transceiving element based on the Netty architecture, so that high-efficiency transmission of large-data-volume information such as pictures or videos can be realized, the limitation that the existing message queue or distributed log system technology can only transmit text data is overcome, high concurrency and high fault-tolerant rate transmission of the collected information are realized, and the receiving efficiency of the receiving server on the collected information is improved.
S130, according to the information type of the collected information, generating an information identifier of the characterization area information corresponding to the collected information, and storing the collected information based on the information identifier.
Specifically, after receiving the acquisition information of the terminal device, the receiving server determines an information identifier of the acquisition information according to the region to which the acquisition information belongs, and stores the acquisition information by using the information identifier as an index of the acquisition information.
It should be noted that the collected information sent by the terminal device includes an Internet Protocol (IP) address of the terminal device, so as to indicate identity information of a sender of the collected information; the IP address of the terminal equipment is distributed by an operator in the area according to the area of the terminal equipment, and one terminal equipment only corresponds to one IP address. Therefore, after receiving the IP address of the terminal equipment, the receiving server can inquire the corresponding IP address attribution according to the current IP address so as to determine the current area of the terminal equipment, namely the area to which the information is acquired.
Secondly, after determining the region to which the acquisition information belongs, the receiving server generates a unique region identifier corresponding to the acquisition information according to the region to which the acquisition information belongs; for example, the different areas may be identified with numbers and characters, e.g., a for beijing city, a1 for eastern city, a2 for western city. The embodiment does not specifically limit the manner of generating the area identifier.
The receiving server determines the area identifier of the acquired information, and further determines the equipment identifier of the acquired information according to the terminal equipment which sends the acquired information; specifically, the device identifier of the terminal device may be determined according to the access sequence of the terminal device and the coding increasing principle. Meanwhile, the receiving server determines a time identifier corresponding to each acquired information according to the receiving time of each acquired information; and finally, combining the area identification, the equipment identification and the time identification to generate an information identification corresponding to each piece of acquired information, thereby realizing the creation of a unique index of each piece of acquired information.
In an optional implementation manner of this embodiment, the receiving server may classify and store the collected information according to the area information of the collected information, so as to generate a sub-database corresponding to each area; typically, with the city as a unit, sub-databases respectively corresponding to the cities are established, and after acquiring the acquisition information of the terminal device, the receiving server stores the acquisition information into the sub-database matching the city according to the affiliated area of the acquisition information and the membership relationship between the affiliated area and the city. Correspondingly, when the stored information is queried, the sub-database of the city to which the current area belongs can be determined according to the area information in the query request, and then the corresponding stored information is searched in the corresponding sub-database, so that the query efficiency of the stored information can be greatly improved.
In the embodiment, the server determines the information identifier of the acquired information according to the regional information of the acquired information, and stores the acquired information by taking the information identifier as the index of the acquired information, so that the classified storage of the acquired information belonging to different regions is realized, and the management difficulty of the stored information is reduced; meanwhile, effective indexes of the acquired information are generated, and the retrieval efficiency of the subsequent acquired information is improved.
According to the technical scheme of the embodiment of the invention, when the acquisition information sent by the terminal equipment is detected, an information receiving strategy matched with the acquisition information is determined according to the information type of the acquisition information, and the acquisition information sent by the terminal equipment is received according to the information receiving strategy; and then according to the information type of the collected information, an information identifier of the characterization area information corresponding to the collected information is generated, the collected information is stored based on the information identifier, the information is received by adopting different receiving strategies corresponding to different types of collected information, the receiving efficiency of the collected information can be improved, meanwhile, the information identifier of the characterization area information is generated, the collected information is stored based on the information identifier, the area division storage of the collected information is realized, the information management difficulty is reduced, meanwhile, an effective index of the collected information is established, and the information retrieval difficulty is reduced.
Fig. 3A is a flowchart of an information storage method according to an embodiment of the present invention, which is embodied on the basis of the above embodiment, in the embodiment, collected information of different information types is stored by respectively using corresponding information storage policies, and the method specifically includes:
s210, when the acquisition information sent by the terminal equipment is detected, determining an information receiving strategy matched with the acquisition information according to the information type of the acquisition information, and executing S220.
And S220, receiving the acquisition information sent by the terminal equipment according to the information receiving strategy.
There are two situations when storing the collected information: when the collected information is text data, executing S230; when the collection information is picture data or video data, S240 is performed. In this embodiment, for the collected information of different information types, the receiving server stores the collected information in different corresponding information storage modes, so that the information storage modes can better accord with the characteristics of the collected information, and the information management efficiency is improved.
And S230, generating an information identifier of the representation area information corresponding to the acquired information through a snowflake algorithm, and storing the acquired information and the information identifier locally in a corresponding manner to form a mapping relation between the acquired information and the information identifier.
The snowflake algorithm (snowflake) is a method for generating an information Identifier (ID) according to the current system time; shaping data with information identification of 64bit generated based on the snowflake algorithm, as shown in fig. 3B; wherein, the most significant bit 1bit is the identification bit, 1 represents the negative number, 0 represents the positive number, and the information ID is the positive number, so the identification bit is constantly 0; 41 bits of time stamp is stored, the precision is millisecond, and the maximum service life is 69 years; 10bit machine bit, can be deployed at 2101024 terminal devices generate corresponding information identifications; 12bit serial number, representing a maximum number of generated unique IDs of 2 in one millisecond12=4096。
It can be understood that when the information type of the collected information is text data, the local storage of the text data does not affect the information management and retrieval capability of the server because the data volume of the text data is usually small; therefore, when the receiving server receives the text data, the receiving server generates an information identifier representing the regional information through a snowflake algorithm, takes the current information identifier as an index of the text data, and locally stores the text data; and simultaneously establishing a mapping relation between the text data and the information identifier, and storing the current mapping relation.
In this embodiment, the text data with a small data size is directly stored, so that the information storage process can be simplified, and the information storage efficiency can be improved.
In an optional implementation manner of this embodiment, the generating, by the snowflake algorithm, an information identifier of the characterization area information corresponding to the collected information may include: determining an area identifier in ten-bit working machine identifiers based on a snowflake algorithm; determining the area of the terminal equipment according to the internet protocol IP address of the acquired information; determining a target area identifier matched with the terminal equipment according to the belonging area; and filling the area identification by adopting the target area identification to obtain the information identification corresponding to the acquired information.
It should be noted that, because the snowflake algorithm generation information identification completely depends on time, if there is time callback, a duplicate ID will be generated; in order to avoid the above problems, in this embodiment, preset bits are divided from a 10-bit work machine identifier in a snowflake algorithm to serve as an area identifier, an area to which a terminal device sending acquired information belongs is determined according to an IP address of the acquired information, a target area identifier corresponding to the area to which the terminal device belongs is further determined, and the target area identifier is filled into the area identifier divided in advance; wherein the other bits are still determined according to the snowflake algorithm. Therefore, the accurate acquisition of the unique information identification of the identification area information is realized.
It can be understood that the length of the divided region identifier determines the number of identifiable regions, and the length of the remaining working machine identifier determines the number of terminal devices that can be deployed in each region; therefore, the length of the mark of the divided region can be adjusted adaptively by comprehensively considering the number of the regions and the number of the terminal devices in each region. For example, when the number of the regions is large and the number of the terminal devices deployed in each region is small, the length of the region division identifier can be reduced; when the number of areas is small, the length of the divided area identifier may be increased to increase the number of terminal devices that can be deployed in each area.
In a specific embodiment, as shown in fig. 3C, 4 bits are divided into 10 bits of work machine identifier as region identifier; at this time, the current receiving server supports deployment at 24In 16 areas, each area can be deployed with 2 terminal devices664 stands.
S240, generating an information identifier of the characterization area information corresponding to the acquired information through a snowflake algorithm, determining a target storage server matched with the terminal equipment based on the mapping relation between the information identifier and the storage server, and executing S250.
The storage server is a server only used for storing information. In this embodiment, when the information type of the collected information is picture data or video data, because the data size is large, if the collected information is stored in the local server, the collected information will occupy a large amount of memory space of the server, and the ability of the receiving server to manage and retrieve the collected information is seriously affected. Therefore, when the receiving server receives the picture data or the video data, the receiving server allocates the corresponding storage server for the picture data or the video data, so that the large-data-volume acquired information is stored through the corresponding storage server, and the information management and retrieval efficiency of the receiving server can be ensured.
It should be noted that, a mapping relationship between the area identifier and the storage server is established in advance; specifically, the receiving server for collecting information configures a corresponding storage server for each area, and further determines the association relationship between each area identifier and the storage server according to a preset area identifier generation criterion. After the receiving server generates the information identifier corresponding to the acquired information, the mapping relationship between the information identifier and the storage server can be determined according to the area identifier in the information identifier and the pre-established association relationship between the area identifier and the storage server, so that the storage server matched with the terminal equipment can be determined.
And S250, sending the IP address of the target storage server to the terminal equipment so as to store the acquisition information sent by the terminal equipment through the target storage server.
It can be understood that the receiving server for collecting information stores the IP addresses of the storage servers in advance; and after determining the target storage server matched with the terminal equipment, the receiving server sends the IP address of the target storage server to the terminal equipment. And after receiving the IP address, the terminal equipment resends the acquired information to the target storage server according to the IP address so as to realize the storage of the acquired information.
It is worth noting that the collected information of the terminal device is initially sent to the receiving server, and the receiving server judges whether to perform local storage or perform storage through the storage server according to the information type of the collected information.
According to the technical scheme, after the server receives the acquired information and generates the information identifier representing the area information corresponding to the acquired information according to the information type of the acquired information, if the acquired information is text data, the acquired information is locally stored according to the information identifier; if the acquired information is picture data or video data, determining a matched storage server according to the information identifier, and storing the acquired information through the storage server; aiming at the collected information of different information types, the high-efficiency storage of the collected information can be realized by adopting corresponding different information storage modes, and the high-efficiency management and retrieval of the stored information can be realized.
Fig. 4A is a flowchart of an information storage method according to an embodiment of the present invention, which is embodied on the basis of the above embodiment, in this embodiment, after the storage of the collected information is completed, the matched collected information is retrieved according to a query request of a user for the collected information, and the method specifically includes:
s310, receiving a registration request of the terminal equipment through a registration server, and determining the area of the terminal equipment through the registration server according to the IP address of the registration request.
The registration server is used for distributing a corresponding receiving server for the registered terminal equipment.
Before storing the collected information of the terminal device, the terminal device first needs to perform device registration in a registration server of the information storage system to obtain an IP address corresponding to the receiving server; and then according to the IP address, sending acquisition information to a receiving server. Specifically, the terminal device sends a registration request to a registration server responsible for the region to which the terminal device belongs, and the registration server determines the region to which the terminal device belongs according to the IP address of the registration request after receiving the registration request.
S320, determining a receiving server matched with the terminal equipment through the registration server according to the area to which the terminal equipment belongs, and feeding back the IP address of the matched receiving server to the terminal equipment so that the receiving server receives the acquisition information sent by the terminal equipment.
Further, the registration server determines a receiving server deployed in the region to which the terminal device belongs according to the region to which the terminal device belongs, and sends the IP address of the current receiving server to the terminal device, thereby completing registration of the terminal device. The registration server stores in advance the IP addresses of the receiving servers. And corresponding receiving servers are deployed in different areas and used for receiving and storing the acquired information of the matching areas.
In an optional implementation manner of this embodiment, the determining, by the registration server, the receiving server matched with the terminal device according to the area to which the terminal device belongs may include: determining at least one alternative receiving server matched with the terminal equipment according to the affiliated area through a registration server; and determining a receiving server matched with the terminal equipment in each alternative receiving server by the registration server according to a near principle and/or a load balancing principle.
Specifically, when determining a receiving server matched with the terminal device, the registration server may use, as the candidate receiving servers, a plurality of receiving servers whose linear distances from the corresponding area are less than or equal to a preset distance threshold according to the corresponding area of the terminal device; and finally selecting a receiving server matched with the terminal equipment from the multiple alternative receiving servers according to a near principle and a load balancing principle.
The proximity principle refers to that the alternative receiving server which is closest to the region of the terminal device in the straight line distance is used as the final matched receiving server; the load balancing principle refers to that the registration server preferentially arranges the candidate receiving server with a lower service processing load as the matched receiving server according to the service processing load (for example, memory occupancy rate) of each current candidate receiving server.
S330, when the acquisition information sent by the terminal equipment is detected, determining an information receiving strategy matched with the acquisition information according to the information type of the acquisition information.
And S340, receiving the acquisition information sent by the terminal equipment according to the information receiving strategy.
S350, according to the information type of the collected information, generating an information identifier of the characterization area information corresponding to the collected information, and storing the collected information based on the information identifier.
S360, responding to the query request of the collected information, and acquiring a target query identifier in the query request.
The query request is a query command which is sent by a user and aims at the acquisition information stored in the receiving server and the storage server, and comprises a query identifier; and the query identifier is an information identifier of the acquired information which needs to be queried currently.
It should be noted that, in this embodiment, all query requests of a user are first sent to a receiving server, and the receiving server searches for corresponding acquisition information in a local storage or each storage server according to a target query identifier in the query request.
S370, determining whether the target information identifier matching the target query identifier can be found in the mapping relationship between the collected information and the information identifier.
If yes, executing S380; otherwise, S390 is executed. Specifically, after the receiving server obtains the target query identifier in the query request, matching search is performed in the mapping relationship between the locally stored acquisition information and the information identifier, and at this time, if the stored information identifier consistent with the target query identifier is searched, the acquisition information matched with the currently stored information identifier can be directly read in the local storage. It is worth noting that since the receiving server only stores the text data locally, the collected information that is currently found is also necessarily text data.
If the stored information identifier consistent with the target query identifier is not found, the image data and the video data are stored in the storage server library, so that matching search is further performed in the mapping relation between the information identifier and the storage server according to the target query identifier to determine whether the acquired information corresponding to the current target query identifier is stored in the storage server.
And S380, taking the target acquisition information corresponding to the target information identification as a response result of the query request.
S390, according to the target query identifier, searching a target information identifier matched with the target query identifier in a mapping relation between the information identifier and a storage server, sending the query request to a target storage server corresponding to the target information identifier, and sending the acquisition information corresponding to the target query identifier to a sender of the query request through the target storage server.
Specifically, if the receiving server finds a target information identifier consistent with the target query identifier in the mapping relationship between the information identifier and the storage server according to the target query identifier, the receiving server indicates that the acquired information corresponding to the current target query identifier is stored in the corresponding storage server; at the moment, the receiving server sends the query request of the user to the corresponding storage server; and when receiving the query request, the storage server searches the matched acquisition information according to the target query identifier in the query request, and sends the searched matched acquisition information to a sender of the query request according to the IP address of the query request.
In this embodiment, optionally, when sending the acquisition information corresponding to the target query identifier through the storage server, because the data size of the picture data or the video data is too large, in order to increase the information transmission efficiency, the link of the picture data or the video data may be sent to the query request sender, and the query request sender may view the corresponding picture or video according to the link.
In addition, optionally, if the receiving server does not find the target information identifier consistent with the target query identifier in the mapping relationship between the information identifier and the storage server according to the target query identifier, it indicates that the information storage system does not store the acquisition information matched with the query request; at this time, a preset prompt message, for example, "matching result is not found, please re-input", may be fed back to the user.
In a specific implementation manner of this embodiment, the information storage method in this embodiment may be applied to the scenario shown in fig. 4B. The terminal equipment sends a registration request to a registration server to register the equipment, and the registration server returns an IP address matched with the receiving server according to the IP address information of the registration request by a near principle and a load balancing strategy. And the terminal equipment sends the acquisition information to the receiving server according to the returned IP address of the receiving server. And the receiving server carries out classification processing and storage on the acquired information according to the information type of the acquired information, and further carries out data cleaning and management. The text data is stored locally, and the picture or video data is stored through a storage server. When the information inquiry terminal inquires information, the inquiry request is uniformly forwarded by the information inquiry routing service; and the receiving server performs classified query on the query ID according to the region, summarizes and returns the query result to the information query terminal, and finally completes the query service of the information.
In another specific implementation manner of this embodiment, the information storage method in this embodiment may be applied to the scenario shown in fig. 4C. The collected information of the terminal device is stored in a distributed manner, that is, the collected information of the terminal device is received and stored by using a plurality of receiving servers at the same time, and fig. 4C takes two receiving servers and two storage servers as an example.
Specifically, the terminal device sends a registration request to a registration server to perform device registration, and the registration server allocates two matched receiving servers, namely a receiving server 1 and a receiving server 2, to the terminal device according to the IP address information of the registration request and a near principle and a load balancing strategy, and sends the IP addresses of the two receiving servers to the terminal device. And after receiving the feedback message of the registration server, the terminal equipment segments the acquisition information and sequentially or simultaneously sends the segmented acquisition information to the two receiving servers according to the fed back IP address. And each receiving server receives the acquisition information sent by the terminal equipment, and when the acquisition information is determined to be picture or video information, the matched storage server 1 and the matched storage server 2 are respectively determined, so that the IP addresses of the matched storage servers are respectively sent to the terminal equipment. And after receiving the IP addresses of the storage servers respectively fed back by each receiving server, the terminal equipment sends the acquired information to the matched storage server 1 and storage server 2 for storage according to the IP addresses.
Correspondingly, when retrieving the current collected information, the query request of the information query terminal is respectively forwarded to the corresponding receiving server 1 and receiving server 2 by the information query routing service, each receiving server firstly carries out local retrieval according to the query identifier, when determining that the corresponding collected information is not stored locally, the corresponding storage server is searched according to the query identifier, and the query request is forwarded to the corresponding storage server, so that the collected information corresponding to the query identifier is fed back to the information query terminal through the storage server.
According to the technical scheme, the IP address of the receiving server corresponding to the terminal equipment is sent to the terminal equipment through the registration server, the collected information of the terminal equipment is received through the corresponding receiving server, the collected information is stored based on the information identification of the representation area information corresponding to the collected information, an effective index of the collected information is established, the storage of the collected information in a partitioned mode is achieved, and the storage and management efficiency of the collected information is improved; furthermore, when a query request aiming at the acquired information is received, the acquired information corresponding to the query identifier in the query request is retrieved from the local storage server and each storage server, so that the high-efficiency retrieval of the acquired information is realized, and the information retrieval difficulty is reduced.
Fig. 5 is a block diagram of a structure of an information storage apparatus according to an embodiment of the present invention, where the apparatus specifically includes: an information receiving strategy determining module 410, an acquired information receiving module 420 and an acquired information storing module 430;
an information receiving policy determining module 410, configured to determine, when acquisition information sent by a terminal device is detected, an information receiving policy matched with the acquisition information according to an information type of the acquisition information;
the collected information receiving module 420 is configured to receive collected information sent by the terminal device according to the information receiving policy;
and the collected information storage module 430 is configured to generate an information identifier of the characterization area information corresponding to the collected information according to the information type of the collected information, and store the collected information based on the information identifier.
According to the technical scheme of the embodiment of the invention, when the acquisition information sent by the terminal equipment is detected, an information receiving strategy matched with the acquisition information is determined according to the information type of the acquisition information, and the acquisition information sent by the terminal equipment is received according to the information receiving strategy; and then according to the information type of the collected information, an information identifier of the characterization area information corresponding to the collected information is generated, the collected information is stored based on the information identifier, the information is received by adopting different receiving strategies corresponding to different types of collected information, the receiving efficiency of the collected information can be improved, meanwhile, the information identifier of the characterization area information is generated, the collected information is stored based on the information identifier, the area division storage of the collected information is realized, the information management difficulty is reduced, meanwhile, an effective index of the collected information is established, and the information retrieval difficulty is reduced.
Optionally, on the basis of the above technical solution, the collected information storage module 430 includes:
the mapping relation forming unit is used for generating an information identifier of the representation area information corresponding to the acquired information through a snowflake algorithm when the acquired information is text data, and correspondingly storing the acquired information and the information identifier locally to form a mapping relation between the acquired information and the information identifier;
and the target storage server determining unit is used for generating an information identifier of the representation area information corresponding to the acquired information through a snowflake algorithm when the acquired information is picture data or video data, determining a target storage server matched with the terminal equipment based on the mapping relation between the information identifier and the storage server, and sending the IP address of the target storage server to the terminal equipment so as to store the acquired information sent by the terminal equipment through the target storage server.
Optionally, on the basis of the above technical solution, the collected information storage module 430 includes:
the region identification determining unit is used for determining region identification in ten-bit working machine identification based on a snowflake algorithm;
the affiliated area determining unit is used for determining the affiliated area of the terminal equipment according to the Internet protocol IP address of the acquired information;
a target area identifier determining unit, configured to determine a target area identifier matched with the terminal device according to the belonging area;
and the information identifier acquisition unit is used for filling the area identifier with the target area identifier to obtain the information identifier corresponding to the acquired information.
Optionally, on the basis of the above technical solution, the information receiving policy determining module 410 is specifically configured to determine that, when the collected information is text data, the information receiving policy matched with the collected information is a short link protocol and an information compensation mechanism;
and when the acquired information is picture data or video data, determining that an information receiving strategy matched with the acquired information is a long link protocol and a disconnected network continuous transmission mechanism.
Optionally, on the basis of the above technical solution, the information storage apparatus further includes:
the target query identifier acquisition module is used for responding to a query request for acquiring information and acquiring a target query identifier in the query request;
a target information identifier query module, configured to, if a target information identifier matching the target query identifier is found in a mapping relationship between the acquisition information and the information identifier, take target acquisition information corresponding to the target information identifier as a response result of the query request;
otherwise, according to the target query identifier, searching a target information identifier matched with the target query identifier in a mapping relation between the information identifier and a storage server, sending the query request to a target storage server corresponding to the target information identifier, and sending the acquisition information corresponding to the target query identifier to a sender of the query request through the target storage server.
Optionally, on the basis of the above technical solution, the information storage apparatus further includes:
the affiliated area determining module is used for receiving a registration request of the terminal equipment through a registration server and determining the affiliated area of the terminal equipment through the registration server according to the IP address of the registration request;
and the receiving server determining module is used for determining a receiving server matched with the terminal equipment through a registration server according to the area to which the receiving server belongs, and feeding back the IP address of the matched receiving server to the terminal equipment so as to enable the receiving server to receive the acquisition information sent by the terminal equipment.
Optionally, on the basis of the above technical solution, the receiving server determining module includes:
the candidate receiving server determining unit is used for determining at least one candidate receiving server matched with the terminal equipment according to the affiliated area through a registration server;
and the receiving server determining unit is used for determining the receiving server matched with the terminal equipment in each alternative receiving server through the registration server according to a near principle and/or a load balancing principle.
The information storage device provided by the embodiment of the invention can execute the information storage method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, as shown in fig. 6, the electronic device includes a processor 50, a memory 51, an input device 52, and an output device 53; let the number of the processors 50 in the electronic device be one or more, and one processor 50 is taken as an example in fig. 6; the processor 50, the memory 51, the input device 52 and the output device 53 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 6.
The memory 51 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the information storage method in the embodiment of the present invention (for example, the information reception policy determination module 410, the collected information reception module 420, and the collected information storage module 430 in the information storage device). The processor 50 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 51, that is, implements the above-mentioned information storage method, that is:
when the acquisition information sent by the terminal equipment is detected, determining an information receiving strategy matched with the acquisition information according to the information type of the acquisition information;
receiving the acquisition information sent by the terminal equipment according to the information receiving strategy;
and generating an information identifier of the characterization area information corresponding to the acquired information according to the information type of the acquired information, and storing the acquired information based on the information identifier.
The memory 51 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 51 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 51 may further include memory located remotely from the processor 50, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 52 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the device/terminal/server. The output device 53 may include a display device such as a display screen.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method of storing information, the method comprising:
when the acquisition information sent by the terminal equipment is detected, determining an information receiving strategy matched with the acquisition information according to the information type of the acquisition information;
receiving the acquisition information sent by the terminal equipment according to the information receiving strategy;
and generating an information identifier of the characterization area information corresponding to the acquired information according to the information type of the acquired information, and storing the acquired information based on the information identifier.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also execute the relevant operations in the information storage method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the information storage apparatus, the included units and modules are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for storing information, comprising:
when the acquisition information sent by the terminal equipment is detected, determining an information receiving strategy matched with the acquisition information according to the information type of the acquisition information;
receiving the acquisition information sent by the terminal equipment according to the information receiving strategy;
and generating an information identifier of the characterization area information corresponding to the acquired information according to the information type of the acquired information, and storing the acquired information based on the information identifier.
2. The method according to claim 1, wherein the generating, according to the information type of the collected information, an information identifier representing area information corresponding to the collected information, and storing the collected information based on the information identifier comprises:
when the collected information is text data, generating an information identifier representing area information corresponding to the collected information through a snowflake algorithm, and storing the collected information and the information identifier locally and correspondingly to form a mapping relation between the collected information and the information identifier;
when the acquired information is picture data or video data, generating an information identifier of the representation area information corresponding to the acquired information through a snowflake algorithm, determining a target storage server matched with the terminal equipment based on the mapping relation between the information identifier and the storage server, and sending the IP address of the target storage server to the terminal equipment so as to store the acquired information sent by the terminal equipment through the target storage server.
3. The method of claim 2, wherein the generating of the information identifier representing the region information corresponding to the collected information by the snowflake algorithm comprises:
determining an area identifier in ten-bit working machine identifiers based on a snowflake algorithm;
determining the area of the terminal equipment according to the internet protocol IP address of the acquired information;
determining a target area identifier matched with the terminal equipment according to the belonging area;
and filling the area identification by adopting the target area identification to obtain the information identification corresponding to the acquired information.
4. The method of claim 1, wherein the determining the information receiving strategy matched with the collected information according to the information type of the collected information comprises:
when the collected information is text data, determining that an information receiving strategy matched with the collected information is a short link protocol and an information compensation mechanism;
and when the acquired information is picture data or video data, determining that an information receiving strategy matched with the acquired information is a long link protocol and a disconnected network continuous transmission mechanism.
5. The method of claim 2, further comprising, after storing the acquisition information based on the information identification:
responding to a query request for acquiring information, and acquiring a target query identifier in the query request;
if a target information identifier matched with the target query identifier is found in the mapping relation between the acquisition information and the information identifier, the target acquisition information corresponding to the target information identifier is used as a response result of the query request;
otherwise, according to the target query identifier, searching a target information identifier matched with the target query identifier in a mapping relation between the information identifier and a storage server, sending the query request to a target storage server corresponding to the target information identifier, and sending the acquisition information corresponding to the target query identifier to a sender of the query request through the target storage server.
6. The method according to claim 1, before determining an information receiving policy matched with the collected information according to an information type of the collected information when the collected information sent by the terminal device is detected, further comprising:
receiving a registration request of the terminal equipment through a registration server, and determining the area of the terminal equipment through the registration server according to the IP address of the registration request;
and determining a receiving server matched with the terminal equipment through a registration server according to the area to which the terminal equipment belongs, and feeding back the IP address of the matched receiving server to the terminal equipment so that the receiving server receives the acquisition information sent by the terminal equipment.
7. The method of claim 6, wherein the determining, by the registration server, the receiving server matched with the terminal device according to the belonging area comprises:
determining at least one alternative receiving server matched with the terminal equipment according to the affiliated area through a registration server;
and determining a receiving server matched with the terminal equipment in each alternative receiving server by the registration server according to a near principle and/or a load balancing principle.
8. An apparatus for storing information, comprising:
the information receiving strategy determining module is used for determining an information receiving strategy matched with the acquired information according to the information type of the acquired information when the acquired information sent by the terminal equipment is detected;
the acquisition information receiving module is used for receiving acquisition information sent by the terminal equipment according to the information receiving strategy;
and the collected information storage module is used for generating an information identifier of the representation area information corresponding to the collected information according to the information type of the collected information and storing the collected information based on the information identifier.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of storing information as claimed in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of storing information according to any one of claims 1 to 7.
CN202111037530.XA 2021-09-06 2021-09-06 Information storage method, device, equipment and storage medium Pending CN113791733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111037530.XA CN113791733A (en) 2021-09-06 2021-09-06 Information storage method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111037530.XA CN113791733A (en) 2021-09-06 2021-09-06 Information storage method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113791733A true CN113791733A (en) 2021-12-14

Family

ID=79182708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111037530.XA Pending CN113791733A (en) 2021-09-06 2021-09-06 Information storage method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113791733A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114185493A (en) * 2022-02-15 2022-03-15 烟台市地理信息中心 Method for dividing and storing surveying and mapping data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080294694A1 (en) * 2007-05-24 2008-11-27 Videoclix Technologies Inc. Method, apparatus, system, medium, and signals for producing interactive video content
CN106255172A (en) * 2016-07-22 2016-12-21 乐视控股(北京)有限公司 Communication means based on multipath and device
CN110196842A (en) * 2019-04-26 2019-09-03 视联动力信息技术股份有限公司 File memory method, management method, device, server and storage medium
CN111399756A (en) * 2019-09-29 2020-07-10 杭州海康威视系统技术有限公司 Data storage method, data downloading method and device
CN112347503A (en) * 2020-10-14 2021-02-09 重庆传音通讯技术有限公司 Management method, management device and computer storage medium
CN112559908A (en) * 2020-12-16 2021-03-26 北京百度网讯科技有限公司 Data identifier generation method, device, equipment, medium and program product

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080294694A1 (en) * 2007-05-24 2008-11-27 Videoclix Technologies Inc. Method, apparatus, system, medium, and signals for producing interactive video content
CN106255172A (en) * 2016-07-22 2016-12-21 乐视控股(北京)有限公司 Communication means based on multipath and device
CN110196842A (en) * 2019-04-26 2019-09-03 视联动力信息技术股份有限公司 File memory method, management method, device, server and storage medium
CN111399756A (en) * 2019-09-29 2020-07-10 杭州海康威视系统技术有限公司 Data storage method, data downloading method and device
CN112347503A (en) * 2020-10-14 2021-02-09 重庆传音通讯技术有限公司 Management method, management device and computer storage medium
CN112559908A (en) * 2020-12-16 2021-03-26 北京百度网讯科技有限公司 Data identifier generation method, device, equipment, medium and program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114185493A (en) * 2022-02-15 2022-03-15 烟台市地理信息中心 Method for dividing and storing surveying and mapping data

Similar Documents

Publication Publication Date Title
US8819080B2 (en) System and method for collection, retrieval, and distribution of data
CN109274730B (en) Internet of things system, MQTT message transmission optimization method and device
CN110659560B (en) Method and system for identifying associated object
CN103701957A (en) Domain name server (DNS) recursive method and system thereof
JP2007066161A (en) Cache system
EP3618404B1 (en) Data caching control method and device
US20150088995A1 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
CN106681995B (en) Data caching method, data query method and device
US20130166680A1 (en) Method, apparatus, and network system for acquiring content
US8798001B2 (en) Message routing platform
CN113791733A (en) Information storage method, device, equipment and storage medium
US10025859B2 (en) Method and system for second-degree friend query
CN113542420B (en) Processing method and device of hot spot file, electronic equipment and medium
CN110909030A (en) Information processing method and server cluster
CN111600929B (en) Transmission line detection method, routing strategy generation method and proxy server
CN110855627B (en) Application deployment method, device, equipment and medium
CN106815334A (en) A kind of data query method and device for terminal
CN114978992B (en) Communication method, node and network of safety naming data network
CN101741889B (en) Method, system and service for centralized management of network services
CN113010373A (en) Data monitoring method and device, electronic equipment and storage medium
US20150227534A1 (en) Method for processing data query using information-centric network
US20210377197A1 (en) A mail transmission method, server and system
JP2020095434A (en) Communication device, communication method, and communication program
CN104092735A (en) Cloud computing data access method and system based on binary tree
CN114138810B (en) Access flow statistical method and system

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