本发明涉及云盘技术领域,尤其是一种对象分流方法、系统、装置及存储介质。The present invention relates to the field of cloud disk technology, and in particular to an object diversion method, system, device and storage medium.
随着互联网的高速发展,人们对于存储的需求量也随之增长;注册使用云盘的消费者逐年增加,随着客户量和客户活跃度的增加,异地灾备模式逐渐显现出其缺点,数据库、缓存、服务器、搜索引擎等同步备份,无用户访问将造成一定比例的资源浪费。因此,系统双活、单元化架构演进迫在眉睫,该环节中的用户分流起到十分重要的作用。相关技术中,通过一种分流规则处理对象的分流操作,无法实现灵活部署,影响服务器的资源利用率。With the rapid development of the Internet, people's demand for storage has also increased; the number of consumers who register to use cloud disks has increased year by year. With the increase in the number of customers and customer activity, the off-site disaster recovery model has gradually revealed its shortcomings. The synchronous backup of databases, caches, servers, search engines, etc. without user access will cause a certain proportion of resource waste. Therefore, the evolution of the system's active-active and unitized architecture is imminent, and user diversion in this link plays a very important role. In related technologies, the diversion operation of processing objects through a diversion rule cannot achieve flexible deployment, which affects the resource utilization of the server.
发明内容Summary of the invention
本发明的目的在于至少一定程度上解决现有技术中存在的技术问题之一。The purpose of the present invention is to solve one of the technical problems existing in the prior art to at least a certain extent.
为此,本发明的目的在于提供一种高效的对象分流方法、系统、装置及存储介质。To this end, an object of the present invention is to provide an efficient object diversion method, system, device and storage medium.
为了达到上述技术目的,本发明实施例所采取的技术方案包括:In order to achieve the above technical objectives, the technical solutions adopted by the embodiments of the present invention include:
一方面,本发明实施例提供了一种对象分流方法,包括以下步骤:In one aspect, an embodiment of the present invention provides an object offloading method, comprising the following steps:
本发明实施例的对象分流方法,该方法包括:获取目标对象的请求信息,所述请求信息包括地址信息、客户端信息、对象编码信息、手机号信息和会员等级信息;若根据所述请求信息,从系统标识位列表库中匹配到至少一个列表,根据匹配到的列表对目标对象进行分流处理,确定目标环境;所述系统标识位列表库包括若干与请求信息中的各个信息相关的列表;或者,若根据所述请求信息,从系统标识位列表库中未匹配到列表,将所述请求信息通过散列函数处理,根据处理后的散列函数值对目标对象进行分流处理,确定目标环境。本申请实施例通过对目标对象的请求信息进行匹配操作,可选择通过匹配列表进行对象分流;或选择散列函数进行对象分流;本申请实施例提出了通过不同的处理方式对对象进行分流操作,可实现灵活部署,有利于提升资源利用率。The object diversion method of the embodiment of the present invention comprises: obtaining request information of the target object, the request information comprising address information, client information, object encoding information, mobile phone number information and membership level information; if at least one list is matched from the system identification bit list library according to the request information, the target object is diverted according to the matched list to determine the target environment; the system identification bit list library comprises several lists related to each information in the request information; or, if no list is matched from the system identification bit list library according to the request information, the request information is processed through a hash function, the target object is diverted according to the processed hash function value to determine the target environment. The embodiment of the present application can select to divert the object through a matching list by performing a matching operation on the request information of the target object; or select a hash function to divert the object; the embodiment of the present application proposes to divert the object through different processing methods, which can realize flexible deployment and is conducive to improving resource utilization.
另外,根据本发明上述实施例的对象分流方法,还可以具有以下附加的技术特征:In addition, the object diversion method according to the above embodiment of the present invention may also have the following additional technical features:
进一步地,本发明实施例的对象分流方法,所述系统标识位列表库中的每个列表中的标识位对应一个权重信息;所述根据匹配到的列表对目标对象进行分流处理,确定目标环境,包括:Furthermore, in the object diversion method of the embodiment of the present invention, the identification bit in each list in the system identification bit list library corresponds to a weight information; the target object is diverted according to the matched list to determine the target environment, including:
对所述列表按照所述权重信息由大到小或由小到大的顺序进行排序;Sorting the list in descending order or in ascending order according to the weight information;
基于所述列表的排序结果,根据所述标识位与特征值的对应关系,依次对请求信息中的特征值进行列表匹配,确定第一列表对应的第一环境为目标环境;所述第一列表为最先匹配到的列表。Based on the sorting result of the list, according to the correspondence between the identification bit and the characteristic value, the characteristic values in the request information are matched in turn, and the first environment corresponding to the first list is determined to be the target environment; the first list is the first matching to the list.
进一步地,在本发明的一个实施例中,所述系统标识位列表库中的每个列表中的标识位对应一个权重信息,所述根据匹配到的列表对目标对象进行分流处理,确定目标环境,包括:Further, in an embodiment of the present invention, each identification bit in the list in the system identification bit list library corresponds to a weight information, and the target object is diverted according to the matched list to determine the target environment, including:
根据所述请求信息,从系统标识位列表库中匹配到第二列表集;According to the request information, matching a second list set from the system identification bit list library;
对所述第二列表集中的各个列表按照所述权重信息由大到小或由小到大的顺序进行排序,将位于第一位的列表对应的环境确定为目标环境。The lists in the second list set are sorted in descending order or in ascending order according to the weight information, and the environment corresponding to the list at the first position is determined as the target environment.
进一步地,在本发明的一个实施例中,所述方法还包括以下步骤:Furthermore, in one embodiment of the present invention, the method further comprises the following steps:
获取服务器部署可供访问的环境总量;Get the total number of environments accessible by the server deployment;
根据每个目标环境的分流占比,确定每个目标环境的环境量;其中,所有目标环境的环境量之和小于或等于所述环境总量,且所述每个目标环境的环境量大于或等于零。The environmental quantity of each target environment is determined according to the diversion ratio of each target environment; wherein the sum of the environmental quantities of all target environments is less than or equal to the total environmental quantity, and the environmental quantity of each target environment is greater than or equal to zero.
进一步地,在本发明的一个实施例中,所述将所述请求信息通过散列函数处理,根据处理后的散列函数值对目标对象进行分流处理,确定目标环境,包括:Further, in one embodiment of the present invention, the step of processing the request information through a hash function, performing a shunt process on the target object according to the processed hash function value, and determining the target environment includes:
获取当前时间,以及获取请求信息中的每个信息的特征标识;Get the current time and the characteristic identifier of each information in the request information;
确定第一时间,获取所述特征标识对应的调节参数;所述第一时间为对象进行随机分流未变的时间;Determine a first time, and obtain an adjustment parameter corresponding to the feature identifier; the first time is a time when the object is randomly divided and unchanged;
对所述当前时间、所述特征标识、所述第一时间、所述调节参数进行哈希处理,确定目标环境。The current time, the feature identifier, the first time, and the adjustment parameter are hashed to determine a target environment.
进一步地,在本发明的一个实施例中,所述对所述当前时间、所述特征标识、所述第一时间、所述调节参数进行哈希处理,确定目标环境,包括:Further, in one embodiment of the present invention, performing hash processing on the current time, the feature identifier, the first time, and the adjustment parameter to determine the target environment includes:
确定所述特征标识和与所述特征标识对应的调节参数的第一商值;Determining a first quotient value of the feature identifier and an adjustment parameter corresponding to the feature identifier;
确定第一乘积与所述第一时间的第二商值;所述第一乘积为所述当前时间和与所述第一时间对应的调节参数的乘积;Determine a second quotient of a first product and the first time; the first product is a product of the current time and an adjustment parameter corresponding to the first time;
对所述第一商值和所述第二商值之和进行哈希处理,得到第一数值;Performing hash processing on the sum of the first quotient value and the second quotient value to obtain a first value;
将所述第一数值对分流占比取余,确定目标环境。The first value is modulo the diversion ratio to determine the target environment.
进一步地,在本发明的一个实施例中,所述方法还包括:Furthermore, in one embodiment of the present invention, the method further comprises:
根据所述目标对象的新增属性信息,确定分流策略;Determine a diversion strategy according to the newly added attribute information of the target object;
根据所述分流策略,建立第三列表,并将所述第三列表放入所述系统标识位列表库。According to the diversion strategy, a third list is established, and the third list is put into the system identification bit list library.
另一方面,本发明实施例提出了一种对象分流系统,包括:On the other hand, an embodiment of the present invention provides an object diversion system, including:
第一模块,用于获取目标对象的请求信息,所述请求信息包括地址信息、客户端信息、对象编码信息、手机号信息和会员等级信息;The first module is used to obtain the request information of the target object, the request information includes address information, client information, object code information, mobile phone number information and membership level information;
第二模块,用于若根据所述请求信息,从系统标识位列表库中匹配到至少一个列表,根据匹配到的列表对目标对象进行分流处理,确定目标环境;所述系统标识位列表库包括若干与请求信息中的各个信息相关的列表;The second module is used to match at least one list from the system identification bit list library according to the request information, The target object is diverted according to the matched list to determine the target environment; the system identification bit list library includes several lists related to each information in the request information;
第三模块,用于若根据所述请求信息,从系统标识位列表库中未匹配到列表,将所述请求信息通过散列函数处理,根据处理后的散列函数值对目标对象进行分流处理,确定目标环境。The third module is used to process the request information through a hash function if no list is matched in the system identification bit list library according to the request information, and to divert the target object according to the processed hash function value to determine the target environment.
另一方面,本发明实施例提供了一种对象分流装置,包括:On the other hand, an embodiment of the present invention provides an object diversion device, including:
至少一个处理器;at least one processor;
至少一个存储器,用于存储至少一个程序;at least one memory for storing at least one program;
当所述至少一个程序被所述至少一个处理器执行时,使得所述至少一个处理器实现上述的对象分流方法。When the at least one program is executed by the at least one processor, the at least one processor implements the above-mentioned object diversion method.
另一方面,本发明实施例提供了一种存储介质,其中存储有处理器可执行的程序,所述处理器可执行的程序在由处理器执行时用于实现上述的对象分流方法。On the other hand, an embodiment of the present invention provides a storage medium storing a program executable by a processor, wherein the program executable by the processor is used to implement the above-mentioned object offloading method when executed by the processor.
本发明实施例提供的对象分流方法,包括步骤:获取目标对象的请求信息,所述请求信息包括地址信息、客户端信息、对象编码信息、手机号信息和会员等级信息;若根据所述请求信息,从系统标识位列表库中匹配到至少一个列表,根据匹配到的列表对目标对象进行分流处理,确定目标环境;所述系统标识位列表库包括若干与请求信息中的各个信息相关的列表;或者,若根据所述请求信息,从系统标识位列表库中未匹配到列表,将所述请求信息通过散列函数处理,根据处理后的散列函数值对目标对象进行分流处理,确定目标环境。本申请实施例通过对目标对象的请求信息进行匹配操作,可选择通过匹配列表进行对象分流;或选择散列函数进行对象分流;本申请实施例提出了通过不同的处理方式对对象进行分流操作,可实现灵活部署,有利于提升资源利用率。The object diversion method provided by the embodiment of the present invention includes the steps of: obtaining the request information of the target object, the request information including address information, client information, object encoding information, mobile phone number information and membership level information; if at least one list is matched from the system identification bit list library according to the request information, the target object is diverted according to the matched list to determine the target environment; the system identification bit list library includes several lists related to each information in the request information; or, if no list is matched from the system identification bit list library according to the request information, the request information is processed by a hash function, and the target object is diverted according to the processed hash function value to determine the target environment. The embodiment of the present application can choose to divert the object through the matching list by matching the request information of the target object; or select the hash function for object diversion; the embodiment of the present application proposes to divert the object through different processing methods, which can realize flexible deployment and is conducive to improving resource utilization.
为了更清楚地说明本发明实施例或者现有技术中的技术方案,下面对本发明实施例或者现有技术中的相关技术方案附图作以下介绍,应当理解的是,下面介绍中的附图仅仅为了方便清晰表述本发明的技术方案中的部分实施例,对于本领域的技术人员来说,在无需付出创造性劳动的前提下,还可以根据这些附图获取到其他附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the embodiments of the present invention or the drawings of related technical solutions in the prior art are introduced below. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1为本发明提供的对象分流方法的一种实施例的流程示意图;FIG1 is a flow chart of an embodiment of an object diversion method provided by the present invention;
图2为本发明提供的对象分流方法的另一种实施例的流程示意图;FIG2 is a flow chart of another embodiment of the object diversion method provided by the present invention;
图3为本发明提供的列表匹配过程的一种实施例的流程示意图;FIG3 is a schematic diagram of a flow chart of an embodiment of a list matching process provided by the present invention;
图4为本发明提供的基于散列函数的分流过程的一种实施例的流程示意图;FIG4 is a flow chart of an embodiment of a traffic diversion process based on a hash function provided by the present invention;
图5为本发明提供的用户登录云盘过程的一种实施例的界面效果示意图;FIG5 is a schematic diagram of an interface effect of an embodiment of a process of a user logging into a cloud disk provided by the present invention;
图6为本发明提供的用户登录云盘过程的另一种实施例的界面效果示意图;FIG6 is a schematic diagram of an interface effect of another embodiment of a process of a user logging into a cloud disk provided by the present invention;
图7为本发明提供的用户登录云盘过程的一种实施例的流程示意图;FIG7 is a flow chart of an embodiment of a process of a user logging into a cloud disk provided by the present invention;
图8为本发明提供的对象分流系统的一种实施例的结构示意图;FIG8 is a schematic structural diagram of an embodiment of an object diversion system provided by the present invention;
图9为本发明提供的对象分流装置的一种实施例的结构示意图;FIG9 is a schematic structural diagram of an embodiment of an object diversion device provided by the present invention;
图10为本发明提供的对象分流装置的另一种实施例的结构示意图。FIG. 10 is a schematic structural diagram of another embodiment of the object diversion device provided by the present invention.
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。对于以下实施例中的步骤编号,其仅为了便于阐述说明而设置,对步骤之间的顺序不做任何限定,实施例中的各步骤的执行顺序均可根据本领域技术人员的理解来进行适应性调整。The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limitations of the present invention. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
随着互联网时代的迅猛发展,人们对于电子产品的依赖度越来越高。同时,用于娱乐和办公的各种文件所占空间也不断增大,手机存储可能存在极大压力,电脑端文件的多端同步和备份,也面临越来越大的需求,此时,云存储服务(cloud storage service)作为一个重要解决方案产生,人们可以手动上传照片、文件到云盘,也可以选择自动备份手机相册或电脑文件夹等。With the rapid development of the Internet era, people are becoming more and more dependent on electronic products. At the same time, the space occupied by various files used for entertainment and office work is also increasing. Mobile phone storage may be under great pressure, and multi-terminal synchronization and backup of computer files are also facing increasing demand. At this time, cloud storage service is generated as an important solution. People can manually upload photos and files to the cloud disk, or choose to automatically back up mobile phone albums or computer folders.
根据数据分析,注册使用云盘的用户逐年增加,随着用户量和用户活跃的增加,异地灾备模式逐渐显现出其缺点,数据库、缓存、服务器、搜索引擎等同步备份,无用户访问将造成一定比例资源浪费,因此,系统双活、单元化架构演进迫在眉睫,其环节中用户分流方法及系统尤为重要,用户分流能有效解决用户访问请求按照系统预设的流向去到指定系统环境,且当其环境出现故障时能及时把用户访问请求切割到其他正常系统环境中,保障用户正常使用云盘业务功能,且系统部署灵活,提升服务器的资源利用率。According to data analysis, the number of users registered to use cloud disks increases year by year. With the increase in the number of users and user activity, the off-site disaster recovery model has gradually revealed its shortcomings. The synchronous backup of databases, caches, servers, search engines, etc. and the lack of user access will cause a certain proportion of resource waste. Therefore, the evolution of the system's active-active and unitized architecture is imminent. The user diversion method and system are particularly important in this link. User diversion can effectively solve the problem of user access requests going to the designated system environment according to the system's preset flow direction, and when the environment fails, the user access request can be cut to other normal system environments in time to ensure that users can use the cloud disk business functions normally. The system deployment is flexible and the resource utilization of the server is improved.
本发明实施例在不改变用户使用行为,仅在服务端优化用户访问请求的情况下,对用户智能分流,实现系统灰度发布、双活、单元化架构演进中重要一步,同时,在业务层可以满足新业务上线逐步放量,或一定时间段内用户随机分流且目标分流系统不变,也可满足系统间即时切换,若新环境无法承载所有用户的请求量,则可切换特定用户/对象(如会员用户、某些特定IP用户等)请求分流到新环境,保障系统正常运行,满足用户正常使用。The embodiment of the present invention intelligently diverts users without changing the user's usage behavior and only optimizes the user's access request on the server side, realizing an important step in the evolution of system grayscale release, dual active, and unitized architecture. At the same time, at the business layer, it can meet the gradual increase in volume of new businesses online, or random diversion of users within a certain period of time without changing the target diversion system, and can also meet the instant switching between systems. If the new environment cannot carry the request volume of all users, the request of specific users/objects (such as member users, certain specific IP users, etc.) can be switched to the new environment to ensure the normal operation of the system and meet the normal use of users.
下面参照附图详细描述根据本发明实施例提出的对象分流方法和系统,首先将参照附图描述根据本发明实施例提出的对象分流方法。The object offloading method and system proposed in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. First, the object offloading method proposed in the embodiments of the present invention will be described with reference to the accompanying drawings.
参照图1,本发明实施例中提供一种对象分流方法,本发明实施例中的对象分流方法,可应用于终端中,也可应用于服务器中,还可以是运行于终端或服务器中的软件等。终端可以是平板电脑、笔记本电脑、台式计算机等,但并不局限于此。服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器。本发明实施例中的对象分流方法主要包括以下步骤:1, an object diversion method is provided in an embodiment of the present invention. The object diversion method in the embodiment of the present invention can be applied to a terminal or a server, and can also be software running in a terminal or a server. The server may be a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The object diversion method in the embodiment of the present invention mainly includes the following steps:
S100:获取目标对象的请求信息,请求信息包括地址信息、客户端信息、对象编码信息、手机号信息和会员等级信息;S100: Obtaining request information of the target object, the request information includes address information, client information, object code information, mobile phone number information and membership level information;
S200:若根据请求信息,从系统标识位列表库中匹配到至少一个列表,根据匹配到的列表对目标对象进行分流处理,确定目标环境;系统标识位列表库包括若干与请求信息中的各个信息相关的列表;S200: If at least one list is matched from the system identifier list library according to the request information, the target object is diverted according to the matched list to determine the target environment; the system identifier list library includes a plurality of lists related to each information in the request information;
S300:或者,若根据请求信息,从系统标识位列表库中未匹配到列表,将请求信息通过散列函数处理,根据处理后的散列函数值对目标对象进行分流处理,确定目标环境。S300: Alternatively, if no list is matched in the system identification bit list library according to the request information, the request information is processed through a hash function, and the target object is diverted according to the processed hash function value to determine the target environment.
在一些可能的实现方式中,参照图2,本申请实施例可实现一定时间用户随机分流,一定时间特定用户随机分流,或按系统预设标识位定向分流等功能。系统预设有系统标识位列表库,包括若干列表,每个列表用于表征一种分流规则。示例性地,列表可以包括的规则可以涉及白名单(R1)、会员等级(R2)、客户端分流标识(R3)、请求IP(R4)、用户百分比随机(R5)单项或组合式规则,同时也可扩展为更多的分流规则(Rm)。同时,本申请实施例为每项规则设置对应的权重,分别为w1、w2、w3、…、wm;根据该权重,可以设置匹配过程的优先级。其中白名单(R1)是指针对特定用户直接配置其分流到指定环境,会员等级(R2)是指用户在系统中开通会员的等级,客户端分流标识(R3)是指客户端的请求头中带有特定的用户分流标识字段,请求IP(R4)是指用户请求时的访问IP,此规则可针对配置的局域网或办公网的用户进行集中的分流,用户百分比随机(R5)是指通过本专利系统的分流算法,对用户ID及其它标识字段进行计算,把用户按比例随机分流到各个系统环境中,权重(wm)是指每项分流规则是否启用(等于0时则不启用)及启用时使用的优先级。本申请实施例通过设置系统标识列表库,将分流规则通过系统标识的方式存入列表,便于后续通过列表匹配的方式对目标对象/用户进行分流匹配,提升分流的效率。In some possible implementations, referring to FIG. 2 , the embodiments of the present application can realize functions such as random diversion of users at a certain time, random diversion of specific users at a certain time, or directional diversion according to system preset identification bits. The system presets a system identification bit list library, including several lists, each list is used to characterize a diversion rule. Exemplarily, the rules that may be included in the list may involve single or combined rules such as whitelist (R1 ), membership level (R2 ), client diversion identification (R3 ), request IP (R4 ), and user percentage random (R5 ), and can also be expanded to more diversion rules (Rm ). At the same time, the embodiments of the present application set corresponding weights for each rule, namely w1 , w2 , w3 , ..., wm ; according to the weight, the priority of the matching process can be set. Wherein, the whitelist (R1 ) refers to directly configuring a specific user to be diverted to a specified environment, the membership level (R2 ) refers to the level of the user's membership in the system, the client diversion identifier (R3 ) refers to the specific user diversion identifier field in the client's request header, the request IP (R4 ) refers to the access IP when the user requests, and this rule can be used to centrally divert users of the configured local area network or office network, the user percentage random (R5 ) refers to the calculation of the user ID and other identification fields through the diversion algorithm of the patent system, and the user is randomly diverted to each system environment in proportion, and the weight (wm ) refers to whether each diversion rule is enabled (not enabled when equal to 0) and the priority used when enabled. The embodiment of the present application sets a system identification list library, and stores the diversion rules in the list by means of system identification, so as to facilitate the subsequent diversion matching of the target object/user by list matching, thereby improving the efficiency of diversion.
本申请实施例提出的用户分流过程可以分为两部分,一是通过系统标识位进行系统分流计算,二是在系统标识位的基础上基于散列函数对各项分流规则进行分流计算。优先选择通过系统标识位进行列表匹配的方式进行分流。The user diversion process proposed in the embodiment of the present application can be divided into two parts: one is to perform system diversion calculation through the system identification bit, and the other is to perform diversion calculation on each diversion rule based on the hash function based on the system identification bit. Diversion is preferably performed by list matching through the system identification bit.
本发明实施例的对象分流方法,该方法包括:获取目标对象的请求信息,请求信息包括地址信息、客户端信息、对象编码信息、手机号信息和会员等级信息;若根据请求信息,从系统标识位列表库中匹配到至少一个列表,根据匹配到的列表对目标对象进行分流处理,确定目标环境;系统标识位列表库包括若干与请求信息中的各个信息相关的列表;或者,若根据请求信息,从系统标识位列表库中未匹配到列表,将请求信息通过散列函数处理,根据处理后的散列函数值对目标对象进行分流处理,确定目标环境。本申请实施例通过对目标对象的请求信息进行匹配操作,可选择通过匹配列表进行对象分流;或选择散列函数进行对象分流;本申请实施例提出了通过不同的处理方式对对象进行分流操作,可实现灵活部署,有利于提升资源利用率。The object diversion method of the embodiment of the present invention comprises: obtaining request information of the target object, the request information comprising address information, client information, object code information, mobile phone number information and member level information; if according to the request information, At least one list is matched in the system identification bit list library, and the target object is diverted according to the matched list to determine the target environment; the system identification bit list library includes several lists related to each information in the request information; or, if no list is matched from the system identification bit list library according to the request information, the request information is processed through a hash function, and the target object is diverted according to the processed hash function value to determine the target environment. The embodiment of the present application can choose to divert the object through a matching list by matching the request information of the target object; or select a hash function to divert the object; the embodiment of the present application proposes to divert the object through different processing methods, which can achieve flexible deployment and help improve resource utilization.
可选地,参照图3所示,在本发明的一个实施例中,系统标识位列表库中的每个列表中的标识位对应一个权重信息;根据匹配到的列表对目标对象进行分流处理,确定目标环境,包括:Optionally, as shown in FIG. 3 , in one embodiment of the present invention, the identification bit in each list in the system identification bit list library corresponds to a weight information; the target object is diverted according to the matched list to determine the target environment, including:
S210:对列表按照权重信息由大到小或由小到大的顺序进行排序;S210: sorting the list in descending order or in ascending order according to the weight information;
S220:基于所述列表的排序结果,根据所述标识位与特征值的对应关系,依次对请求信息中的特征值进行列表匹配,确定第一列表对应的第一环境为目标环境;所述第一列表为最先匹配到的列表。S220: Based on the sorting result of the list, according to the correspondence between the identification bit and the characteristic value, list matching is performed on the characteristic values in the request information in turn, and the first environment corresponding to the first list is determined to be the target environment; the first list is the first matched list.
本申请实施例通过列表的权重信息设定匹配的优先级,进而执行对象分流。具体地,在一些可能的实现方式中,本系统中预设白名单(R1)、客户端分流标识(R3)、请求IP(R4)、拓展标识位(Rx)为系统用户分流标识位,分别对应的权重为wi、w3、w4、…、wx,R1配置对应的目标群体列表为T1,R3配置对应的客户端分流标识列表为T3,R4配置对应的请求IP列表为T4,Rx配置对应的列表为Tx。其中预设的白名单(R1)以用户的唯一识别码(可以为用户编码、手机号等)进行系统预先录入设置,即T1为用户的唯一识别码列表,当请求经过系统时可以从请求中获取到此识别码;客户端分流标识(R3)为请求头中带有特定的请求头,T3为特定请求头的列表,T3={h1,h2,h3,...,hn},如header=h,h=h1,h2,h3,...,hn,n个目标环境,当h=h1时,分流到环境1,当h=hn时,分流到环境n;请求IP(R4)为通过用户的请求分析出的IP地址,T4为系统录入的一系列IP地址和目标环境的对应值。The embodiment of the present application sets the matching priority through the weight information of the list, and then performs object diversion. Specifically, in some possible implementations, the system presets a whitelist (R1 ), a client diversion identifier (R3 ), a request IP (R4 ), and an extension identifier (Rx ) as a system user diversion identifier, and the corresponding weights are wi , w3 , w4 , ..., wx , respectively. The target group list corresponding to the R1 configuration is T1 , the client diversion identifier list corresponding to the R3 configuration is T3 , the request IP list corresponding to the R4 configuration is T4 , and the list corresponding to the Rx configuration is Tx . The preset whitelist (R1 ) is pre-entered into the system with the user's unique identification code (which can be a user code, mobile phone number, etc.), that is, T1 is the user's unique identification code list, and this identification code can be obtained from the request when the request passes through the system; the client diversion identifier (R3 ) is a specific request header in the request header, T3 is a list of specific request headers, T3 ={h1 , h2 , h3 , ..., hn }, such as header=h, h=h1 , h2 , h3 , ..., hn , n target environments, when h=h1 , it is diverted to environment 1, and when h=hn , it is diverted to environment n; the request IP (R4 ) is the IP address analyzed through the user's request, and T4 is a series of IP addresses and corresponding values of the target environment entered by the system.
针对上述实施例中的系统标识位列表库,对标识位进行权重排序sort(wi、w3、w4、…、wx),得到排序后的标识组合Rnew[],对应的目标值为Tnew[],当用户的访问请求经过本分流系统时,会对请求的特征值依次进行匹配,先匹配到的目标值(Tx)先进行分流,找到对应的目标环境(Sx)进行转发,当Px=0时,则继续往后进行目标值匹配,直至完成用户请求分流到可用环境。For the system identification bit list library in the above embodiment, the identification bits are weighted sorted (wi , w3 , w4 , … , wx ) to obtain the sorted identification combination Rnew [], and the corresponding target value is Tnew []. When the user's access request passes through this diversion system, the feature values of the request will be matched in sequence. The first matched target value (Tx ) will be diverted first, and the corresponding target environment (Sx ) will be found for forwarding. When Px = 0, the target value matching will continue until the user request is diverted to the available environment.
可选地,在本发明的一个实施例中,系统标识位列表库中的每个列表中的标识位对应一个权重信息,根据匹配到的列表对目标对象进行分流处理,确定目标环境,包括:Optionally, in one embodiment of the present invention, the identification bit in each list in the system identification bit list library corresponds to a The target objects are diverted according to the matched list to determine the target environment, including:
根据请求信息,从系统标识位列表库中匹配到第二列表集;According to the request information, a second list set is matched from the system identification bit list library;
对第二列表集中的各个列表按照权重信息由大到小或由小到大的顺序进行排序,将位于第一位的列表对应的环境确定为目标环境。The lists in the second list set are sorted in descending order or in ascending order according to the weight information, and the environment corresponding to the list at the first position is determined as the target environment.
在一些可能的实施方式中,本申请实施例还可以对请求信息中的每个信息进行列表匹配,确定匹配到的第二列表集,根据第二列表集中的每个列表的权重信息,确定目标列表对应的环境为目标环境。In some possible implementations, the embodiments of the present application may also perform list matching on each information in the request information, determine a matched second list set, and determine the environment corresponding to the target list as the target environment based on the weight information of each list in the second list set.
可选地,在本发明的一个实施例中,该对象分流方法还包括:Optionally, in one embodiment of the present invention, the object diversion method further includes:
获取服务器部署可供访问的环境总量;Get the total number of environments accessible by the server deployment;
根据每个目标环境的分流占比,确定每个目标环境的环境量;其中,所有目标环境的环境量之和小于或等于环境总量,且每个目标环境的环境量大于或等于零。The environmental quantity of each target environment is determined according to the diversion ratio of each target environment; wherein the sum of the environmental quantities of all target environments is less than or equal to the total environmental quantity, and the environmental quantity of each target environment is greater than or equal to zero.
在一些可能的实施方式中,服务总共部署了n个目标环境可供访问,分别为S1、S2、S3、…、Sn,每个环境的分流占比为P1、P2、P3、…、Pn,服务想要进行分流的占比总值Ssum,其中且Ssum=100,且Pn≥0,按照占比范围进行区间划分,如分为3个环境,各分流占比为10、40、50,则可划分为[0,10)、[10,50)、[50,99)。同时,Ssum可扩展为Ssum小于1000、10000等,即如系统需要分流万分之一,则设置Ssum=10000。可以理解的是,上述设置属于示例性举例,本领域技术人员可以根据需求设定合适的占比总值。In some possible implementations, the service deploys a total of n target environments for access, namely S1 , S2 , S3 , ..., Sn , and the traffic diversion ratio of each environment is P1 , P2 , P3 , ..., Pn . The total value of the traffic diversion ratio that the service wants to perform is Ssum , where And Ssum = 100, and Pn ≥ 0, the interval is divided according to the proportion range, such as divided into 3 environments, each diversion proportion is 10, 40, 50, then it can be divided into [0, 10), [10, 50), [50, 99). At the same time, Ssum can be expanded to Ssum less than 1000, 10000, etc., that is, if the system needs to divert one ten-thousandth, then Ssum is set to 10000. It can be understood that the above settings are illustrative examples, and those skilled in the art can set a suitable total proportion value according to needs.
可选地,参照图4,在本发明的一个实施例中,将请求信息通过散列函数处理,根据处理后的散列函数值对目标对象进行分流处理,确定目标环境,包括:Optionally, referring to FIG. 4 , in one embodiment of the present invention, the request information is processed by a hash function, and the target object is shunted according to the processed hash function value to determine the target environment, including:
S310:获取当前时间,以及获取请求信息中的每个信息的特征标识;S310: Obtain the current time and the characteristic identifier of each information in the request information;
S320:确定第一时间,获取特征标识对应的调节参数;第一时间为对象进行随机分流未变的时间:S320: Determine the first time and obtain the adjustment parameter corresponding to the feature identifier; the first time is the time when the object is randomly divided and unchanged:
S330:对当前时间、特征标识、第一时间、调节参数进行哈希处理,确定目标环境。S330: Perform hash processing on the current time, feature identifier, first time, and adjustment parameters to determine the target environment.
可选地,在本发明的一个实施例中,对当前时间、特征标识、第一时间、调节参数进行哈希处理,确定目标环境,包括:Optionally, in one embodiment of the present invention, performing hash processing on the current time, the feature identifier, the first time, and the adjustment parameter to determine the target environment includes:
确定特征标识和与特征标识对应的调节参数的第一商值;Determining a first quotient value of a feature identifier and an adjustment parameter corresponding to the feature identifier;
确定第一乘积与第一时间的第二商值;第一乘积为当前时间和与第一时间对应的调节参数的乘积:Determine a second quotient of the first product and the first time; the first product is the product of the current time and the adjustment parameter corresponding to the first time:
对第一商值和第二商值之和进行哈希处理,得到第一数值;Performing hash processing on the sum of the first quotient value and the second quotient value to obtain a first value;
将第一数值对分流占比取余,确定目标环境。The first value is modulo the diversion ratio to determine the target environment.
本申请实施例中,在系统标识位的基础上基于散列函数对各项分流规则进行分流计算。示例性地,用户在系统中的唯一编码为userID,当前时间为now,用户的会员等级为vipLevel,用户的其他第y个特征的id为Uy_ID,一段时间用户随机分流不变的时间为fixedTime,各分流规则对应的系统调节参数分别为userID_salt、vipLevel_salt、…、Uy_ID_salt、fixedTime_salt,则用户分流的散列函数值再对函数值y进行分流占比取余,即分流目标值z=此时,z属于Sn的环境的占比范围,则用户即应分流到Sn环境,此时算法输出完成,即用户分流目标值计算完成。需要说明的是,本申请实施例中的调节参数用于对各项特征的值的调整,是系统预设的值,可根据使用者数据的实际情况调整,如系统的userID过大,可设置userID_sal也较大,对整体值进行相应调整。In the embodiment of the present application, the flow distribution rules are divided based on the hash function based on the system identification bit. For example, the unique code of the user in the system is userID, the current time is now, the user's membership level is vipLevel, the id of the user's other yth feature is Uy _ID, the time of random diversion of the user for a period of time is fixedTime, and the system adjustment parameters corresponding to each diversion rule are userID_salt, vipLevel_salt, ..., Uy _ID_salt, fixedTime_salt, respectively. Then the hash function value of the user diversion is Then the function value y is divided into the remainder, that is, the diversion target value z = At this time, if z belongs to the proportion range ofSn environment, the user should be diverted to Sn environment, and the algorithm output is completed, that is, the user diversion target value calculation is completed. It should be noted that the adjustment parameters in the embodiment of the present application are used to adjust the values of various features. They are system preset values and can be adjusted according to the actual situation of user data. For example, if the userID of the system is too large, userID_sal can be set to be larger and the overall value can be adjusted accordingly.
可以理解的是,获得最终分流目标环境值并进行请求转发。通过上述的分流过程,已计算出用户应分流的目标环境值,再通过网关的转发,即可把用户请求分流到指定系统环境中,保障用户正常使用业务功能。It can be understood that the final diversion target environment value is obtained and the request is forwarded. Through the above diversion process, the target environment value to which the user should be diverted has been calculated, and then through the forwarding of the gateway, the user request can be diverted to the specified system environment to ensure that the user can use the business function normally.
可选地,在本发明的一个实施例中,该对象分流方法还包括:Optionally, in one embodiment of the present invention, the object diversion method further includes:
根据目标对象的新增属性信息,确定分流策略;Determine the diversion strategy based on the newly added attribute information of the target object;
根据分流策略,建立第三列表,并将第三列表放入系统标识位列表库。According to the diversion strategy, a third list is established and placed in the system identification position list library.
在一些可能的实施方式中,本申请实施例可以根据实际需求,增加分流策略,将新增的分流策略生成列表,加入系统标识位列表库。本申请实施例通过新增分流策略,提升规则可选性,提升分流的效率。In some possible implementations, the embodiment of the present application can add a diversion strategy according to actual needs, generate a list of the newly added diversion strategy, and add it to the system identification bit list library. The embodiment of the present application improves the selectivity of the rules and the efficiency of diversion by adding a diversion strategy.
在一些可能的实施例中,参照图5,在实际应用场景中,登录相关云盘的用户使用云盘各个功能模块时,相关云盘应用通过基于散列函数和系统标识的用户分流方法进行计算为用户分流转发。用户未登录时可能会随机分流,不能通过某些分流指标进行计算转发,如用户ID、会员等级。用户登录后将为用户进行更新计算。具体地,本系统可分为云盘模块和用户分流功能模块。云盘模块:此模块为本应用的应用载体,用户使用云盘的各个终端;本系统是在此基础上实现的基于散列函数和系统标识位的用户分流功能。用户分流功能:云盘业务系统在用户使用云盘各端时触发计算,为用户计算分流的目标环境,并进行请求转发,保障用户正常使用;此用户分流方法及系统后续也可应用到第三方系统和产品。In some possible embodiments, referring to FIG. 5, in actual application scenarios, when a user who logs in to the relevant cloud disk uses various functional modules of the cloud disk, the relevant cloud disk application calculates and forwards the diversion for the user through a user diversion method based on a hash function and a system identifier. When the user is not logged in, the diversion may be randomly diverted, and it cannot be calculated and forwarded through certain diversion indicators, such as user ID and membership level. After the user logs in, the update calculation will be performed for the user. Specifically, the system can be divided into a cloud disk module and a user diversion function module. Cloud disk module: This module is the application carrier of this application, and the user uses various terminals of the cloud disk; the system implements the user diversion function based on the hash function and the system identifier on this basis. User diversion function: The cloud disk business system triggers the calculation when the user uses each end of the cloud disk, calculates the target environment for the user to divert, and forwards the request to ensure the normal use of the user; this user diversion method and system can also be applied to third-party systems and products in the future.
参照图6所示,用户可以通过手机终端登录云盘系统;参照图7所示,用户可以通过电脑终端登录云盘系统。可以理解的是,用户可以通过任意终端登录云盘系统,通过本申请实施例提供的对象分流方法,对用户/对象进行分流。具体地,用户1使用云盘应用,登录并进入云盘首页,此时系统已经计算并分流用户到指定系统环境,并为用户提供通畅稳定的服务,当此系统环境出现异常时,系统会自动切换用户到新环境,保障用户使用。As shown in FIG6 , a user can log in to the cloud disk system through a mobile terminal; as shown in FIG7 , a user can log in to the cloud disk system through a computer terminal. It is understandable that a user can log in to the cloud disk system through any terminal, and the object diversion method provided in the embodiment of the present application can be used to divert users/objects. Specifically, user 1 uses the cloud disk application to log in and enter Enter the homepage of the cloud disk. At this time, the system has calculated and diverted users to the specified system environment, and provides users with smooth and stable services. When this system environment has an abnormality, the system will automatically switch users to the new environment to ensure user use.
本申请实施例通过预设的x个系统标识位作为基础模块,可直接通过系统标识位及预设值进行用户分流,同时也可在n个可分流的系统目标环境的基础上通过智能分流算法计算用户的分流值,然后判断其落在哪个环境的区间范围,在n个目标环境中进行系统分流。本申请实施例无需获取用户浏览记录和喜好等隐私信息,只通过智能的用户分流算法,在用户无感知的情况下对业务请求进行各项预设和配置信息分析计算,帮助系统快速的分流用户,智能分流转发,可实现特定用户访问特定系统环境,可实现一定时间段内用户分流目标值不改变,可实现通过多维度灵活快速切换用户访问的目标环境等,技术侧为灰度发布、系统双活、单元化架构演进等提供支持,业务侧为各项新功能上线前后对比分析访问效益等提供支持。本申请实施例可灵活适配多种分流规则,可极大提升用户分流效率,同时,使用该系统无需使用者具体了解算法细节即可满足业务及架构需求,可极大提升研发效率和推进项目进程。本申请实施例可扩展至其它第三方需要使用到用户分流、灰度发布、AB测试、业务逐步放量等的情形。本申请实施例可以应用在相关云盘中,建设相关云盘系统双活中使用到,后续将应用到相关云盘单元化架构演进中。The embodiment of the present application uses the preset x system identification bits as the basic module, and can directly perform user diversion through the system identification bits and preset values. At the same time, the user's diversion value can be calculated through the intelligent diversion algorithm based on the n divertible system target environments, and then the range of the environment in which it falls is determined, and the system diversion is performed in the n target environments. The embodiment of the present application does not need to obtain privacy information such as user browsing records and preferences. It only uses the intelligent user diversion algorithm to analyze and calculate various preset and configuration information of the business request without the user's perception, helping the system to quickly divert users, intelligent diversion forwarding, can realize specific users to access specific system environments, can realize that the user diversion target value does not change within a certain period of time, can realize flexible and fast switching of user access target environments through multiple dimensions, etc. The technical side provides support for gray release, system dual active, unitized architecture evolution, etc., and the business side provides support for comparative analysis of access benefits before and after the launch of various new functions. The embodiment of the present application can flexibly adapt to a variety of diversion rules, which can greatly improve the efficiency of user diversion. At the same time, the use of this system can meet business and architecture requirements without the user having to understand the details of the algorithm, which can greatly improve R&D efficiency and promote project progress. The embodiments of the present application can be extended to other situations where third parties need to use user diversion, grayscale release, AB testing, and gradual business expansion. The embodiments of the present application can be applied to related cloud disks and used in the construction of related cloud disk system active-active, and will be applied to the evolution of related cloud disk unit architecture in the future.
本发明实施例的对象分流方法,该方法包括:获取目标对象的请求信息,所述请求信息包括地址信息、客户端信息、对象编码信息、手机号信息和会员等级信息;若根据所述请求信息,从系统标识位列表库中匹配到至少一个列表,根据匹配到的列表对目标对象进行分流处理,确定目标环境;所述系统标识位列表库包括若干与请求信息中的各个信息相关的列表;或者,若根据所述请求信息,从系统标识位列表库中未匹配到列表,将所述请求信息通过散列函数处理,根据处理后的散列函数值对目标对象进行分流处理,确定目标环境。本申请实施例通过对目标对象的请求信息进行匹配操作,可选择通过匹配列表进行对象分流;或选择散列函数进行对象分流;本申请实施例提出了通过不同的处理方式对对象进行分流操作,可实现灵活部署,有利于提升资源利用率。The object diversion method of the embodiment of the present invention comprises: obtaining request information of the target object, the request information comprising address information, client information, object encoding information, mobile phone number information and membership level information; if at least one list is matched from the system identification bit list library according to the request information, the target object is diverted according to the matched list to determine the target environment; the system identification bit list library comprises several lists related to each information in the request information; or, if no list is matched from the system identification bit list library according to the request information, the request information is processed through a hash function, the target object is diverted according to the processed hash function value to determine the target environment. The embodiment of the present application can select to divert the object through a matching list by performing a matching operation on the request information of the target object; or select a hash function to divert the object; the embodiment of the present application proposes to divert the object through different processing methods, which can realize flexible deployment and is conducive to improving resource utilization.
其次,参照附图8描述根据本发明实施例提出的一种对象分流系统。Next, an object diversion system according to an embodiment of the present invention will be described with reference to FIG. 8 .
图8是本发明一个实施例的对象分流系统结构示意图,系统具体包括:FIG8 is a schematic diagram of the structure of an object distribution system according to an embodiment of the present invention, and the system specifically includes:
第一模块810,用于获取目标对象的请求信息,请求信息包括地址信息、客户端信息、对象编码信息、手机号信息和会员等级信息;The first module 810 is used to obtain the request information of the target object, the request information includes address information, client information, object code information, mobile phone number information and membership level information;
第二模块820,用于若根据请求信息,从系统标识位列表库中匹配到至少一个列表,根据匹配到的列表对目标对象进行分流处理,确定目标环境;系统标识位列表库包括若干与请求信息中的各个信息相关的列表;The second module 820 is used to perform diversion processing on the target object according to the matched list to determine the target environment if at least one list is matched from the system identifier list library according to the request information; the system identifier list library includes a plurality of lists related to each information in the request information;
第三模块830,用于若根据请求信息,从系统标识位列表库中未匹配到列表,将请求信息通过散列函数处理,根据处理后的散列函数值对目标对象进行分流处理,确定目标环境。The third module 830 is used to process the request information through a hash function if no list is matched in the system identification bit list library according to the request information, and to divert the target object according to the processed hash function value to determine the target environment.
可选地,在本发明的一个实施例中,所述系统标识位列表库中的每个列表中的标识位对应一个权重信息;所述第二模块还用于:Optionally, in an embodiment of the present invention, each identification bit in the list in the system identification bit list library corresponds to a weight information; and the second module is further used for:
对所述列表按照所述权重信息由大到小或由小到大的顺序进行排序;Sorting the list in descending order or in ascending order according to the weight information;
基于所述列表的排序结果,根据所述标识位与特征值的对应关系,依次对请求信息中的特征值进行列表匹配,确定第一列表对应的第一环境为目标环境;所述第一列表为最先匹配到的列表。Based on the sorting result of the list, according to the correspondence between the identification bit and the characteristic value, the characteristic values in the request information are matched in turn, and the first environment corresponding to the first list is determined to be the target environment; the first list is the first matched list.
可选地,在本发明的一个实施例中,所述系统标识位列表库中的每个列表中的标识位对应一个权重信息,第二模块还用于:Optionally, in one embodiment of the present invention, each identification bit in the list in the system identification bit list library corresponds to a weight information, and the second module is further used for:
根据所述请求信息,从系统标识位列表库中匹配到第二列表集;According to the request information, matching a second list set from the system identification bit list library;
对所述第二列表集中的各个列表按照所述权重信息由大到小或由小到大的顺序进行排序,将位于第一位的列表对应的环境确定为目标环境。The lists in the second list set are sorted in descending order or in ascending order according to the weight information, and the environment corresponding to the list at the first position is determined as the target environment.
可选地,在本发明的一个实施例中,第二模块还用于:Optionally, in one embodiment of the present invention, the second module is further used for:
获取服务器部署可供访问的环境总量;Get the total number of environments accessible by the server deployment;
根据每个目标环境的分流占比,确定每个目标环境的环境量;其中,所有目标环境的环境量之和小于或等于所述环境总量,且所述每个目标环境的环境量大于或等于零。The environmental quantity of each target environment is determined according to the diversion ratio of each target environment; wherein the sum of the environmental quantities of all target environments is less than or equal to the total environmental quantity, and the environmental quantity of each target environment is greater than or equal to zero.
可选地,在本发明的一个实施例中,所述将所述请求信息通过散列函数处理,第三模块还用于:Optionally, in one embodiment of the present invention, the request information is processed by a hash function, and the third module is further used for:
获取当前时间,以及获取请求信息中的每个信息的特征标识;Get the current time and the characteristic identifier of each information in the request information;
确定第一时间,获取所述特征标识对应的调节参数;所述第一时间为对象进行随机分流未变的时间;Determine a first time, and obtain an adjustment parameter corresponding to the feature identifier; the first time is a time when the object is randomly divided and unchanged;
对所述当前时间、所述特征标识、所述第一时间、所述调节参数进行哈希处理,确定目标环境。The current time, the feature identifier, the first time, and the adjustment parameter are hashed to determine a target environment.
可选地,在本发明的一个实施例中,第三模块还用于:Optionally, in one embodiment of the present invention, the third module is further used for:
确定所述特征标识和与所述特征标识对应的调节参数的第一商值;Determining a first quotient value of the feature identifier and an adjustment parameter corresponding to the feature identifier;
确定第一乘积与所述第一时间的第二商值;所述第一乘积为所述当前时间和与所述第一时间对应的调节参数的乘积;Determine a second quotient of a first product and the first time; the first product is a product of the current time and an adjustment parameter corresponding to the first time;
对所述第一商值和所述第二商值之和进行哈希处理,得到第一数值;Performing hash processing on the sum of the first quotient value and the second quotient value to obtain a first value;
将所述第一数值对分流占比取余,确定目标环境。The first value is modulo the diversion ratio to determine the target environment.
可选地,在本发明的一个实施例中,该系统还包括第四模块,用于根据所述目标对象的新增属性信息,确定分流策略;Optionally, in one embodiment of the present invention, the system further comprises a fourth module for Add attribute information to determine the diversion strategy;
根据所述分流策略,建立第三列表,并将所述第三列表放入所述系统标识位列表库。According to the diversion strategy, a third list is established, and the third list is put into the system identification bit list library.
可见,上述方法实施例中的内容均适用于本系统实施例中,本系统实施例所具体实现的功能与上述方法实施例相同,并且达到的有益效果与上述方法实施例所达到的有益效果也相同。It can be seen that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
本发明实施例提供了一种对象分流装置,包括:An embodiment of the present invention provides an object diversion device, including:
至少一个处理器;at least one processor;
至少一个存储器,用于存储至少一个程序;at least one memory for storing at least one program;
当所述至少一个程序被所述至少一个处理器执行时,使得所述至少一个处理器实现所述的对象分流方法。When the at least one program is executed by the at least one processor, the at least one processor is enabled to implement the object diversion method.
同理,上述方法实施例中的内容均适用于本装置实施例中,本装置实施例所具体实现的功能与上述方法实施例相同,并且达到的有益效果与上述方法实施例所达到的有益效果也相同。Similarly, the contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
本申请实施例提供的用于执行上述对象分流方法的对象分流装置可以是终端,参照图9,图9为本申请实施例提供的终端的部分结构框图,该终端包括:射频(Radio Frequency,简称RF)电路1010、存储器1020、输入单元1030、显示单元1040、传感器1050、音频电路1060、无线保真(wireless fidelity,简称WiFi)模块1070、处理器1080、以及电源1090等部件。本领域技术人员可以理解,图9中示出的终端结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The object diversion device for executing the above-mentioned object diversion method provided in the embodiment of the present application may be a terminal. Referring to FIG. 9 , FIG. 9 is a partial structural block diagram of the terminal provided in the embodiment of the present application, and the terminal includes: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and a power supply 1090. Those skilled in the art will understand that the terminal structure shown in FIG. 9 does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
RF电路可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器处理;另外,将设计上行的数据发送给基站。The RF circuit can be used to receive and send signals during information transmission or calls. In particular, after receiving the downlink information from the base station, it is sent to the processor for processing; in addition, the designed uplink data is sent to the base station.
存储器可用于存储软件程序以及模块,处理器通过运行存储在存储器的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。The memory can be used to store software programs and modules. The processor executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory.
输入单元可用于接收输入的数字或字符信息,以及产生与手机的设置以及功能控制有关的键信号输入。具体地,输入单元可包括触控面板1031以及其他输入装置1032。The input unit can be used to receive input digital or character information and generate key signal input related to the setting and function control of the mobile phone. Specifically, the input unit can include a touch panel 1031 and other input devices 1032.
显示单元可用于显示输入的信息或提供的信息以及手机的各种菜单。显示单元1040可包括显示面板1041。The display unit 1040 may be used to display input information or provided information and various menus of the mobile phone. The display unit 1040 may include a display panel 1041 .
音频电路1060、扬声器1061,传声器1062可提供音频接口。The audio circuit 1060 , the speaker 1061 , and the microphone 1062 may provide an audio interface.
在本实施例中,该终端所包括的处理器可以执行前面实施例的对象分流方法。In this embodiment, the processor included in the terminal can execute the object offloading method of the previous embodiment.
本申请实施例提供的用于执行上述对象分流方法的对象分流装置也可以是服务器,参照图10,图10为本申请实施例提供的服务器的部分结构框图,服务器1100可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(简称为CPU,即Central Processing Units),1122(例如,一个或一个以上处理器)和存储器1132,一个或一个以上存储应用程序1142或数据1144的存储介质1130(例如一个或一个以上海量存储装置)。其中,存储器1132和存储介质1130可以是短暂存储或持久存储。存储在存储介质1130的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器1100中的一系列指令操作。更进一步地,中央处理器1122可以设置为与存储介质1130通信,在服务器1100上执行存储介质1130中的一系列指令操作。The object diversion device for executing the above-mentioned object diversion method provided in the embodiment of the present application may also be a server. Referring to FIG. 10 , FIG. 10 is a partial structural block diagram of the server provided in the embodiment of the present application. The server 1100 may be different in configuration or performance. The difference between the two is relatively large, and may include one or more central processing units (CPU for short, i.e., Central Processing Units), 1122 (e.g., one or more processors) and memory 1132, one or more storage media 1130 (e.g., one or more mass storage devices) storing application programs 1142 or data 1144. Among them, the memory 1132 and the storage medium 1130 may be temporary storage or permanent storage. The program stored in the storage medium 1130 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server 1100. Furthermore, the central processing unit 1122 may be configured to communicate with the storage medium 1130 and execute a series of instruction operations in the storage medium 1130 on the server 1100.
服务器还可以包括一个或一个以上电源1126,一个或一个以上有线或无线网络接口1150,一个或一个以上输入输出接口1158,和/或,一个或一个以上操作系统1141,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The server may also include one or more power supplies 1126, one or more wired or wireless network interfaces 1150, one or more input and output interfaces 1158, and/or one or more operating systems 1141, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
服务器中的处理器可以用于执行上面的对象分流方法。The processor in the server can be used to execute the above object diversion method.
同理,上述方法实施例中的内容均适用于本装置实施例中,本装置实施例所具体实现的功能与上述方法实施例相同,并且达到的有益效果与上述方法实施例所达到的有益效果也相同。Similarly, the contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
本发明实施例还提供了一种计算机可读存储介质,其中存储有处理器可执行的程序,处理器可执行的程序在由处理器执行时用于执行上述的对象分流方法。An embodiment of the present invention further provides a computer-readable storage medium, in which a program executable by a processor is stored. When the program executable by the processor is executed by the processor, it is used to execute the above-mentioned object diversion method.
同理,上述方法实施例中的内容均适用于本存储介质实施例中,本存储介质实施例所具体实现的功能与上述方法实施例相同,并且达到的有益效果与上述方法实施例所达到的有益效果也相同。Similarly, the contents of the above method embodiments are all applicable to the present storage medium embodiments. The functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
在一些可选择的实施例中,在方框图中提到的功能/操作可以不按照操作示图提到的顺序发生。例如,取决于所涉及的功能/操作,连续示出的两个方框实际上可以被大体上同时地执行或所述方框有时能以相反顺序被执行。此外,在本发明的流程图中所呈现和描述的实施例以示例的方式被提供,目的在于提供对技术更全面的理解。所公开的方法不限于本文所呈现的操作和逻辑流程。可选择的实施例是可预期的,其中各种操作的顺序被改变以及其中被描述为较大操作的一部分的子操作被独立地执行。In some selectable embodiments, the function/operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function/operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
此外,虽然在功能性模块的背景下描述了本发明,但应当理解的是,除非另有相反说明,功能和/或特征中的一个或多个可以被集成在单个物理装置和/或软件模块中,或者一个或多个功能和/或特征可以在单独的物理装置或软件模块中被实现。还可以理解的是,有关每个模块的实际实现的详细讨论对于理解本发明是不必要的。更确切地说,考虑到在本文中公开的装置中各种功能模块的属性、功能和内部关系的情况下,在工程师的常规技术内将会了解该模块的实际实现。因此,本领域技术人员运用普通技术就能够在无需过度试验的情况下实现在权利要求书中所阐明的本发明。还可以理解的是,所公开的特定概念仅仅是说明性的,并不意在限制本发明的范围,本发明的范围由所附权利要求书及其等同方案的全部范围来决定。Furthermore, while the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and/or features may be integrated into a single physical device and/or software module, or one or more functions and/or features may be implemented in separate physical devices or software modules. It should also be understood that a detailed discussion of the actual implementation of each module is not necessary for an understanding of the present invention. Rather, given the properties, functions, and internal relationships of the various functional modules in the devices disclosed herein, the actual implementation of the module will be understood within the routine skill of an engineer. Thus, a person skilled in the art using ordinary skill will be able to implement the present invention without undue experimentation. The present invention is set forth in the claims. It will also be appreciated that the particular concepts disclosed are illustrative only and are not intended to limit the scope of the invention, which is to be determined by the appended claims and the full scope of equivalents thereof.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干程序用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several programs to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行程序的定序列表,可以具体实现在任何计算机可读介质中,以供程序执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从程序执行系统、装置或设备取程序并执行程序的系统)使用,或结合这些程序执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供程序执行系统、装置或设备或结合这些程序执行系统、装置或设备而使用的装置。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable programs for implementing the logical functions, and may be embodied in any computer-readable medium for use by a program execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch and execute a program from a program execution system, device or apparatus), or in conjunction with such program execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by a program execution system, device or apparatus, or in conjunction with such program execution systems, devices or apparatuses.
计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的程序执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable program execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
在本说明书的上述描述中,参考术语“一个实施方式/实施例”、“另一实施方式/实施例”或“某些实施方式/实施例”等的描述意指结合实施方式或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。In the above description of this specification, the description with reference to the terms "one embodiment/example", "another embodiment/example" or "certain embodiments/examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be in Any one or more embodiments or examples may be combined in a suitable manner.
尽管已经示出和描述了本发明的实施方式,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的情况下可以对这些实施方式进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
以上是对本发明的较佳实施进行了具体说明,但本发明并不限于所述实施例,熟悉本领域的技术人员在不违背本发明精神的前提下还可做作出种种的等同变形或替换,这些等同的变形或替换均包含在本发明权利要求所限定的范围内。The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311309169.0ACN117390673A (en) | 2023-10-10 | 2023-10-10 | Object offloading method, system, device and storage medium |
| CN202311309169.0 | 2023-10-10 |
| Publication Number | Publication Date |
|---|---|
| WO2025077728A1true WO2025077728A1 (en) | 2025-04-17 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/123627PendingWO2025077728A1 (en) | 2023-10-10 | 2024-10-09 | Object distribution method, system and device, and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN117390673A (en) |
| WO (1) | WO2025077728A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117390673A (en)* | 2023-10-10 | 2024-01-12 | 天翼数字生活科技有限公司 | Object offloading method, system, device and storage medium |
| CN119292952A (en)* | 2024-12-10 | 2025-01-10 | 天津金城银行股份有限公司 | AB test control method, system, computer equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8762534B1 (en)* | 2011-05-11 | 2014-06-24 | Juniper Networks, Inc. | Server load balancing using a fair weighted hashing technique |
| CN112486988A (en)* | 2020-11-27 | 2021-03-12 | 京东方科技集团股份有限公司 | Data processing method, device, equipment and storage medium |
| CN115309732A (en)* | 2022-08-22 | 2022-11-08 | 平安消费金融有限公司 | Method, device and equipment for shunting based on configuration request and storage medium |
| CN116028196A (en)* | 2021-10-25 | 2023-04-28 | 腾讯科技(深圳)有限公司 | Data processing method, device and storage medium |
| CN116069837A (en)* | 2021-11-02 | 2023-05-05 | 京东科技信息技术有限公司 | Data processing method, device, medium and electronic equipment |
| CN117390673A (en)* | 2023-10-10 | 2024-01-12 | 天翼数字生活科技有限公司 | Object offloading method, system, device and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8762534B1 (en)* | 2011-05-11 | 2014-06-24 | Juniper Networks, Inc. | Server load balancing using a fair weighted hashing technique |
| CN112486988A (en)* | 2020-11-27 | 2021-03-12 | 京东方科技集团股份有限公司 | Data processing method, device, equipment and storage medium |
| CN116028196A (en)* | 2021-10-25 | 2023-04-28 | 腾讯科技(深圳)有限公司 | Data processing method, device and storage medium |
| CN116069837A (en)* | 2021-11-02 | 2023-05-05 | 京东科技信息技术有限公司 | Data processing method, device, medium and electronic equipment |
| CN115309732A (en)* | 2022-08-22 | 2022-11-08 | 平安消费金融有限公司 | Method, device and equipment for shunting based on configuration request and storage medium |
| CN117390673A (en)* | 2023-10-10 | 2024-01-12 | 天翼数字生活科技有限公司 | Object offloading method, system, device and storage medium |
| Publication number | Publication date |
|---|---|
| CN117390673A (en) | 2024-01-12 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110489059B (en) | Data cluster storage method and device and computer equipment | |
| WO2025077728A1 (en) | Object distribution method, system and device, and storage medium | |
| US10002141B2 (en) | Distributed database in software driven networks | |
| WO2019200714A1 (en) | Server connection method, computer readable storage medium, terminal device, and apparatus | |
| WO2020011154A1 (en) | Method, apparatus, and system for blockchain transparent fragmentation | |
| CN106161610A (en) | A kind of method and system of distributed storage | |
| CN112631758B (en) | Edge computing resource scheduling method, device, equipment and readable storage medium | |
| WO2015081908A2 (en) | Method, device, and system for updating parameter value | |
| US11075987B1 (en) | Load estimating content delivery network | |
| CN108520471B (en) | Overlapping community discovery method, apparatus, device and storage medium | |
| CN103457870B (en) | For the load balancing of distributed system and high availability subsystem and method | |
| CN114238703A (en) | Event flow arrangement method, device and application | |
| CN112583941B (en) | A method for supporting access to multiple power terminals, unit node and power Internet of Things | |
| CN115134373A (en) | Data synchronization method and device, storage medium and electronic equipment | |
| CN117176796A (en) | Message pushing method, device, computer equipment and storage medium | |
| CN108875035A (en) | The date storage method and relevant device of distributed file system | |
| CN109041255A (en) | A kind of cut-in method and UE | |
| Jin et al. | Content routing and lookup schemes using global bloom filter for content-delivery-as-a-service | |
| CN114138475A (en) | A data transmission load balancing method, device, device and storage medium | |
| US6937579B2 (en) | Electronic device connection resource management | |
| CN114880071B (en) | Cluster configuration method and its device, equipment, medium, and product | |
| CN117435129A (en) | Storage cluster expansion method and device, computer equipment and storage medium | |
| CN102647424B (en) | Data transmission method and data transmission device | |
| CN114827199A (en) | Device migration method and device, computer device and storage medium | |
| CN114385596A (en) | Data processing method and device |
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application | Ref document number:24876541 Country of ref document:EP Kind code of ref document:A1 |