



技术领域technical field
本发明涉及网络数据处理,尤其涉及网络数据处理中的数字识别码生成技术。The invention relates to network data processing, in particular to digital identification code generation technology in network data processing.
背景技术Background technique
数字识别码用于标识网络相关的数据服务中的各笔具体的数据处理,再次提及的各笔数据处理例如是网络金融服务中的各笔交易。The digital identification code is used to identify each specific data processing in network-related data services, and each data processing mentioned again is, for example, each transaction in online financial services.
数字识别码的生成通常采用即用即分配的方式顺序生成。具体地说,当需要为新的数据服务的具体数据处理给予新的识别码时,便从数据库中取得存放的数字识别码,或者是取得该数字识别码后对其加1作为该具体输出处理的数字识别码,后一种情况对应的是数据库中所存放的是已分配过的数字识别码。Digital IDs are typically generated sequentially in a ready-to-use, distributed manner. Specifically, when a new identification code needs to be given for the specific data processing of the new data service, the stored digital identification code is obtained from the database, or the digital identification code is obtained and added to it as the specific output processing In the latter case, the digital identification code stored in the database is assigned.
这种方式下,如果数据服务并发量大,针对存放数字识别码的数据库的访问(即针对该数据库的读和写操作)将非常频繁,有可能导致数据库瘫痪;而且在这种并发访问超过一定数量时,可能会造成读写操作效率低下。In this way, if the data service has a large amount of concurrency, the access to the database storing the digital identification code (that is, the read and write operations to the database) will be very frequent, which may cause the database to be paralyzed; and when this concurrent access exceeds a certain When the number is large, it may cause inefficient read and write operations.
发明内容Contents of the invention
本发明提供一种数字识别码生成系统,可解决上述问题。本发明所述的数字识别码生成系统可包括数字识别码服务端,与所述数字识别码服务端耦接的客户端,其中,所述数字识别码服务端包括存储数字识别码相关参数的参数存储模块,与所述参数存储模块耦接的数字识别码分配模块,其中,响应于所述客户端获取数字识别码的请求,所述数字识别码分配模块基于存储在所述参数存储模块的数字识别码基码、按照存储在所述参数存储模块的数字识别码分配量所指定的数量分配数字识别码,所述客户端设置有存储所接收的数字识别码的存储模块以及根据所分配的数字识别码,再分配数字识别码的客户端分配模块。The invention provides a digital identification code generation system, which can solve the above problems. The digital identification code generation system according to the present invention may include a digital identification code server, and a client coupled to the digital identification code server, wherein the digital identification code server includes parameters for storing relevant parameters of the digital identification code A storage module, a digital identification code distribution module coupled to the parameter storage module, wherein, in response to the client's request for obtaining a digital identification code, the digital identification code distribution module is based on the digital identification code stored in the parameter storage module The identification code base code, according to the number specified by the digital identification code distribution amount stored in the parameter storage module, distributes the digital identification code, and the client is provided with a storage module for storing the received digital identification code and according to the assigned digital identification code Identification code, and then assign the client-side distribution module of the digital identification code.
优选地,所述数字识别码服务端还包括数字识别码基码更新模块,所述更新模块在所述数字识别码服务端分配了数字识别码之后即用已分配的数字识别码中的最大数字识别码更新所述数字识别码基码。Preferably, the digital identification code server further includes a digital identification code base code updating module, and the updating module uses the largest number in the allocated digital identification code after the digital identification code server has allocated the digital identification code. The identification code updates the digital identification code base code.
优选地,所述客户端分配模块基于所述存储模块存储的数字识别码,依照时间顺序向所述客户端的应用所进行的各笔数据服务分配数字识别码。Preferably, the client allocation module assigns a digital identification code to each data service performed by the application of the client in chronological order based on the digital identification code stored in the storage module.
本发明还提供一种客户端,其与生成数字识别码的数字识别码服务端耦接,其中,所述客户端包括应用数字识别码的多个应用、用于存储由所述数字识别码服务端分配的多个数字识别码的存储模块、以及根据所分配的数字识别码,再分配数字识别码给所述应用所进行的各笔数据服务的客户端分配模块,其中所述数字识别码处理服务端响应于所述客户端获取数字识别码的请求向所述客户端分配多个数字识别码。The present invention also provides a client, which is coupled to a digital identification code server that generates a digital identification code, wherein the client includes a plurality of applications that use the digital identification code, and is used to store A storage module for multiple digital identification codes allocated by the terminal, and a client allocation module for redistributing digital identification codes to each data service performed by the application according to the allocated digital identification codes, wherein the digital identification code processing The server assigns a plurality of digital identification codes to the client in response to the client's request for acquiring digital identification codes.
优选地,所述客户端分配模块基于所述存储模块存储的数字识别码,依照时间顺序向所述客户端的应用所进行的各笔数据服务分配数字识别码。Preferably, the client allocation module assigns a digital identification code to each data service performed by the application of the client in chronological order based on the digital identification code stored in the storage module.
本发明还提供一种数字识别码服务端,其与客户端耦接,其中,所述数字识别码服务端包括存储数字识别码相关参数的参数存储模块,与所述参数存储模块耦接的数字识别码分配模块,其中,响应于所述客户端获取数字识别码的请求,所述数字识别码分配模块基于存储在所述参数存储模块的数字识别码基码、按照存储在所述参数存储模块的数字识别码分配量所指定的数量分配数字识别码。The present invention also provides a digital identification code server, which is coupled with a client, wherein the digital identification code server includes a parameter storage module for storing relevant parameters of the digital identification code, and the digital identification code coupled with the parameter storage module An identification code allocation module, wherein, in response to the client's request for obtaining a digital identification code, the digital identification code allocation module is based on the digital identification code base code stored in the parameter storage module, according to the The number of numeric IDs specified in Allocation Amount of NIDs is allocated.
优选地,还包括数字识别码基码更新模块,所述更新模块在所述数字识别码服务端分配了数字识别码之后即用已分配的数字识别码中的最大数字识别码更新所述数字识别码基码。Preferably, it also includes a digital identification code base code updating module, which updates the digital identification code with the largest digital identification code in the distributed digital identification codes after the digital identification code server distributes the digital identification code code base code.
本发明还提供一种数字识别码生成方法,其应用在包括相互耦接的数字识别码服务端与客户端的系统中,所述方法包括:The present invention also provides a method for generating a digital identification code, which is applied in a system including a digital identification code server and a client coupled to each other, and the method includes:
所述客户端向所述数字识别码服务端发送获取数字识别码的请求;The client sends a request for obtaining a digital identification code to the digital identification code server;
响应于该请求,所述数字识别码服务端基于已有的数字识别码基码,按照预先存储的数字识别码分配量指定的数量分配数字识别码给所述客户端;以及In response to the request, the digital identification code server assigns the digital identification code to the client according to the number specified by the pre-stored digital identification code distribution amount based on the existing digital identification code base code; and
所述客户端存储所述数字识别码,并将所述数字识别码依次分配给所述客户端的应用所涉及的各笔数据服务。The client stores the digital identification code, and sequentially distributes the digital identification code to each data service involved in the application of the client.
所述方法中,优选地,所述数字识别码服务端在分配了所述数字识别码之后,将所述数字识别码基码更新为已分配的数字识别码中的最大数字识别码。In the method, preferably, after the digital identification code is allocated by the digital identification code server, the digital identification code base code is updated to the largest digital identification code among the allocated digital identification codes.
本发明还提供一种执行在客户端的数字识别码维护方法,所述客户端与生成数字识别码的数字识别码服务端耦接,所述方法包括所述客户端向所述数字识别码服务端发送获取数字识别码的请求;所述客户端在接收到来自所述数字识别码服务端的数字识别码之后,存储所接收到的数字识别码并依次分配给设置在其中的客户端应用所涉及的各笔数据服务;其中,响应于所述客户端获取数字识别码的请求,所述数字识别码服务端根据数字识别码基码、按照预先存储的数字识别码分配量所指定的数量分配数字识别码。The present invention also provides a method for maintaining a digital identification code executed on a client, where the client is coupled to a digital identification code server that generates a digital identification code, and the method includes sending the digital identification code from the client to the digital identification code server Send a request to obtain a digital identification code; after the client receives the digital identification code from the digital identification code server, it stores the received digital identification code and assigns it to the client application set in it in turn. Each data service; wherein, in response to the client’s request to obtain a digital identification code, the digital identification code server allocates digital identification codes according to the digital identification code base code and according to the number specified by the pre-stored digital identification code distribution amount code.
本发明还提供一种执行在数字识别码服务端的识别码处理方法,所述数字识别码服务端与客户端耦接,其特征在于,所述数字识别码服务端响应于所述客户端获取数字识别码的请求,基于数字识别码基码,按照预先存储的数字识别码分配量指定的数量分配数字识别码给所述客户端。The present invention also provides an identification code processing method performed on the digital identification code server, the digital identification code server is coupled to the client, and the feature is that the digital identification code server responds to the client to obtain the digital The identification code request is based on the digital identification code base code, and the digital identification code is allocated to the client according to the number specified by the pre-stored digital identification code distribution amount.
所述执行在数字识别码服务端的识别码处理方法中,优选地,所述数字识别码服务端在分配了所述数字识别码之后,将所述数字识别码基码更新为所分配的数字识别码中的最大数字识别码。In the identification code processing method performed at the digital identification code server, preferably, after the digital identification code server has allocated the digital identification code, the digital identification code base code is updated to the allocated digital identification code The largest numeric identifier in the code.
本发明所述的解决方案,可在所述客户端存储多个数字识别码存储以供其多个应用依次使用,由此缓解了存放数字识别码的服务端的相关压力。The solution of the present invention can store a plurality of digital identification codes on the client side for sequential use by multiple applications thereof, thereby alleviating the related pressure on the server side storing the digital identification codes.
附图说明Description of drawings
图1是根据本发明的一个实施例的数字识别码生成系统的结构示意图。Fig. 1 is a schematic structural diagram of a digital identification code generating system according to an embodiment of the present invention.
图2是根据本发明所述的数字识别码生成方法的流程图。Fig. 2 is a flowchart of a method for generating a digital identification code according to the present invention.
图3是根据本发明的一个实施例的执行在客户端的数字识别码维护方法。Fig. 3 is a method for maintaining a digital identification code performed on a client side according to an embodiment of the present invention.
图4是根据本发明的一个实施例所述的执行在数字识别码服务端的识别码分配方法。Fig. 4 is a method for distributing an identification code executed on a digital identification code server according to an embodiment of the present invention.
具体实施方式Detailed ways
下文将参照附图全面描述本发明的实施例。应说明的是,本发明可实施为不同的形式,并不以在此所阐释的实施例为限。这些实施例的提供旨在使本公开透彻而完整,并将本发明的范围完整地传达给本领域技术人员。Hereinafter, embodiments of the present invention will be fully described with reference to the accompanying drawings. It should be noted that the present invention can be implemented in different forms and is not limited to the embodiments illustrated here. These embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
除非另有限定,否则在此使用的所有术语(包括技术和科学术语)都具有与本发明所属领域的普通技术人员所普遍理解的含义相同的含义。还应当进一步理解到,此处使用的术语应当解释为具有与其在本说明书和相关领域的背景中的含义相一致的含义,并且不应在理想化或过于形式的意义上来进行解释,除非本文明确地进行了这样的限定。Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It should be further understood that the terms used herein should be interpreted to have a meaning consistent with their meanings in this specification and in the context of the relevant art, and should not be interpreted in an idealized or overly formal sense, unless clearly stated herein made such a limitation.
图1是根据本发明的一个实施例的数字识别码生成系统的结构示意图。如图所示,该系统包括服务端10,与所述服务端耦接的客户端20。服务端10和客户端20均可以是数据处理装置,例如计算机。客户端10还可以是手持式电子设备,例如手机、ipad、MP4播放设备等。在该系统中,客户端可以有多个,在此示例但非限制性地以该系统包含一个客户端为例进行说明。Fig. 1 is a schematic structural diagram of a digital identification code generating system according to an embodiment of the present invention. As shown in the figure, the system includes a
客户端20上设置有应用201、存储模块203、以及客户端分配模块205,应用201用于处理数据服务,一个客户端20上可以设置有多个应用,以便处理不同类型的数据服务。每个应用在进行时可处理多笔交易。服务端10包括参数存储模块101,数字识别码分配模块103,和数字识别码基码更新模块105。参数存储模块101用于存储与数字识别码相关的参数,数字识别码分配模块103根据参数存储模块101所存储的相关参数分配数字识别码,数字识别码基码更新模块105则会在每次分配之后用已经分配的数字识别码中最大的数字识别码更新数字识别码基码。The
如上所述,客户端20设置有多个应用,每个应用在进行时可处理多笔交易。针对每个应用所进行的多笔交易中的每一笔都会分配一个数字识别码,而且该数字识别码优选地依序分配,例如按照各笔交易所进行的时间顺序分配,在这样的情况下,后一笔交易的数字识别码比前一笔交易的数据识别码大;但是本发明也不排除按照其它方式来分配数字识别码。As mentioned above, the
在本发明的示例中,服务端10的参数存储模块101存储如下参数:数字识别码最小值、数字识别码最大值、数字识别码分配量、以及数字识别码基码。数字识别码最小值和数字识别码最大值分别表征可使用的数字识别码的最小和最大值,即所使用的数字识别码在该范围之内。数字识别码分配量指明可一次性分配给客户端的供其使用的数字识别码的数目。In the example of the present invention, the
客户端20向服务端10发送请求,请求服务端10向其发送数字识别码。响应于该请求,服务端10向客户端20分配数字识别码分配量所指示的N个数字识别码,分配过程如下:服务端10接收到请求之后,根据数字识别码基码确认当前可分配的数字识别码的基数,随后根据数字识别码分配量参数确认按照该基数分配时,所产生的最大数字识别码是否小于或等于所述数字识别码最大值,如果是,便将起始于当前数字识别码基码加1的数作为要分配的最小数字识别码、总数为数字识别码分配量、而数字识别码基码加数字识别码分配量作为最大的数字识别码分配给客户端20。作为示例,本发明中,数字识别码的相邻两个码之间的差值为1,假设数字识别码基码为B,而数字识别码分配量参数为N(其表示可一次性分配N个数字识别码给发出请求的客户端),则在可分配给客户端20的数字识别码的最大值B+N不大于服务端10所存储的数字识别码最大值的情况下,将从B+1开始到B+N、总数为N的数字识别码分配给客户端20。随后,服务端10的数字识别码基码更新模块105即用B+N替代之前的数字识别码基码B。The
客户端20接收到分配的数字识别码之后,便将所分配的数字识别码的最小值B+1和最大值B+N存储到存储模块203。客户端20的客户端分配模块205在应用201的交易处理过程中从B+1开始依次向各笔交易给予数字识别码直到B+N;具体地,客户端分配模块205向当前正在发生的交易分配B+1,随后的交易则分配B+2,依次类推,直到分配到B+N;在分配中,客户端分配模块205会检查将要分配的数字识别码是否不大于B+N,如果不大于,则分配,如果大于,则通知客户端20再次向服务端10请求数字识别码。随后,客户端20再向服务端10请求分配数字识别码。服务端10即在B+N+N小于服务端10所存储的参数——数字识别码最大值的情况下,将从B+N+1开始到B+N+N、总数为N的数字识别码分配给客户端20。服务端10的数字识别码基码更新模块105即用B+N+N替代之前的数字识别码基码B+N。After the
在上述以及本公开后续的例子中,数字识别码基码表征的是已分配数字识别码中最大的数字识别码,作为替代,其也可以是已分配数字识别码中最大数字识别码加1等。在数字识别码基码表征的是已分配数字识别码中最大数字识别码加1的情况下,各例子中分配给客户端的数字识别码的起始数字识别码不再是数字识别码基码加1而是数字识别码基码本身。由于上述示例是以一个客户端应用201作为例子来说明的,所以在上述说明中分配给其的数字识别码是连续的。但本领域技术人员可以理解到,在有多个客户端应用的情况下,同一次分配给一个客户端应用的数字识别码是连续的,但再次分配给该客户端应用的数字识别码与前次分配给其的数字识别码不一定连续。In the above and subsequent examples of the present disclosure, the digital identification code base code represents the largest digital identification code among the assigned digital identification codes, as an alternative, it can also be the largest digital identification code among the assigned digital identification codes plus 1, etc. . In the case where the DID base represents the largest DID plus 1 among the assigned DIDs, the starting DID of the DID assigned to the client in each example is no longer the DID base plus 1. 1 instead of the DIN base code itself. Since the above example is described with one
与常规的即用即分配的数字识别码生成技术相比较,本发明所述的数字识别码生成系统可一次性向客户端分配多个数字识别码,从而该客户端应用在处理交易时,不必一笔一笔地向服务端请求识别码,而是从自身所在的客户端取得,如此,有效地降低了频繁访问对服务端所造成的压力。Compared with the conventional digital identification code generation technology that is ready to use and distribute, the digital identification code generation system of the present invention can distribute multiple digital identification codes to the client at one time, so that the client application does not need to process transactions. The identification code is requested from the server in one stroke, but obtained from the client where it is located. In this way, the pressure on the server caused by frequent access is effectively reduced.
图1中的客户端20为数据处理设备,与常规的数据处理设备相比,在输入部件、输出部件、处理器、网络接入部件等输出处理设备的基本部件之外,还包用于存储分配给其的数字识别码的存储模块203、以及根据其存储模块存储的数字识别码,再分配数字识别码的客户端分配模块205。The
同样,图1中的服务端10可为例如计算机等数据处理设备,与常规的数据处理设备相比,在输入部件、输出部件、处理器、网络接入部件等输出处理设备的基本部件之外,它还包括如上所述的参数存储模块101,数字识别码分配模块103,和数字识别码基码更新模块105。在一个可替代的实施例中,参数存储模块101、数字识别码分配模块103和数字识别码基码更新模块105可被集成在其处理器中。在另一个可替代的实施例中,参数存储模块101可集成在其存储部件中,而数字识别码分配模块103和数字识别码基码更新模块105可集成在其处理器中。Similarly, the
图1中的服务端10和客户端20可分别被单独使用,即,客户端20可与其它涉及数字识别码处理的设备耦接使用。与该客户端耦接的设备可响应于其请求,发送多个数字识别码给该客户端供其使用。作为示例,与该客户端耦接的设备只需要其可以处理客户端对数字识别码的相关请求并一次性分配给其多个数字识别码即可,其例如可以是服务端20类的设备。而服务端10可以和其它客户端耦接使用,并一次性发送多个数字识别码给客户端供其使用。The
图2是根据本发明所述的数字识别码生成方法的流程图。该方法应用在包括相互耦接的数字识别码服务端与客户端的系统中,该系统例如是如图1所示的数字识别码生成系统,但并不限于该系统。在以下的实施例中,以该方法应用在图1所示的系统中为例进行说明。Fig. 2 is a flowchart of a method for generating a digital identification code according to the present invention. The method is applied in a system including a digital identification code server and a client coupled to each other. The system is, for example, the digital identification code generation system shown in FIG. 1 , but is not limited to this system. In the following embodiments, the application of the method in the system shown in FIG. 1 is taken as an example for illustration.
在步骤300,客户端20向数字识别码服务端10发送获取数字识别码的请求。响应于该请求,在步骤302,数字识别码服务端10基于已有的数字识别码基码,按照预先存储的数字识别码分配量指定的数量生成数字识别码,并将生成的数字识别码发送给客户端20。在步骤304,客户端20存储所述数字识别码,并将所述数字识别码依次分配给所述客户端应用所涉及的各笔交易。进一步,在步骤302中,数字识别码服务端10在分配了数字识别码之后,即用已分配的数字识别码中最大的数字识别码更新数字识别码基码。In
如上文中结合图1所描述的,客户端20上设置有应用201、存储模块203、以及客户端分配模块205,应用201用于处理数据服务,一个客户端20上可以设置有多个应用,以便处理不同类型的数据服务。每个应用在进行时可处理多笔交易。服务端10包括参数存储模块101,数字识别码分配模块103,和数字识别码基码更新模块105。参数存储模块101用于存储与数字识别码相关的参数,数字识别码分配模块103根据参数存储模块101所存储的相关参数分配数字识别码,数字识别码基码更新模块105则会在每次分配之后用已经分配的数字识别码中最大的数字识别码更新数字识别码基码。As described above in conjunction with FIG. 1, the
参考图2,本实施例中,客户端20向数字识别码服务端10发送获取数字识别码的请求(步骤300)之后,由服务端10所获得的数字识别码将首先存储在客户端20的存储模块203中,并且由客户端再分配模块205依据所存储的数字识别码,向应用201执行时所涉及的各笔交易依序分配数字识别码;例如按照各笔交易所进行的时间顺序分配,在这样的情况下,后一笔交易的数字识别码比前一笔交易的数据识别码大;但是本发明也不排除以其它顺序或规则来分配数字识别码的方式。Referring to FIG. 2 , in this embodiment, after the
服务端10的参数存储模块101存储如下参数:数字识别码最小值、数字识别码最大值、数字识别码分配量、以及数字识别码基码。数字识别码最小值和数字识别码最大值分别表征可使用的数字识别码的最小和最大值,即所使用的数字识别码在该范围之内。数字识别码分配量指明按照客户端的请求,可一次性分配给客户端的供其使用的数字识别码的数目。The
服务端10在接收到来自客户端20的数字识别码分配请求之后,向客户端20分配(步骤302)数字识别码分配量所指示的例如N个数字识别码,具体而言,服务端10在接收到请求之后,首先获得数字识别码基码(例如为B),随后根据数字识别码分配量N以及数字识别码分配时,所产生的最大数字识别码是否小于或等于所述数字识别码最大值,如果是,便将数字识别码基码加1作为要分配的数字识别码的最小值、将当前数字识别码基码加N作为要分配的数字识别码的最大值,总数为数字识别码分配量的数字识别码分配给客户端20。作为示例,数字识别码的相邻两个码之间的差值为1。若数字识别码基码为B,而数字识别码分配量为N,则在可分配给客户端20的数字识别码的最大值,即B+N不大于服务端10所存储的数字识别码最大值的情况下,将从B+1开始到B+N结束、总数为N的数字识别码分配给客户端20。进一步,服务端10的数字识别码基码更新模块105即用B+N替代之前的数字识别码基码B。After receiving the digital identification code allocation request from the
回到图2的步骤304,客户端20接收到分配的数字识别码之后,便将所分配的数字识别码的最小值B+1和最大值B+N存储到存储模块203。客户端20的客户端分配模块205在应用201的交易处理过程中从B+1开始依次向各笔交易给予数字识别码直到B+N;具体地,客户端分配模块205向当前正在发生的交易分配B+1,随后的交易则分配B+2,依次类推,直到分配完B+N;在分配中,客户端分配模块205会检查将要分配的数字识别码是否不大于B+N,如果不大于,则分配,如果大于,则通知客户端20再次向服务端10请求数字识别码。随后,客户端20再次执行图2所示的方法,向服务端10请求分配数字识别码。服务端10即在B+N+N小于服务端10所存储的参数——数字识别码最大值的情况下,将从B+N+1开始到B+N+N、总数为N的数字识别码分配给客户端20。服务端10的数字识别码基码更新模块105即用B+N+N替代之前的数字识别码基码B+N。Returning to step 304 in FIG. 2 , after receiving the assigned digital identification code, the
图3是根据本发明的一个实施例的执行在客户端的数字识别码维护方法。该客户端与分配数字识别码的数字识别码服务端耦接。该客户端可以是上文中描述的客户端,例如图1中所示意的客户端20;该服务端可以是上文中描述的服务端,例如图1中所示意的服务端10。以下即结合图1中所示的客户端20来示例性而非限制性地描述该维护方法。Fig. 3 is a method for maintaining a digital identification code performed on a client side according to an embodiment of the present invention. The client is coupled to a digital identification code server that distributes digital identification codes. The client may be the client described above, such as the
在步骤400,客户端20向数字识别码服务端发送获取数字识别码的请求。客户端20上设置有应用201、存储模块203、以及客户端分配模块205,应用201用于处理数据服务,一个客户端20上可以设置有多个应用,以便处理不同类型的数据服务。每个应用在进行时可处理多笔交易。In
在步骤402,客户端20接收到数字识别码服务端所分配的数字识别码,并将其存储在存储模块203中。根据本发明的一个实施例,数字识别码服务端存储了如下参数:数字识别码最小值、数字识别码最大值、数字识别码分配量、以及数字识别码基码。数字识别码最小值和数字识别码最大值分别表征可使用的数字识别码的最小和最大值,即所使用的数字识别码在该范围之内。数字识别码分配量指明按照客户端的请求,可一次性分配给客户端的供其使用的数字识别码的数目。服务端分配给客户端的数字识别码是按照如下方式分配的:服务端在接收到请求之后,首先获得数字识别码基码(例如为B),随后根据数字识别码分配量(例如为N)确认按照该基码以及该分配量进行分配时,所产生的最大数字识别码是否小于或等于所述数字识别码最大值,如果是,便将数字识别码基码加1作为要分配的数字识别码的最小值、数字识别码基码加N作为要分配的数字识别码的最大值,总数为数字识别码分配量的数字识别码分配给客户端20。作为示例,数字识别码的相邻两个码之间的差值为1,假设数字识别码基码为B,而数字识别码分配量参数为N,则在可分配给客户端20的数字识别码的最大值,即B+N不大于服务端所存储的数字识别码最大值的情况下,将从B+1开始到B+N结束、总数为N的数字识别码分配给客户端20。进一步,服务端10的数字识别码基码更新模块105即用B+N替代之前的数字识别码基码B。In
在步骤404,客户端20存储分配给其的数字识别码,并将所述数字识别码依次分配给位于所述客户端的应用所涉及的各笔交易。具体地,客户端20接收到分配的数字识别码之后,便将所分配的数字识别码的最小值B+1和最大值B+N存储到存储模块203。客户端20的客户端分配模块205在应用201的交易处理过程中从B+1开始依次向各笔交易给予数字识别码直到B+N;具体而言,客户端分配模块205向当前正在发生的交易分配B+1,随后的交易则分配B+2,依次类推,直到分配完B+N;在分配中,客户端分配模块205会检查将要分配的数字识别码是否不大于B+N,如果不大于,则分配,如果大于,则通知客户端20再次向服务端10请求数字识别码。随后,客户端20再次执行图2所示的方法,向服务端10请求分配数字识别码。服务端10即在B+N+N小于服务端10所存储的参数——数字识别码最大值的情况下,将从B+N+1开始到B+N+N、总数为N的数字识别码分配给客户端20。服务端10的数字识别码基码更新模块105即用B+N+N替代之前的数字识别码基码B+N。In
图4是根据本发明的一个实施例所述的执行在数字识别码服务端的识别码分配方法。该服务端与需要数字识别码的客户端耦接。该服务端可以是上文中描述的服务端,例如图1中所示意的服务端10;而该客户端可以是上文中描述的客户端,例如图1中所示意的客户端20。以下即结合图1中所示的服务端20来示例性而非限制性地描述该分配方法。Fig. 4 is a method for distributing an identification code executed on a digital identification code server according to an embodiment of the present invention. The server is coupled with a client that requires a digital ID. The server may be the server described above, such as the
在步骤500,数字识别码服务端响应于客户端对数字识别码的请求,基于数字识别码基码,按照预先存储的数字识别码分配量指定的数量分配数字识别码给客户端。在步骤502,数字识别码服务端在分配了数字识别码之后,便会更新数字识别码基码,即用已分配的数字识别码中的最大数字识别码来更新数字识别码基码。In
服务端10包括参数存储模块101,数字识别码分配模块103,和数字识别码基码更新模块105。参数存储模块101用于存储与数字识别码相关的参数,数字识别码分配模块103根据参数存储模块101所存储的相关参数分配数字识别码,数字识别码基码更新模块105则会在每次分配之后用已经分配的数字识别码中最大的数字识别码更新数字识别码基码。The
回到步骤500,响应于客户端的请求,服务端10根据数字识别码基码(例如为B)确认当前可分配的数字识别码的基数,随后确认按照数字识别码分配量(例如为N)以及该数字识别码基码进行分配时,所产生的最大数字识别码是否不大于所述数字识别码最大值,如果是,便将数字识别码基码加1作为分配给客户端的最小数字识别码、数字识别码基码加N作为分配给客户端的最大数字识别码,总数为数字识别码分配量参数所指示的数字识别码分配给客户端20。作为示例,本发明中,数字识别码的相邻两个码之间的差值为1,假设数字识别码基码为B,而数字识别码分配量参数为N(其表示可一次性分配N个数字识别码发出请求的客户端),则在可分配给客户端20的数字识别码的最大值B+N小于服务端10所存储的数字识别码最大值的情况下,将从B+1开始到B+N、总数为N的数字识别码分配给客户端20。随后,服务端10的数字识别码基码更新模块105即用B+N替代之前的数字识别码基码B。Returning to step 500, in response to the request from the client, the
随后,在步骤502,服务端10的数字识别码基码更新模块105即用B+N+N替代之前的数字识别码基码B+N。Subsequently, in
如上所述的系统、客户端、服务端、以及方法应用在可包括多家机构的数据服务处理系统中时,上述示例中,服务端中的数字识别码最小值和数字识别码的最小值之间的数字识别码针对的是已经构建到该数据服务处理系统中的机构。针对那些还没有构建到该系统中的机构的数据识别码,可通过两种方式将用于它们的数字识别码配置进去,一个是人工配置,即在涉及该机构的数据服务没有进行之前,即将针对它的数据识别码配置进去,再就是在数据服务进行中插入全局识别码中,亦即在进行到该机构的数据服务时,即由服务端产生针对该机构的数字识别码。When the above-mentioned system, client, server, and method are applied to a data service processing system that may include multiple institutions, in the above example, the minimum value of the digital identification code in the server and the minimum value of the digital identification code The numeric identifiers in between are for organizations that have built into this data service processing system. For the data identification codes of institutions that have not yet been built into the system, the digital identification codes used for them can be configured in two ways. One is manual configuration, that is, before the data services involving the institution are performed, the Configure the data identification code for it, and then insert the global identification code during the data service, that is, when the data service of the organization is performed, the server will generate the digital identification code for the organization.
此外,虽然没有具体描述,但本领域技术人员可以理解到,数字识别码分配量是可配置的,其可根据实际情况配置为不同的值。作为示例,可动态调节数字识别码分配量,比如,通过一个监控模块动态地采集服务端内交易数量的情况,在交易数量较大时,将数字识别码分配量根据单位时间内交易数量与客户端数量的比值来进行调整,该比值较大,则将数字识别码分配量调整得大些,反之则调整得小些。In addition, although not specifically described, those skilled in the art can understand that the allocation amount of the digital identification code is configurable, and can be configured as a different value according to actual conditions. As an example, the distribution amount of the digital identification code can be dynamically adjusted. For example, a monitoring module can dynamically collect the transaction quantity in the server. The ratio of the number of terminals is adjusted. If the ratio is larger, the allocation amount of the digital identification code is adjusted to be larger, otherwise, the amount is adjusted to be smaller.
另外,需要说明的是,在上文所述的系统和方法中,如果数字识别码的最大值和最小值之间的识别码(包括该最大值和最小值)已经全部分配完毕,则再次从该识别码最小值和最大值之间开始分配,比如从最小值开始进行分配。In addition, it should be noted that, in the system and method described above, if the identification codes between the maximum value and the minimum value of the digital identification code (including the maximum value and the minimum value) have all been allocated, then from The identification code is distributed between the minimum value and the maximum value, for example, the distribution starts from the minimum value.
本发明所示的各个示例中,包括客户端应用的客户端每次可向服务端获取一定数量的数字识别码,从而在客户端应用和服务端之间设立了数字识别码的缓冲区域,从而减轻了因频繁访问引起的服务端压力,也改善了服务端的效率。In each example shown in the present invention, the client including the client application can obtain a certain number of digital identification codes from the server each time, thereby setting up a buffer area for digital identification codes between the client application and the server, thereby The pressure on the server side caused by frequent access is reduced, and the efficiency of the server side is also improved.
尽管在附图和说明书中,已经公开了本发明的典型实施例,但其并不用于限制的目的,本发明的范围由所附的权利要求所限定。While there have been disclosed typical embodiments of the invention in the drawings and specification, these are not intended for limiting purposes, the scope of the invention being defined by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210168047.XACN103455481B (en) | 2012-05-28 | 2012-05-28 | Digital code generates system and method |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210168047.XACN103455481B (en) | 2012-05-28 | 2012-05-28 | Digital code generates system and method |
| Publication Number | Publication Date |
|---|---|
| CN103455481Atrue CN103455481A (en) | 2013-12-18 |
| CN103455481B CN103455481B (en) | 2016-12-14 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210168047.XAActiveCN103455481B (en) | 2012-05-28 | 2012-05-28 | Digital code generates system and method |
| Country | Link |
|---|---|
| CN (1) | CN103455481B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106210091A (en)* | 2016-07-18 | 2016-12-07 | 百融(北京)金融信息服务股份有限公司 | Mark generates and management method and system |
| CN106506663A (en)* | 2016-11-22 | 2017-03-15 | 北京科摩仕捷科技有限公司 | A kind of number distributing method, server and system |
| CN107846412A (en)* | 2017-11-28 | 2018-03-27 | 五八有限公司 | Identifying code request processing method, device and identifying code processing system |
| CN111325511A (en)* | 2020-03-11 | 2020-06-23 | 上海东普信息科技有限公司 | Express item bar code management method, device, equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1313554A (en)* | 2000-03-10 | 2001-09-19 | 张凯 | Information management system for visiting cards |
| US20080059228A1 (en)* | 2004-04-24 | 2008-03-06 | Christopher Bossi | Operation Of A Remote Medication Management System |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1313554A (en)* | 2000-03-10 | 2001-09-19 | 张凯 | Information management system for visiting cards |
| US20080059228A1 (en)* | 2004-04-24 | 2008-03-06 | Christopher Bossi | Operation Of A Remote Medication Management System |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106210091A (en)* | 2016-07-18 | 2016-12-07 | 百融(北京)金融信息服务股份有限公司 | Mark generates and management method and system |
| CN106506663A (en)* | 2016-11-22 | 2017-03-15 | 北京科摩仕捷科技有限公司 | A kind of number distributing method, server and system |
| CN106506663B (en)* | 2016-11-22 | 2019-04-02 | 北京科摩仕捷科技有限公司 | A kind of number distributing method, server and system |
| CN107846412A (en)* | 2017-11-28 | 2018-03-27 | 五八有限公司 | Identifying code request processing method, device and identifying code processing system |
| CN111325511A (en)* | 2020-03-11 | 2020-06-23 | 上海东普信息科技有限公司 | Express item bar code management method, device, equipment and storage medium |
| Publication number | Publication date |
|---|---|
| CN103455481B (en) | 2016-12-14 |
| Publication | Publication Date | Title |
|---|---|---|
| CN105224392B (en) | A kind of virtual computing resource quota management method and platform | |
| CN107291546B (en) | A resource scheduling method and device | |
| CN108510389A (en) | Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain | |
| CN109451088A (en) | A kind of data access method and device | |
| CN103297412B (en) | Thin client system, connection management server, connection management method and computer-readable medium | |
| CN109379448B (en) | File distributed deployment method and device, electronic equipment and storage medium | |
| CN110209490A (en) | A memory management method and related equipment | |
| CN110515969A (en) | Data query processing method, electronic device, computer equipment and storage medium | |
| CN101799797A (en) | Dynamic allocation method of user disk quota in distributed storage system | |
| WO2017088393A1 (en) | Bandwidth allocation method and system | |
| CN103455481B (en) | Digital code generates system and method | |
| WO2020119029A1 (en) | Distributed task scheduling method and system, and storage medium | |
| CN111163186B (en) | ID generation method, device, equipment and storage medium | |
| CN110891087B (en) | A log transmission method, device, electronic device and storage medium | |
| CN106302640A (en) | Data request processing method and device | |
| JP2018180942A (en) | Distributed data management program, distributed data management method, and distributed data management device | |
| CN111179008B (en) | Information state updating method, device, system and storage medium | |
| CN109582445A (en) | Message treatment method, device, electronic equipment and computer readable storage medium | |
| WO2021036319A1 (en) | Data cleaning method and system | |
| CN112671871A (en) | Mirror image distribution method and device, terminal equipment and storage medium | |
| CN110750517A (en) | A data processing method, device and device of a local storage engine system | |
| CN105607955A (en) | Calculation task distribution method and apparatus | |
| JP6093315B2 (en) | Computer resource management apparatus, computer resource management method, and computer resource management program | |
| CN106469091A (en) | Method and apparatus for distributing available area | |
| KR101728873B1 (en) | Graph query language distribution process system and query language distribution process method thereof |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |