CN116634017B - Identification analysis data caching method and device based on digital object - Google Patents
Identification analysis data caching method and device based on digital object Download PDFInfo
- Publication number
- CN116634017B CN116634017B CN202310542724.8A CN202310542724A CN116634017B CN 116634017 B CN116634017 B CN 116634017B CN 202310542724 A CN202310542724 A CN 202310542724A CN 116634017 B CN116634017 B CN 116634017B
- Authority
- CN
- China
- Prior art keywords
- node
- identification
- cache
- data
- parsing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000003860 storage Methods 0.000 claims description 11
- 230000004083 survival effect Effects 0.000 claims description 8
- 238000004891 communication Methods 0.000 claims description 6
- 230000002688 persistence Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 16
- 238000004590 computer program Methods 0.000 description 7
- 238000007726 management method Methods 0.000 description 7
- 230000001934 delay Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 238000004904 shortening Methods 0.000 description 2
- 238000013499 data model Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical field
本申请涉及数据存储领域,特别是涉及一种基于数字对象的标识解析数据缓存方法与装置。The present application relates to the field of data storage, and in particular to a digital object-based identification parsing data caching method and device.
背景技术Background technique
数字对象架构(Digital Object Architecture,DOA)是一种技术和标准体系。数字对象架构包括一个基本的数据模型,两个标准协议以及三个核心子系统:注册表、仓库和标识解析系统。数字对象架构中,将现有互联网中不同系统的异构数据,统一建模抽象成数字对象,作为数字对象体系中的基本元素。数字对象由标识、元数据、数据实体三个部分组成,标识是数字对象的唯一身份标记;元数据表示数字对象和应用、分类、业务相关的描述信息,用于根据应用需求检索所需数字对象;数字对象实体则代表了数据资源实际的内容。Digital Object Architecture (DOA) is a technology and standards system. The digital object architecture includes a basic data model, two standard protocols and three core subsystems: registry, warehouse and identification resolution system. In the digital object architecture, heterogeneous data from different systems in the existing Internet are modeled and abstracted into digital objects in a unified manner, which serves as the basic element in the digital object system. Digital objects are composed of three parts: identification, metadata, and data entities. The identification is the unique identity mark of the digital object; metadata represents the description information related to the digital object and application, classification, and business, and is used to retrieve the required digital objects according to application requirements. ;The digital object entity represents the actual content of the data resource.
在数字对象架构中,用户不能直接访问数字对象的实体,而是需要通过数字对象的全网唯一标识,从数字对象的管理者处获取该数字对象的状态信息,进而通过状态信息访问该数字对象的实体。在没有缓存的情况下,当数字对象的标识被大量重复地请求解析时,会造成网络资源浪费严重、用户访问延迟高的问题。In the digital object architecture, users cannot directly access the entity of the digital object. Instead, they need to obtain the status information of the digital object from the manager of the digital object through the unique identifier of the digital object, and then access the digital object through the status information. entity. In the absence of caching, when the identification of digital objects is repeatedly requested to be parsed in large numbers, it will cause serious waste of network resources and high user access delays.
目前的标识解析系统大都设置专门的缓存节点对网络中的标识解析数据进行集中管理,但是,当大量的解析数据需要缓存时,缓存节点会收到大量数据包,而当大量的用户发起标识解析请求时,缓存节点会收到大量的请求信息,在这种情况下解析节点的网络负荷巨大,极易发生拥堵甚至宕机。因此,需要找到一种能够避免网络拥堵,降低用户访问的延迟,并且能够减少网络资源浪费的标识解析数据的缓存方法。Most of the current identity resolution systems set up special cache nodes to centrally manage identity resolution data in the network. However, when a large amount of parsing data needs to be cached, the cache node will receive a large number of data packets, and when a large number of users initiate identity resolution When requesting, the cache node will receive a large amount of request information. In this case, the network load of the parsing node is huge, and congestion or even downtime is easily caused. Therefore, it is necessary to find a caching method for identification parsing data that can avoid network congestion, reduce user access delays, and reduce waste of network resources.
发明内容Contents of the invention
有鉴于此,本申请旨在提出一种基于数字对象的标识解析数据缓存方法与装置,以解决大量的用户进行数字对象访问造成的网络拥堵、带宽浪费严重、用户访问延迟变高的问题。In view of this, this application aims to propose a digital object-based identification parsing data caching method and device to solve the problems of network congestion, serious bandwidth waste, and high user access delays caused by a large number of users accessing digital objects.
为达到上述目的,本申请的技术方案如下:In order to achieve the above objectives, the technical solutions of this application are as follows:
本申请实施例第一方面提供一种基于数字对象的标识解析数据缓存方法,所述方法包括:The first aspect of the embodiments of the present application provides a method for caching identification parsing data based on digital objects. The method includes:
设置树状层级结构的标识解析系统,包括端节点、域节点以及根节点;所述根节点与其下属的域节点直接通信;所述域节点与其上级的根节点直接通信,还与其下属的端节点直接通信;所述端节点对数字对象的标识进行管理,并与用户直接通信;Set up an identification parsing system with a tree-like hierarchical structure, including end nodes, domain nodes and root nodes; the root node communicates directly with its subordinate domain nodes; the domain node communicates directly with its superior root node and also with its subordinate end nodes Direct communication; the end node manages the identification of the digital object and communicates directly with the user;
根据提供者上传的数据资源的状态信息,在端节点中为所述数据资源分配全网唯一的标识,作为解析数据的对应信息;According to the status information of the data resource uploaded by the provider, allocate a network-wide unique identifier to the data resource in the end node as the corresponding information for parsing the data;
所述解析数据为用户对所述标识进行解析得到的所述状态信息;所述状态信息包括:所述数字对象的本体数据的存储位置、访问方式、所有者、时间戳以及访问相关的信息;所述标识为所述提供者自定的标识或随机生成的标识;The parsed data is the status information obtained by the user parsing the identification; the status information includes: the storage location, access method, owner, timestamp and access-related information of the ontology data of the digital object; The identification is a self-defined identification by the provider or a randomly generated identification;
将所述标识作为所述状态信息中的字段,与所述状态信息绑定生成键值对,并持久化存储至数据库中;Use the identifier as a field in the status information, bind it to the status information to generate a key-value pair, and store it persistently in the database;
将所述状态信息作为与所述标识对应的解析数据,缓存在所述端节点中;当用户第一次发送所述标识的解析请求时,将所述解析请求路由至所述端节点处命中缓存,从所述命中缓存的节点的缓存中获取所述解析数据,并按照所述解析请求的路径返回给用户;将所述解析数据缓存在返回路径上当前命中缓存的节点的下一跳节点中;The status information is cached in the end node as parsing data corresponding to the identification; when the user sends a parsing request for the identification for the first time, the parsing request is routed to the end node. Cache, obtain the parsed data from the cache of the node that hits the cache, and return it to the user according to the path of the parsing request; cache the parsed data on the next hop node of the node that currently hits the cache on the return path middle;
当用户再次发送所述标识的解析请求时,将所述解析请求路由至所述下一跳节点处命中缓存,从所述命中缓存的节点向用户返回所述解析数据,并将所述解析数据缓存到所述返回路径上当前命中缓存的节点的下一跳节点中;When the user sends the identified parsing request again, the parsing request is routed to the next hop node to hit the cache, the parsed data is returned to the user from the node that hits the cache, and the parsed data is Cache to the next hop node of the node currently hitting the cache on the return path;
根据用户每一次发送的对所述标识的解析请求,在所述返回路径上的节点中依次缓存所述解析数据,直到离用户最近的端节点中缓存有所述解析数据。According to each parsing request for the identifier sent by the user, the parsed data is sequentially cached in the nodes on the return path until the parsed data is cached in the end node closest to the user.
可选地,所述基于数字对象的标识解析数据缓存方法还包括:Optionally, the digital object-based identification parsing data caching method also includes:
当所述解析数据缓存到当前命中缓存的节点的下一跳节点中时,删除所述当前命中缓存的节点的缓存中的所述解析数据。When the parsed data is cached in the next hop node of the node that currently hits the cache, the parsed data in the cache of the node that currently hits the cache is deleted.
可选地,所述基于数字对象的标识解析数据缓存方法还包括:Optionally, the digital object-based identification parsing data caching method also includes:
当任一节点的缓存中,所述解析数据的存在时间超过设定的生存时间时,从所述端节点中重新获取所述标识对应的最新解析数据,并更新所述节点的缓存。When the existence time of the parsed data in the cache of any node exceeds the set survival time, the latest parsed data corresponding to the identifier is re-obtained from the end node, and the cache of the node is updated.
可选地,所述基于数字对象的标识解析数据缓存方法还包括:Optionally, the digital object-based identification parsing data caching method also includes:
在任一节点的缓存中,按照解析数据中的时间戳对所有解析数据进行排序;所述时间戳表示所述解析数据最近被访问的时间;In the cache of any node, all parsed data are sorted according to the timestamp in the parsed data; the timestamp represents the time when the parsed data was most recently accessed;
当所述节点的缓存容量被占满后,用新加入缓存的解析数据替换当前的缓存中时间戳最早的解析数据。When the cache capacity of the node is full, the parsed data with the earliest time stamp in the current cache is replaced with the parsed data newly added to the cache.
可选地,在端节点中为所述数据资源分配全网唯一的标识,作为解析数据的对应信息,包括:Optionally, assign a network-wide unique identifier to the data resource in the end node as corresponding information for parsing the data, including:
判断所述状态信息中是否包含用户自定标识,若不包含,则随机生成一个标识,并判断所述标识是否已被其他数字对象使用;Determine whether the status information contains a user-defined identification, if not, randomly generate an identification, and determine whether the identification has been used by other digital objects;
若所述标识已被其他数字对象使用,则重新随机生成一个标识;If the identification has been used by other digital objects, a new identification will be randomly generated;
若所述标识未被其他数字对象使用,则将所述标识分配给所述数字对象;If the identifier is not used by other digital objects, assign the identifier to the digital object;
若所述状态信息中包含用户自定标识,判断所述用户自定标识是否已被其他数字对象使用,若所述用户自定标识已被其他数字对象使用,则向用户分配随机生成的标识;If the status information contains a user-defined identifier, determine whether the user-defined identifier has been used by other digital objects, and if the user-defined identifier has been used by other digital objects, assign a randomly generated identifier to the user;
若所述用户自定标识未被其他数字对象使用,则将所述用户自定标识作为所述数字对象的标识。If the user-defined identifier is not used by other digital objects, the user-defined identifier is used as the identifier of the digital object.
可选地,所述基于数字对象的标识解析数据缓存方法还包括:Optionally, the digital object-based identification parsing data caching method also includes:
为所述数据资源生成分级结构的标识,用于区分不同的托管机构以及数据资源,方便管理;所述标识包括:标识前缀、标识后缀及分隔符;Generate hierarchical structure identifiers for the data resources to distinguish different hosting institutions and data resources to facilitate management; the identifiers include: identifier prefix, identifier suffix and separator;
设置用户自定义或随机生成的UTF-8编码,作为所述标识前缀和所述标识后缀的编码格式,用于兼容不同标识体系实现标识复用;Set a user-defined or randomly generated UTF-8 code as the encoding format of the logo prefix and the logo suffix to be compatible with different logo systems to achieve logo reuse;
设置用户自定义或系统默认分隔符,用于兼容用户个性化需求。Set user-defined or system default separators to be compatible with users' personalized needs.
根据本申请实施例的第二方面,提供一种基于数字对象的标识解析数据缓存装置,所述装置包括:According to a second aspect of the embodiment of the present application, a digital object-based identification parsing data caching device is provided, and the device includes:
解析路由构建模块,被配置为设置树状层级结构的标识解析系统,包括端节点、域节点以及根节点;所述根节点与其下属的域节点直接通信;所述域节点与其上级的根节点直接通信,还与其下属的端节点直接通信;所述端节点对数字对象的标识进行管理,并与用户直接通信;The parsing routing building module is configured to set up an identity parsing system with a tree-like hierarchical structure, including end nodes, domain nodes and root nodes; the root node directly communicates with its subordinate domain nodes; the domain node directly communicates with its superior root node communication, and also directly communicates with its subordinate end nodes; the end nodes manage the identification of digital objects and communicate directly with users;
标识分配模块,被配置为根据提供者上传的数据资源的状态信息,在端节点中为所述数据资源分配全网唯一的标识,作为解析数据的对应信息;The identification allocation module is configured to allocate a network-wide unique identification to the data resource in the end node according to the status information of the data resource uploaded by the provider as the corresponding information for parsing the data;
所述解析数据为用户对所述标识进行解析得到的所述状态信息;所述状态信息包括:所述数字对象的本体数据的存储位置、访问方式、所有者、时间戳以及访问相关的信息;所述标识为所述提供者自定的标识或随机生成的标识;The parsed data is the status information obtained by the user parsing the identification; the status information includes: the storage location, access method, owner, timestamp and access-related information of the ontology data of the digital object; The identification is a self-defined identification by the provider or a randomly generated identification;
持久化模块,被配置为将所述标识作为所述状态信息中的字段,与所述状态信息绑定生成键值对,并持久化存储至数据库中;A persistence module configured to use the identifier as a field in the state information, bind it to the state information to generate a key-value pair, and store it persistently in the database;
缓存模块,被配置为将所述状态信息作为与所述标识对应的解析数据,缓存在所述端节点中;A cache module configured to cache the status information in the end node as parsed data corresponding to the identification;
当用户第一次发送所述标识的解析请求时,将所述解析请求路由至所述端节点处命中缓存,从所述命中缓存的节点的缓存中获取所述解析数据,并按照所述解析请求的路径返回给用户;将所述解析数据缓存在返回路径上当前命中缓存的节点的下一跳节点中;When the user sends a parsing request for the identification for the first time, the parsing request is routed to the end node to hit the cache, the parsing data is obtained from the cache of the node that hits the cache, and the parsing is performed according to the The requested path is returned to the user; the parsed data is cached in the next hop node of the node currently hitting the cache on the return path;
当用户再次发送所述标识的解析请求时,将所述解析请求路由至所述下一跳节点处命中缓存,从所述命中缓存的节点向用户返回所述解析数据,并将所述解析数据缓存到所述返回路径上当前命中缓存的节点的下一跳节点中;When the user sends the identified parsing request again, the parsing request is routed to the next hop node to hit the cache, the parsed data is returned to the user from the node that hits the cache, and the parsed data is Cache to the next hop node of the node currently hitting the cache on the return path;
根据用户每一次发送的对所述标识的解析请求,在所述返回路径上的节点中依次缓存所述解析数据,直到离用户最近的端节点中缓存有所述解析数据。According to each parsing request for the identifier sent by the user, the parsed data is sequentially cached in the nodes on the return path until the parsed data is cached in the end node closest to the user.
可选地,所述缓存模块,还被配置为当所述解析数据缓存到当前命中缓存的节点的下一跳节点中时,删除所述当前命中缓存的节点的缓存中的所述解析数据。Optionally, the caching module is further configured to delete the parsed data in the cache of the node that currently hits the cache when the parsed data is cached in a next-hop node of the node that currently hits the cache.
可选地,所述基于数字对象的标识解析数据缓存装置,还包括:Optionally, the digital object-based identification parsing data caching device further includes:
缓存更新模块,被配置为当任一节点的缓存中,所述解析数据的存在时间超过设定的生存时间时,从所述端节点中重新获取所述标识对应的最新解析数据,并更新所述节点的缓存。The cache update module is configured to re-obtain the latest parsed data corresponding to the identifier from the end node when the existence time of the parsed data exceeds the set survival time in the cache of any node, and update all the parsed data. The cache of the above node.
可选地,所述基于数字对象的标识解析数据缓存装置,还包括:Optionally, the digital object-based identification parsing data caching device further includes:
缓存替换模块,被配置为在任一节点的缓存中,按照解析数据中的时间戳对所有解析数据进行排序;所述时间戳表示所述解析数据最近被访问的时间;当所述节点的缓存容量被占满后,用新加入缓存的解析数据替换当前的缓存中时间戳最早的解析数据。The cache replacement module is configured to sort all parsed data in the cache of any node according to the timestamp in the parsed data; the timestamp represents the time when the parsed data was recently accessed; when the cache capacity of the node After it is full, the parsed data with the earliest timestamp in the current cache is replaced with the parsed data newly added to the cache.
本申请提供的标识解析数据缓存方法,在端节点为数字对象分配标识时,分配的全网唯一的标识与其对应的状态信息绑定,并持久化到数据库中,作为原始数据,并将状态信息作为解析数据缓存在该端节点中,方便用户对该数字对象的标识请求解析时,直接提取缓存中的状态信息返回给用户,无需每次重复对该数字对象的标识进行解析,节省带宽资源,降低用户的访问延迟。进一步,本方法还在每一次返回解析数据后,将解析数据缓存在返回路径中离用户更近的下一跳节点中,缩短用户下一次请求标识解析的路由长度,进一步降低用户访问延迟,节约带宽资源。同时,本方法将数字对象标识的解析数据分散缓存在多个节点中,避免了设置固定缓存节点可能出现的节点负荷增大网络延迟变高,甚至造成网络拥堵的问题。The identity parsing data caching method provided by this application, when the end node assigns an identity to a digital object, the assigned unique identity of the entire network is bound to its corresponding status information, and is persisted to the database as the original data, and the status information is As the parsed data is cached in the end node, it is convenient for users to directly extract the status information in the cache and return it to the user when requesting parsing of the identity of the digital object. There is no need to repeat the parsing of the identity of the digital object each time, saving bandwidth resources. Reduce user access latency. Furthermore, this method also caches the parsed data in the next hop node closer to the user in the return path after each return of parsed data, shortening the route length of the user's next request for identification parsing, further reducing user access delay and saving money. Bandwidth resources. At the same time, this method disperses and caches the parsed data of digital object identification in multiple nodes, avoiding the problem of increased node load, higher network delay, and even network congestion that may occur when setting up fixed cache nodes.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. , for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative labor.
图1是本申请一实施例提出的基于数字对象的标识解析数据缓存方法的流程图;Figure 1 is a flow chart of a digital object-based identification parsing data caching method proposed by an embodiment of the present application;
图2是本申请一实施例提出的基于数字对象的标识解析数据缓存装置的示意图;Figure 2 is a schematic diagram of a digital object-based identification parsing data caching device proposed by an embodiment of the present application;
图3是本申请一实施例提出的一种标识解析数据的缓存方法的示意图;Figure 3 is a schematic diagram of a caching method for identification parsing data proposed by an embodiment of the present application;
图4是本申请一实施例提出的另一种标识解析数据的缓存方法的示意图;Figure 4 is a schematic diagram of another caching method for identification parsing data proposed by an embodiment of the present application;
图5是本申请一实施例提出的节点中缓存替换的流程示意图;Figure 5 is a schematic flowchart of cache replacement in a node proposed by an embodiment of the present application;
图6是本申请一实施例提出的标识编码结构的示意图。Figure 6 is a schematic diagram of the identification encoding structure proposed by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It will be understood that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic associated with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.
在本申请的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。In the various embodiments of this application, it should be understood that the size of the sequence numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be implemented in this application. The implementation of the examples does not constitute any limitations.
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the appended claims.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。It should be noted that, as long as there is no conflict, the embodiments and features in the embodiments of this application can be combined with each other.
下面将参考附图并结合实施例来详细说明本申请。The present application will be described in detail below with reference to the accompanying drawings and embodiments.
图1是本申请一实施例提出的基于数字对象的标识解析数据缓存方法的流程图。如图1所示,该方法包括:Figure 1 is a flow chart of a digital object-based identification parsing data caching method proposed by an embodiment of the present application. As shown in Figure 1, the method includes:
S11:设置树状层级结构的标识解析系统,包括端节点、域节点以及根节点;所述根节点与其下属的域节点直接通信;所述域节点与其上级的根节点直接通信,还与其下属的端节点直接通信;所述端节点对数字对象的标识进行管理,并与用户直接通信。S11: Set up an identity resolution system with a tree-like hierarchical structure, including end nodes, domain nodes, and root nodes; the root node communicates directly with its subordinate domain nodes; the domain node communicates directly with its superior root node, and also communicates directly with its subordinate domain nodes. The end nodes communicate directly; the end nodes manage the identification of digital objects and communicate directly with users.
本实施例中,标识解析的过程在树状层级结构的标识解析系统中进行,该系统包括多个根节点、多个域节点以及多个端节点。In this embodiment, the identity resolution process is performed in an identity resolution system with a tree-like hierarchical structure. The system includes multiple root nodes, multiple domain nodes, and multiple end nodes.
其中,根节点位于该树状层级结构的顶层,管理其下属的域节点,如:域节点的新增、接入、删除等,同时每个根节点也负责维护其下属域节点的节点信息,如:节点的前缀标识、节点的IP地址、节点的服务地址、节点的tcp端口、节点的http端口、节点的标识量、节点的解析量、节点的用户数目等。Among them, the root node is located at the top level of the tree-like hierarchical structure and manages its subordinate domain nodes, such as: adding, accessing, deleting domain nodes, etc. At the same time, each root node is also responsible for maintaining the node information of its subordinate domain nodes. For example: the prefix identifier of the node, the IP address of the node, the service address of the node, the tcp port of the node, the http port of the node, the identifier of the node, the resolution of the node, the number of users of the node, etc.
域节点位于该树状层级结构的中部,为根节点的下属节点,标识解析系统中存在多级域节点,下级的域节点被上级的域节点管理。例如,一级域节点管理其下属的二级域节点,二级域节点管理器下属的三级域节点......域节点被分配的前缀标识格式为“根节点标识.一级域节点标识.二级域节点标识......n级域节点标识”。例如,“university.pku”是前缀标识为“university”的根节点的一级域节点前缀标识,“university.pku.s1”是前缀标识为“university.pku”的一级域节点的二级域节点前缀标识。最底层的域节点负责管理其下属的端节点,包括:端节点的新增、端节点的接入、端节点的删除等;同时,最底层的域节点也负责维护其下属端节点的信息,包括:端节点的前缀标识、端节点的IP地址、端节点的服务地址、端节点的tcp端口、端节点的http端口、端节点的标识量、端节点的解析量、端节点的用户量等数据。The domain node is located in the middle of the tree-like hierarchical structure and is a subordinate node of the root node. There are multi-level domain nodes in the identity resolution system, and the lower-level domain nodes are managed by the upper-level domain nodes. For example, a first-level domain node manages its subordinate second-level domain nodes, and a second-level domain node manager subordinates a third-level domain node... The prefix identification format assigned to a domain node is "root node identification.First-level domain" Node identification. Second-level domain node identification...n-level domain node identification." For example, "university.pku" is the prefix ID of the first-level domain node of the root node with the prefix ID "university", and "university.pku.s1" is the second-level domain of the first-level domain node with the prefix ID "university.pku" Node prefix identifier. The lowest-level domain node is responsible for managing its subordinate end nodes, including: adding end nodes, accessing end nodes, deleting end nodes, etc.; at the same time, the lowest-level domain node is also responsible for maintaining the information of its subordinate end nodes. Including: the prefix identifier of the end node, the IP address of the end node, the service address of the end node, the tcp port of the end node, the http port of the end node, the identification amount of the end node, the resolution amount of the end node, the number of users of the end node, etc. data.
端节点位于该树状层级结构的底层,由其所属的上级的域节点分配前缀标识,其标识格式为“根节点标识.一级域节点标识.二级域节点标识......n级域节点标识.端节点标识”。端节点直接管理数字对象的标识,负责数字对象标识的分配、删除、解析、更新等。端节点需要将其管理的数字对象标识的相关数据,如数字对象标识的注册量、解析量等同步给其上级的域节点。The end node is located at the bottom of the tree-like hierarchical structure, and is assigned a prefix identification by the superior domain node to which it belongs. Its identification format is "root node identification. First-level domain node identification. Second-level domain node identification...n Level domain node identification. End node identification". The end node directly manages the identification of digital objects and is responsible for the allocation, deletion, parsing, and updating of digital object identifications. The end node needs to synchronize the relevant data of the digital object identifier it manages, such as the registration volume and resolution volume of the digital object identifier, to its superior domain node.
值得注意的是,一级域节点被其上级的根节点管理,根节点之间互相同步各自下属的一级域节点的IP地址和节点前缀标识,即所有根节点都具备该标识解析系统中所有的一级域节点的IP地址和节点前缀标识信息。在该树状层级结构中,每个域节点只由一个根节点或上级的域节点进行管理,每个端节点只由一个域节点管理。It is worth noting that the first-level domain nodes are managed by their superior root nodes. The root nodes synchronize with each other the IP addresses and node prefix identifiers of their subordinate first-level domain nodes. That is, all root nodes have all the identifiers in the resolution system. The IP address and node prefix identification information of the first-level domain node. In this tree-like hierarchical structure, each domain node is managed by only one root node or superior domain node, and each end node is managed by only one domain node.
本实施例中,通过数字对象架构将不同信息系统的数据资源统一抽象建模为数字对象。例如,将不同格式的视频文件、音频文件和文本文件抽象建模为统一格式的数字对象,转化后的数字对象都由标识、状态信息以及数据实体组成。在用户对数字对象的数据实体进行访问时,需首先通过数字对象的标识进行解析获得数字对象的解析结果(即该标识对应的状态信息),状态信息包括:数字对象的存储位置、访问方式、所有者、时间戳以及访问相关的信息。用户获得解析数据后,即可根据数字对象的存储位置与访问方式,对数字对象的实体数据进行访问。In this embodiment, the data resources of different information systems are unified and abstractly modeled as digital objects through the digital object architecture. For example, video files, audio files, and text files in different formats are abstractly modeled into digital objects in a unified format. The converted digital objects are composed of identification, status information, and data entities. When a user accesses the data entity of a digital object, he or she must first parse the digital object's identifier to obtain the parsing result of the digital object (that is, the status information corresponding to the identifier). The status information includes: the storage location, access method, Owner, timestamp, and access related information. After the user obtains the parsed data, he or she can access the physical data of the digital object based on the storage location and access method of the digital object.
S12:根据提供者上传的数据资源的状态信息,在端节点中为所述数据资源分配全网唯一的标识,作为解析数据的对应信息;S12: According to the status information of the data resource uploaded by the provider, allocate a network-wide unique identifier to the data resource in the end node as the corresponding information for parsing the data;
所述解析数据为用户对所述标识进行解析得到的所述状态信息;所述状态信息包括:所述数字对象的本体数据的存储位置、访问方式、所有者、时间戳以及访问相关的信息;所述标识为所述提供者自定的标识或随机生成的标识;The parsed data is the status information obtained by the user parsing the identification; the status information includes: the storage location, access method, owner, timestamp and access-related information of the ontology data of the digital object; The identification is a self-defined identification by the provider or a randomly generated identification;
S121:判断所述状态信息中是否包含用户自定标识,若不包含,则随机生成一个标识,并判断所述标识是否已被其他数字对象使用;S121: Determine whether the status information contains a user-defined identifier. If not, randomly generate an identifier, and determine whether the identifier has been used by other digital objects;
S122:若所述标识已被其他数字对象使用,则重新随机生成一个标识;S122: If the identification has been used by other digital objects, regenerate an identification randomly;
S123:若所述标识未被其他数字对象使用,则将所述标识分配给所述数字对象;S123: If the identifier is not used by other digital objects, assign the identifier to the digital object;
S124:若所述状态信息中包含用户自定标识,判断所述用户自定标识是否已被其他数字对象使用,若所述用户自定标识已被其他数字对象使用,则向用户分配随机生成的标识;S124: If the status information contains a user-defined identifier, determine whether the user-defined identifier has been used by other digital objects. If the user-defined identifier has been used by other digital objects, allocate a randomly generated ID to the user. logo;
S125:若所述用户自定标识未被其他数字对象使用,则将所述用户自定标识作为所述数字对象的标识。S125: If the user-defined identifier is not used by other digital objects, use the user-defined identifier as the identifier of the digital object.
本实施例中,数字对象提供者可通过客户端上传不同类型数据资源的状态信息,由系统对用户进行身份验证后,为该数据资源生成并分配全网唯一的标识,从而获得完整的数字对象。在分配标识后,将标识与状态信息对应,作为解析数据缓存在管理标识的端节点中,方便用户对该数字对象标识请求解析,无需每次都重新解析标识,降低用户的访问延迟,节约带宽资源。In this embodiment, the digital object provider can upload status information of different types of data resources through the client. After the system authenticates the user, it generates and assigns a network-wide unique identifier to the data resource, thereby obtaining a complete digital object. . After the identifier is assigned, the identifier is corresponding to the status information and cached as parsed data in the end node that manages the identifier. This facilitates users to request parsing of the digital object identifier without re-parsing the identifier every time, reducing user access delays and saving bandwidth. resource.
具体地,端节点为数字对象的状态信息分配标识的步骤如下:Specifically, the steps for end nodes to assign identifiers to the status information of digital objects are as follows:
首先,端节点会对用户进行身份验证,只有身份验证通过后才会进行后续步骤;First, the end node will authenticate the user, and only after the authentication is passed, subsequent steps will be performed;
当身份验证成功后,用户在客户端输入待分配标识的数据资源的状态信息,提交给标识解析系统;When the identity authentication is successful, the user enters the status information of the data resource to be assigned an identity on the client and submits it to the identity resolution system;
标识管理模块判断用户提交的状态信息是否包含用户自定标识。本实施例中,数字对象的标识可以是用户自定标识,也可以是系统随机生成的标识。The identity management module determines whether the status information submitted by the user contains a user-defined identity. In this embodiment, the identifier of the digital object may be a user-defined identifier or an identifier randomly generated by the system.
当状态信息中包含用户自定标识时,进一步判断用户自定标识是否已被其他数字对象使用,如果该标识已被其他数字对象使用则由标识管理模块随机生成全网唯一的标识分配给该数据资源;When the status information contains a user-defined identifier, it is further determined whether the user-defined identifier has been used by other digital objects. If the identifier has been used by other digital objects, the identifier management module will randomly generate a unique identifier for the entire network and assign it to the data. resource;
如果该状态信息中不包含用户自定标识,则由标识管理模块随机生成全网唯一的标识分配给该数据资源。同样地,标识管理模块随机生成的标识也需要判断是否已被其他数字对象使用,如果已被其他数字对象使用,则需要重新生成未被其他数字对象使用的标识,由此确保分配给数据资源的标识是全网唯一的。If the status information does not contain a user-defined identity, the identity management module will randomly generate a network-wide unique identity and assign it to the data resource. Similarly, the identity randomly generated by the identity management module also needs to be judged whether it has been used by other digital objects. If it has been used by other digital objects, the identity that has not been used by other digital objects needs to be regenerated, thereby ensuring that the identity assigned to the data resource is The identifier is unique across the entire network.
S13:将所述标识作为所述状态信息中的字段,与所述状态信息绑定生成键值对,并持久化存储至数据库中。S13: Use the identifier as a field in the status information, bind it to the status information to generate a key-value pair, and store it persistently in the database.
本实施例中,生成全网唯一的标识后,将该标识作为用户上传的数据资源的状态信息的一个字段,与状态信息绑定形成键值对,作为标识解析的原始数据,并持久化形存储至数据库中。在后续用户对该标识请求解析,或对该标识的解析数据进行缓存时,数据库中存储的该键值对数据将作为缓存解析数据的基础。In this embodiment, after generating a unique identifier for the entire network, the identifier is used as a field in the status information of the data resource uploaded by the user, and is bound to the status information to form a key-value pair, which is used as the original data for identification parsing and persisted in the form. Store in database. When a subsequent user requests parsing of the identity, or caches the parsing data of the identity, the key-value pair data stored in the database will serve as the basis for caching the parsing data.
S14:将所述状态信息作为与所述标识对应的解析数据,缓存在所述端节点中;当用户第一次发送所述标识的解析请求时,将所述解析请求路由至所述端节点处命中缓存,从所述命中缓存的节点的缓存中获取所述解析数据,并按照所述解析请求的路径返回给用户;将所述解析数据缓存在返回路径上当前命中缓存的节点的下一跳节点中;S14: Use the status information as parsing data corresponding to the identification and cache it in the end node; when the user sends a parsing request for the identification for the first time, route the parsing request to the end node. Process the cache, obtain the parsed data from the cache of the node that hits the cache, and return it to the user according to the path of the parsing request; cache the parsed data on the return path next to the node that currently hits the cache. in the hop node;
S15:当用户再次发送所述标识的解析请求时,将所述解析请求路由至所述下一跳节点处命中缓存,从所述命中缓存的节点向用户返回所述解析数据,并将所述解析数据缓存到所述返回路径上当前命中缓存的节点的下一跳节点中;S15: When the user sends the identified parsing request again, the parsing request is routed to the next hop node to hit the cache, the parsing data is returned to the user from the node that hits the cache, and the parsing data is returned to the user. The parsed data is cached in the next hop node of the node currently hitting the cache on the return path;
S16:根据用户每一次发送的对所述标识的解析请求,在所述返回路径上的节点中依次缓存所述解析数据,直到离用户最近的端节点中缓存有所述解析数据。S16: According to each parsing request for the identifier sent by the user, cache the parsed data sequentially in the nodes on the return path until the parsed data is cached in the end node closest to the user.
本实施例中,当用户再次发起对该数字对象的标识解析请求时,系统将该解析请求路由至该缓存了其对应的解析数据的节点,直接从该节点的缓存中查找对应的状态信息,并按照解析请求的路径返回给用户,无需再次对该标识进行解析,以降低用户的访问延迟,节省带宽资源。进一步地,还可以根据用户对该标识请求解析的次数,逐步将该解析数据缓存在路径中离用户更近的节点中,进一步缩短解析请求和解析数据的路由长度,降低用户访问延迟。In this embodiment, when the user initiates an identification parsing request for the digital object again, the system routes the parsing request to the node that has cached its corresponding parsing data, and directly searches for the corresponding status information from the cache of the node. And return it to the user according to the path of the parsing request, without parsing the identifier again, so as to reduce the user's access delay and save bandwidth resources. Furthermore, based on the number of times the user requests parsing of the identifier, the parsed data can be gradually cached in nodes closer to the user in the path, further shortening the routing length of parsing requests and parsed data, and reducing user access delays.
图3是本申请一实施例提出的一种标识解析数据的缓存方法的示意图。如图3所示,在前缀标识为“pku.s2.d2”的端节点中缓存有解析数据的情况下,用户发送前缀为“pku.s2.d2”的数字对象的标识解析请求,系统中解析数据的缓存过程如下:Figure 3 is a schematic diagram of a caching method for identification parsing data proposed by an embodiment of the present application. As shown in Figure 3, when there is parsing data cached in the end node with the prefix identification "pku.s2.d2", the user sends an identification parsing request for the digital object with the prefix "pku.s2.d2", and the system The caching process of parsing data is as follows:
(1)用户通过客户端向前缀标识为“pku.s1.d1”的端节点发送前缀为“pku.s2.d2”的标识解析请求;(1) The user sends an identifier resolution request with the prefix "pku.s2.d2" through the client to the end node with the prefix identifier "pku.s1.d1";
(2)前缀标识为“pku.s1.d1”的端节点并没有存储前缀为“pku.s2.d2”的标识信息并且缓存无法命中,将请求转发至前缀标识为“pku.s1”的上级域节点;(2) The end node with the prefix identification "pku.s1.d1" does not store the identification information with the prefix "pku.s2.d2" and the cache cannot be hit. The request is forwarded to the superior with the prefix identification "pku.s1" domain node;
(3)前缀标识为“pku.s1”的域节点并没有存储前缀为“pku.s2.d2”的标识信息并且缓存无法命中,将请求转发至前缀标识为“pku”的上级根节点;(3) The domain node with the prefix identification "pku.s1" does not store the identification information with the prefix "pku.s2.d2" and the cache cannot be hit. The request is forwarded to the superior root node with the prefix identification "pku";
(4)前缀标识为“pku”的根节点并没有存储前缀为“pku.s2.d2”的标识信息并且缓存无法命中,将请求转发至其前缀标识为“pku.s2”的下级域节点;(4) The root node with the prefix identifier "pku" does not store the identification information with the prefix "pku.s2.d2" and the cache cannot be hit. The request is forwarded to the lower-level domain node whose prefix identifier is "pku.s2";
(5)前缀标识为“pku.s2”的域节点没有存储前缀为“pku.s2.d2”的标识信息并且缓存无法命中,将请求转发至其前缀为“pku.s2.d2”的下级端节点;(5) The domain node with the prefix identification "pku.s2" does not store the identification information with the prefix "pku.s2.d2" and the cache cannot be hit. The request is forwarded to its lower-level end with the prefix "pku.s2.d2" node;
(6)前缀标识为“pku.s2.d2”的端节点缓存命中,将解析数据返回给前缀标识为“pku.s2”的域节点;(6) The end node cache with the prefix identification "pku.s2.d2" hits, and the parsed data is returned to the domain node with the prefix identification "pku.s2";
(7)按照LCD缓存放置策略,前缀标识为“pku.s2”的域节点将解析数据进行缓存,然后将解析数据返回给根节点“pku”;(7) According to the LCD cache placement strategy, the domain node with the prefix identification "pku.s2" will cache the parsed data, and then return the parsed data to the root node "pku";
(8)根节点“pku”将解析数据返回给前缀标识为“pku.s1”的域节点;(8) The root node "pku" returns the parsed data to the domain node with the prefix identifier "pku.s1";
(9)前缀标识为“pku.s1”的域节点将解析数据返回给前缀标识为“pku.s1.d1”的端节点;(9) The domain node with the prefix identifier "pku.s1" returns the parsed data to the end node with the prefix identifier "pku.s1.d1";
(10)前缀标识为“pku.s1.d1”的端节点将解析数据返回给客户端;(10) The end node with the prefix identification "pku.s1.d1" returns the parsed data to the client;
(11)当客户端再次向前缀标识为“pku.s1.d1”的端节点发出相同的解析请求时,会在前缀标识为“pku.s2”的域节点处命中缓存,该域节点直接将解析数据原路返回至客户端,同时返回路径上的下一跳节点(即根节点“pku”)将对应数据进行缓存,随着请求解析次数的增加,解析请求的路径上所有节点都会缓存相同的数据。(11) When the client sends the same parsing request again to the end node with the prefix identifier "pku.s1.d1", the cache will be hit at the domain node with the prefix identifier "pku.s2", and the domain node will directly The parsed data is returned to the client via the original path, and the next hop node on the return path (i.e., the root node "pku") caches the corresponding data. As the number of parsing requests increases, all nodes on the path to parse the request will cache the same data. The data.
本实施例中,将解析数据从管理数字对象标识的端节点开始,每一次都在缓存命中返回解析数据的下一跳节点进行缓存,直到客户端直接通信的端节点中缓存了解析数据。通过这种方式使缓存命中的节点离客户端更近,减少数据的路由长度,进一步降低用户访问的延迟。In this embodiment, the parsed data starts from the end node that manages the digital object identification, and is cached at the next hop node that returns the parsed data each time the cache hits it, until the parsed data is cached in the end node that the client directly communicates with. In this way, the cache hit node is closer to the client, reducing the routing length of the data and further reducing the delay of user access.
本实施例中,如图3所示,当用户再次发起对该数字对象的标识解析请求时,除了从管理标识的节点中查找对应的状态信息返回之外,还要将该数字对象标识的解系信息缓存在返回路径的下一跳节点中。In this embodiment, as shown in Figure 3, when the user initiates an identification resolution request for the digital object again, in addition to searching for the corresponding status information from the node that manages the identification and returning it, the solution to the identification of the digital object must also be returned. The system information is cached in the next hop node of the return path.
可选地,所述基于数字对象的标识解析数据缓存方法还包括:Optionally, the digital object-based identification parsing data caching method also includes:
S17:当所述解析数据缓存到当前命中缓存的节点的下一跳节点中时,删除所述当前命中缓存的节点的缓存中的所述解析数据。S17: When the parsed data is cached in the next-hop node of the node that currently hits the cache, delete the parsed data in the cache of the node that currently hits the cache.
本实施例中,在解析数据的返回路径中进行逐步缓存时,还可以在每一次缓存解析数据到离用户更近的节点中时,删除之前的节点中缓存的该解析数据,这种方案只在系统中保留一个离用户最近的节点进行解析数据的缓存,进一步减少节点中的冗余数据,节约带宽资源。In this embodiment, when gradually caching the parsed data in the return path, you can also delete the parsed data cached in the previous node each time the parsed data is cached in a node closer to the user. This solution only Reserve a node closest to the user in the system to cache the parsed data, further reducing redundant data in the node and saving bandwidth resources.
图4是本申请一实施例提出的另一种标识解析数据的缓存方法的示意图。如图4所示,在前缀标识为“pku.s2.d2”的端节点中缓存有解析数据的情况下,用户发送前缀为“pku.s2.d2”的数字对象的标识解析请求,系统中解析数据的缓存过程如下:Figure 4 is a schematic diagram of another caching method of identification parsing data proposed by an embodiment of the present application. As shown in Figure 4, when there is parsing data cached in the end node with the prefix identification "pku.s2.d2", the user sends an identification parsing request for the digital object with the prefix "pku.s2.d2", and the system The caching process of parsing data is as follows:
(1)客户端向前缀标识为“pku.s1.d1”的端节点发送前缀为“pku.s2.d2”的标识解析请求;(1) The client sends an identifier resolution request with the prefix "pku.s2.d2" to the end node with the prefix identifier "pku.s1.d1";
(2)前缀标识为“pku.s1.d1”的端节点并没有存储前缀为“pku.s2.d2”的标识信息并且缓存无法命中,将请求转发至前缀标识为“pku.s1”的上级域节点;(2) The end node with the prefix identification "pku.s1.d1" does not store the identification information with the prefix "pku.s2.d2" and the cache cannot be hit. The request is forwarded to the superior with the prefix identification "pku.s1" domain node;
(3)前缀标识为“pku.s1”的域节点并没有存储前缀为“pku.s2.d2”的标识信息并且缓存无法命中,将请求转发至前缀标识为“pku”的上级根节点;(3) The domain node with the prefix identification "pku.s1" does not store the identification information with the prefix "pku.s2.d2" and the cache cannot be hit. The request is forwarded to the superior root node with the prefix identification "pku";
(4)前缀标识为“pku”的根节点并没有存储前缀为“pku.s2.d2”的标识信息并且缓存无法命中,将请求转发至其前缀标识为“pku.s2”的下级域节点;(4) The root node with the prefix identifier "pku" does not store the identification information with the prefix "pku.s2.d2" and the cache cannot be hit. The request is forwarded to the lower-level domain node whose prefix identifier is "pku.s2";
(5)前缀标识为“pku.s2”的域节点没有存储前缀为“pku.s2.d2”的标识信息并且缓存无法命中,将请求转发至其前缀为“pku.s2.d2”的下级端节点;(5) The domain node with the prefix identification "pku.s2" does not store the identification information with the prefix "pku.s2.d2" and the cache cannot be hit. The request is forwarded to its lower-level end with the prefix "pku.s2.d2" node;
(6)前缀标识为“pku.s2.d2”的端节点缓存命中,将解析数据返回给前缀标识为“pku.s2”的域节点并按照MCD缓存放置策略删除本节点的缓存内容;(6) The end node cache with the prefix identification "pku.s2.d2" hits the cache, returns the parsed data to the domain node with the prefix identification "pku.s2" and deletes the cache content of this node according to the MCD cache placement policy;
(7)按照MCD缓存放置策略,前缀标识为“pku.s2”的域节点将解析数据进行缓存,然后将解析数据返回给根节点“pku”;(7) According to the MCD cache placement strategy, the domain node with the prefix identification "pku.s2" will cache the parsed data, and then return the parsed data to the root node "pku";
(8)根节点“pku”将解析数据返回给前缀标识为“pku.s1”的域节点;(8) The root node "pku" returns the parsed data to the domain node with the prefix identifier "pku.s1";
(9)前缀标识为“pku.s1”的域节点将解析数据返回给前缀标识为“pku.s1.d1”的端节点;(9) The domain node with the prefix identifier "pku.s1" returns the parsed data to the end node with the prefix identifier "pku.s1.d1";
(10)前缀标识为“pku.s1.d1”的端节点将解析数据返回给客户端;(10) The end node with the prefix identification "pku.s1.d1" returns the parsed data to the client;
当客户端再次向前缀标识为“pku.s1.d1”的端节点发出相同的解析请求时,会在前缀标识为“pku.s2”的域节点处命中缓存,该域节点直接将解析数据原路返回至客户端,同时返回路径上的下一跳节点(即根节点“pku”)将解析数据进行缓存,而该域节点将删除本地缓存的解析数据。随着请求解析次数的增加,解析请求的路径上只有第一个端节点(前缀标识为“pku.s1.d1”的端节点)会缓存该解析数据数据。When the client sends the same parsing request again to the end node with the prefix identified as "pku.s1.d1", the cache will be hit at the domain node with the prefix identified as "pku.s2", and the domain node will directly transfer the original parsed data. The path is returned to the client. At the same time, the next hop node on the return path (i.e., the root node "pku") will cache the parsing data, and the domain node will delete the locally cached parsing data. As the number of parsing requests increases, only the first end node (the end node with the prefix identifier "pku.s1.d1") on the path of the parsing request will cache the parsed data.
可选地,所述基于数字对象的标识解析数据缓存方法还包括:Optionally, the digital object-based identification parsing data caching method also includes:
S18:当任一节点的缓存中,所述解析数据的存在时间超过设定的生存时间时,从所述端节点中重新获取所述标识对应的最新解析数据,并更新所述节点的缓存。S18: When the existence time of the parsed data in the cache of any node exceeds the set survival time, re-obtain the latest parsed data corresponding to the identifier from the end node, and update the cache of the node.
本实施例中,每个节点中缓存的解析数据都具有生存时间,当解析数据缓存的时间超过生存时间之后,需要沿着解析请求的路径路由到管理该标识的端节点,从该端节点处获取最新的解析数据进行更新。In this embodiment, the parsing data cached in each node has a survival time. When the parsing data cache time exceeds the survival time, the parsing request needs to be routed along the path of the parsing request to the end node that manages the identity. From the end node Get the latest parsed data for updates.
可选地,所述基于数字对象的标识解析数据缓存方法还包括:Optionally, the digital object-based identification parsing data caching method also includes:
S19:在任一节点的缓存中,按照解析数据中的时间戳对所有解析数据进行排序;所述时间戳表示所述解析数据最近被访问的时间;S19: In the cache of any node, sort all parsed data according to the timestamp in the parsed data; the timestamp represents the time when the parsed data was recently accessed;
当所述节点的缓存容量被占满后,用新加入缓存的解析数据替换当前的缓存中时间戳最早的解析数据。When the cache capacity of the node is full, the parsed data with the earliest time stamp in the current cache is replaced with the parsed data newly added to the cache.
图5是本申请一实施例提出的节点中缓存替换的流程示意图。如图5所示,可选地,本实施例中采用最近最少使用(least recently used,LRU)的缓存替换策略,来决定单个节点内部所缓存的数据的替换,其具体执行流程如下:Figure 5 is a schematic flowchart of cache replacement in a node proposed by an embodiment of the present application. As shown in Figure 5, optionally, in this embodiment, the least recently used (LRU) cache replacement strategy is used to determine the replacement of data cached within a single node. The specific execution process is as follows:
(1)初始情况下缓存器是空的,此时只需要逐个入队即可,即按照先进先出的原则一次将元素1,元素2,元素3,元素4,元素5加入队列;(1) In the initial case, the buffer is empty. At this time, you only need to enter the queue one by one, that is, add element 1, element 2, element 3, element 4, and element 5 to the queue at a time according to the first-in, first-out principle;
(2)当元素5入队后,此时缓存器的容量达到最大值;(2) When element 5 is added to the queue, the capacity of the buffer reaches the maximum value;
(3)当从缓存器中访问元素1时,元素1变成了最近被访问的元素,因此更新元素1的时间戳,将其移至队首位置;(3) When element 1 is accessed from the cache, element 1 becomes the most recently accessed element, so the timestamp of element 1 is updated and moved to the head of the queue;
(4)当需要继续向缓存器中加入元素6时,发现缓存器已经达到最大容量,此时根据LRU算法,处于队尾位置的元素2最近最少被使用,因此需要将元素2淘汰,元素6加入到队首位置;(4) When it is necessary to continue adding element 6 to the buffer, it is found that the buffer has reached the maximum capacity. At this time, according to the LRU algorithm, element 2 at the end of the queue has been used least recently, so element 2 needs to be eliminated, and element 6 needs to be eliminated. Join the team leader position;
(5)当从缓存器中访问元素4时,元素4变成了最近被访问的元素,因此更新元素4的时间戳,将元素4移至队首位置。(5) When element 4 is accessed from the cache, element 4 becomes the most recently accessed element, so the timestamp of element 4 is updated and element 4 is moved to the head of the queue.
可选地,所述基于数字对象的标识解析数据缓存方法还包括:Optionally, the digital object-based identification parsing data caching method also includes:
S110:为所述数据资源生成分级结构的标识,用于区分不同的托管机构以及数据资源,方便管理;所述标识包括:标识前缀、标识后缀及分隔符;S110: Generate hierarchical structure identifiers for the data resources to distinguish different hosting institutions and data resources to facilitate management; the identifiers include: identifier prefix, identifier suffix and separator;
S111:设置用户自定义或随机生成的UTF-8编码,作为所述标识前缀和所述标识后缀的编码格式,用于兼容不同标识体系实现标识复用;S111: Set the user-defined or randomly generated UTF-8 encoding as the encoding format of the identification prefix and the identification suffix to be compatible with different identification systems and realize identification reuse;
S112:设置用户自定义或系统默认分隔符,用于兼容用户个性化需求。S112: Set user-defined or system default separators to be compatible with user personalized needs.
本实施例中,数字对象标识采用分级结构的编码方式,其结构由标识前缀、标识后缀以及标识前后缀分隔符组成。其中,标识前缀用于唯一标识托管该标识服务的机构主体,标识后缀用于唯一标识该前缀下的任意数据,分隔符用于分割标识前缀和标识后缀。In this embodiment, the digital object identifier adopts a hierarchical structure encoding method, and its structure consists of an identifier prefix, an identifier suffix, and an identifier prefix and suffix separator. Among them, the identification prefix is used to uniquely identify the institutional subject hosting the identification service, the identification suffix is used to uniquely identify any data under the prefix, and the delimiter is used to separate the identification prefix and identification suffix.
标识前缀定义标识编码的命名空间,保证数据标识全局的唯一性,标识前缀在保证全网唯一的前提下,使用UTF-8编码进行自由定义,不对标识前缀的结构和语义作限制;The identity prefix defines the namespace of the identity encoding to ensure the global uniqueness of the data identity. The identity prefix can be freely defined using UTF-8 encoding without any restrictions on the structure and semantics of the identity prefix on the premise of ensuring uniqueness in the entire network;
同样地,标识后缀在保证全网唯一的前提下,使用UTF-8编码进行自由定义;Similarly, the identification suffix can be freely defined using UTF-8 encoding on the premise of ensuring uniqueness across the entire network;
标识分隔符默认为“/”,也可以根据需求自定义其他分隔符,但需要确保标识前缀和标识后缀中不会出现相同符号。The default identifier separator is "/". You can also customize other separators according to your needs, but you need to ensure that the same symbols do not appear in the identifier prefix and identifier suffix.
图6为本申请一实施例提出的标识编码结构的示意图。如图6所示,可以根据上述标识的编码方式,定义标识前缀为“SLW.OS.DOA.dev”,定义标识后缀为“do.a67920dd-0c25-4dbc-b164-a45711e7ef78”,使用默认分隔符“/”作为标识分隔符。Figure 6 is a schematic diagram of the identification encoding structure proposed by an embodiment of the present application. As shown in Figure 6, according to the encoding method of the above identification, the identification prefix can be defined as "SLW.OS.DOA.dev", the identification suffix can be defined as "do.a67920dd-0c25-4dbc-b164-a45711e7ef78", and the default delimiter can be used "/" serves as the identifier separator.
本实施例中,数字对象标识的编码方式兼容多种编码规则,可以直接将已有标识体系分配的标识作为本系统标识后缀进行复用,也可以通过标识编码映射表将本系统分配的标识映射到多个其他标识系统分配的标识,实现一对多的多标识兼容。In this embodiment, the encoding method of the digital object identifier is compatible with a variety of encoding rules. The identifier assigned by the existing identifier system can be directly reused as the identifier suffix of this system, or the identifier assigned by this system can be mapped through the identifier encoding mapping table. To the identifiers assigned by multiple other identification systems, achieving one-to-many multi-identity compatibility.
图2是本申请一实施例提出的基于数字对象的标识解析数据缓存装置200的示意图。如图2所示,该装置包括:FIG. 2 is a schematic diagram of a digital object-based identification parsing data caching device 200 proposed by an embodiment of the present application. As shown in Figure 2, the device includes:
解析路由构建模块201,被配置为设置树状层级结构的标识解析系统,包括端节点、域节点以及根节点;所述根节点与其下属的域节点直接通信;所述域节点与其上级的根节点直接通信,还与其下属的端节点直接通信;所述端节点对数字对象的标识进行管理,并与用户直接通信;The parsing routing building module 201 is configured to set up an identity parsing system with a tree-like hierarchical structure, including end nodes, domain nodes, and root nodes; the root node communicates directly with its subordinate domain nodes; the domain node communicates with its superior root node Direct communication, and also direct communication with its subordinate end nodes; the end nodes manage the identification of digital objects and communicate directly with users;
标识分配模块202,被配置为根据提供者上传的数据资源的状态信息,在端节点中为所述数据资源分配全网唯一的标识,作为解析数据的对应信息;The identification allocation module 202 is configured to allocate a network-wide unique identification to the data resource in the end node according to the status information of the data resource uploaded by the provider, as the corresponding information for parsing the data;
所述解析数据为用户对所述标识进行解析得到的所述状态信息;所述状态信息包括:所述数字对象的本体数据的存储位置、访问方式、所有者、时间戳以及访问相关的信息;所述标识为所述提供者自定的标识或随机生成的标识;The parsed data is the status information obtained by the user parsing the identification; the status information includes: the storage location, access method, owner, timestamp and access-related information of the ontology data of the digital object; The identification is a self-defined identification by the provider or a randomly generated identification;
持久化模块203,被配置为将所述标识作为所述状态信息中的字段,与所述状态信息绑定生成键值对,并持久化存储至数据库中;The persistence module 203 is configured to use the identifier as a field in the state information, bind it to the state information to generate a key-value pair, and store it persistently in the database;
缓存模块204,被配置为将所述状态信息作为与所述标识对应的解析数据,缓存在所述端节点中;The caching module 204 is configured to cache the status information in the end node as parsed data corresponding to the identification;
当用户第一次发送所述标识的解析请求时,将所述解析请求路由至所述端节点处命中缓存,从所述命中缓存的节点的缓存中获取所述解析数据,并按照所述解析请求的路径返回给用户;将所述解析数据缓存在返回路径上当前命中缓存的节点的下一跳节点中;When the user sends a parsing request for the identification for the first time, the parsing request is routed to the end node to hit the cache, the parsing data is obtained from the cache of the node that hits the cache, and the parsing is performed according to the The requested path is returned to the user; the parsed data is cached in the next hop node of the node currently hitting the cache on the return path;
当用户再次发送所述标识的解析请求时,将所述解析请求路由至所述下一跳节点处命中缓存,从所述命中缓存的节点向用户返回所述解析数据,并将所述解析数据缓存到所述返回路径上当前命中缓存的节点的下一跳节点中;When the user sends the identified parsing request again, the parsing request is routed to the next hop node to hit the cache, the parsed data is returned to the user from the node that hits the cache, and the parsed data is Cache to the next hop node of the node currently hitting the cache on the return path;
根据用户每一次发送的对所述标识的解析请求,在所述返回路径上的节点中依次缓存所述解析数据,直到离用户最近的端节点中缓存有所述解析数据。According to each parsing request for the identifier sent by the user, the parsed data is sequentially cached in the nodes on the return path until the parsed data is cached in the end node closest to the user.
可选地,所述缓存模块204,还被配置为当所述解析数据缓存到当前命中缓存的节点的下一跳节点中时,删除所述当前命中缓存的节点的缓存中的所述解析数据。Optionally, the cache module 204 is also configured to delete the parsed data in the cache of the node that currently hits the cache when the parsed data is cached in the next hop node of the node that currently hits the cache. .
可选地,所述基于数字对象的标识解析数据缓存装置200,还包括:Optionally, the digital object-based identification parsing data caching device 200 also includes:
缓存更新模块,被配置为当任一节点的缓存中,所述解析数据的存在时间超过设定的生存时间时,从所述端节点中重新获取所述标识对应的最新解析数据,并更新所述节点的缓存。The cache update module is configured to re-obtain the latest parsed data corresponding to the identifier from the end node when the existence time of the parsed data exceeds the set survival time in the cache of any node, and update all the parsed data. The cache of the above node.
可选地,所述基于数字对象的标识解析数据缓存装置200,还包括:Optionally, the digital object-based identification parsing data caching device 200 also includes:
缓存替换模块,被配置为在任一节点的缓存中,按照解析数据中的时间戳对所有解析数据进行排序;所述时间戳表示所述解析数据最近被访问的时间;当所述节点的缓存容量被占满后,用新加入缓存的解析数据替换当前的缓存中时间戳最早的解析数据。The cache replacement module is configured to sort all parsed data in the cache of any node according to the timestamp in the parsed data; the timestamp represents the time when the parsed data was recently accessed; when the cache capacity of the node After it is full, the parsed data with the earliest timestamp in the current cache is replaced with the parsed data newly added to the cache.
可选地,所述标识分配模块202还被配置为,判断所述状态信息中是否包含用户自定标识,若不包含,则随机生成一个标识,并判断所述标识是否已被其他数字对象使用;Optionally, the identification allocation module 202 is also configured to determine whether the status information contains a user-defined identification, and if not, randomly generate an identification, and determine whether the identification has been used by other digital objects. ;
若所述标识已被其他数字对象使用,则重新随机生成一个标识;If the identification has been used by other digital objects, a new identification will be randomly generated;
若所述标识未被其他数字对象使用,则将所述标识分配给所述数字对象;If the identifier is not used by other digital objects, assign the identifier to the digital object;
若所述状态信息中包含用户自定标识,判断所述用户自定标识是否已被其他数字对象使用,若所述用户自定标识已被其他数字对象使用,则向用户分配随机生成的标识;If the status information contains a user-defined identifier, determine whether the user-defined identifier has been used by other digital objects, and if the user-defined identifier has been used by other digital objects, assign a randomly generated identifier to the user;
若所述用户自定标识未被其他数字对象使用,则将所述用户自定标识作为所述数字对象的标识。If the user-defined identifier is not used by other digital objects, the user-defined identifier is used as the identifier of the digital object.
可选地,所述标识分配模块202还被配置为,为所述数据资源生成分级结构的标识,用于区分不同的托管机构以及数据资源,方便管理;所述标识包括:标识前缀、标识后缀及分隔符;Optionally, the identification allocation module 202 is also configured to generate an identification of a hierarchical structure for the data resource to distinguish different hosting institutions and data resources to facilitate management; the identification includes: an identification prefix and an identification suffix. and delimiter;
设置用户自定义或随机生成的UTF-8编码,作为所述标识前缀和所述标识后缀的编码格式,用于兼容不同标识体系实现标识复用;Set a user-defined or randomly generated UTF-8 code as the encoding format of the logo prefix and the logo suffix to be compatible with different logo systems to achieve logo reuse;
设置用户自定义或系统默认分隔符,用于兼容用户个性化需求。Set user-defined or system default separators to be compatible with users' personalized needs.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the present application. within the scope of protection.
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和部件并不一定是本申请所必须的。For the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, some steps Other orders or simultaneous steps are possible. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and components involved are not necessarily necessary for this application.
本领域内的技术人员应明白,本申请实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine such that the instructions are executed by the processor of the computer or other programmable data processing terminal device. Means are generated for implementing the functions specified in the process or processes of the flowchart diagrams and/or the block or blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing terminal equipment to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the The instruction means implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, so that a series of operating steps are performed on the computer or other programmable terminal equipment to produce computer-implemented processing, thereby causing the computer or other programmable terminal equipment to perform a computer-implemented process. The instructions executed on provide steps for implementing the functions specified in a process or processes of the flow diagrams and/or a block or blocks of the block diagrams.
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。Although preferred embodiments of the embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once the basic inventive concepts are understood. Therefore, the appended claims are intended to be construed to include the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or any such actual relationship or sequence between operations. Furthermore, the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or end device that includes a list of elements includes not only those elements, but also elements not expressly listed or other elements inherent to such process, method, article or terminal equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or terminal device including the stated element.
以上对本申请所提供的基于数字对象的标识解析数据缓存方法与装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction to the identification parsing data caching method and device based on digital objects provided by this application. Specific examples are used in this article to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understanding. The method of this application and its core idea; at the same time, for those of ordinary skill in the field, there will be changes in the specific implementation and application scope based on the idea of this application. In summary, the contents of this specification should not understood as a limitation on this application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310542724.8A CN116634017B (en) | 2023-05-15 | 2023-05-15 | Identification analysis data caching method and device based on digital object |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310542724.8A CN116634017B (en) | 2023-05-15 | 2023-05-15 | Identification analysis data caching method and device based on digital object |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116634017A CN116634017A (en) | 2023-08-22 |
CN116634017B true CN116634017B (en) | 2024-02-06 |
Family
ID=87612670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310542724.8A Active CN116634017B (en) | 2023-05-15 | 2023-05-15 | Identification analysis data caching method and device based on digital object |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116634017B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117082106B (en) * | 2023-10-16 | 2024-01-16 | 北京大学 | Multi-level data networking methods, systems, devices and equipment for government cloud environments |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102650989A (en) * | 2011-02-23 | 2012-08-29 | 上海博路信息技术有限公司 | Content parsing system based on digital object identification |
WO2017020597A1 (en) * | 2015-07-31 | 2017-02-09 | 华为技术有限公司 | Resource cache method and apparatus |
CN107656981A (en) * | 2017-09-08 | 2018-02-02 | 中国科学院计算机网络信息中心 | A kind of data sharing and management method and system based on identification technology |
CN113868289A (en) * | 2021-10-18 | 2021-12-31 | 国网山东省电力公司电力科学研究院 | An identification parsing system and method suitable for a smart IoT system |
-
2023
- 2023-05-15 CN CN202310542724.8A patent/CN116634017B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102650989A (en) * | 2011-02-23 | 2012-08-29 | 上海博路信息技术有限公司 | Content parsing system based on digital object identification |
WO2017020597A1 (en) * | 2015-07-31 | 2017-02-09 | 华为技术有限公司 | Resource cache method and apparatus |
CN107656981A (en) * | 2017-09-08 | 2018-02-02 | 中国科学院计算机网络信息中心 | A kind of data sharing and management method and system based on identification technology |
CN113868289A (en) * | 2021-10-18 | 2021-12-31 | 国网山东省电力公司电力科学研究院 | An identification parsing system and method suitable for a smart IoT system |
Also Published As
Publication number | Publication date |
---|---|
CN116634017A (en) | 2023-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102462781B1 (en) | KVS tree database | |
Quan et al. | TB2F: Tree-bitmap and bloom-filter for a scalable and efficient name lookup in content-centric networking | |
US11775569B2 (en) | Object-backed block-based distributed storage | |
CN104731516B (en) | A kind of method, apparatus and distributed memory system of accessing file | |
CN103150394B (en) | Distributed file system metadata management method facing to high-performance calculation | |
CN102971732B (en) | The system architecture of the integrated classification query processing of key/value storer | |
US8073972B2 (en) | System and method for location discovery based on DNS | |
US9960999B2 (en) | Balanced load execution with locally distributed forwarding information base in information centric networks | |
US20130346444A1 (en) | Metadata subsystem for a distributed object store in a network storage system | |
US11003719B2 (en) | Method and apparatus for accessing a storage disk | |
US20070112803A1 (en) | Peer-to-peer semantic indexing | |
US8874708B2 (en) | Location discovery based on DNS | |
CN102945249B (en) | A kind of policing rule matching inquiry tree generation method, matching process and device | |
CN103428093A (en) | Route prefix storing, matching and updating method and device based on names | |
CN103888499A (en) | Distributed object processing method and system | |
CN103544261A (en) | Method and device for managing global indexes of mass structured log data | |
WO2020125630A1 (en) | File reading | |
CN105930345A (en) | Hierarchical indexing method based on distributed real-time database system (DRTDBS) | |
CN101883111B (en) | Accounting server for processing online business log and method thereof | |
WO2014161261A1 (en) | Data storage method and apparatus | |
US8015195B2 (en) | Modifying entry names in directory server | |
CN103095587B (en) | A method for registration service, network group center control nodes and system | |
CN110083307A (en) | Date storage method, memory and server | |
CN116634017B (en) | Identification analysis data caching method and device based on digital object | |
WO2013010432A1 (en) | Method, node and system for data storage and query in peer network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |