Distributed ID generation method and device
The invention provides a distributed ID generation method and device, and is applied to the technical field of computer software, the method comprises the steps that a request message sent by a client based on a transmission control protocol (TCP) link is received, the request message is used for th...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a distributed ID generation method and device, and is applied to the technical field of computer software, the method comprises the steps that a request message sent by a client based on a transmission control protocol (TCP) link is received, the request message is used for the client to request a server to generate a distributed ID, and the distributed ID is an ID under a target node in a distributed system; analyzing the request message based on a TCP protocol to obtain an analysis result; generating a distributed ID according to the analysis result; and sending a response message to the client through the TCP link, wherein the response message comprises the distributed ID. According to the method, the distributed ID is generated based on the TCP protocol, so that the duration of generating the distributed ID is shortened.
本申请提供一种分布式ID的生成方法及装置,应用于计算机软件技术领域,该方法包括接收客户端基于传输控制协议TCP链路发送的请求报文,所述请求报文用于所述客户端请求服务端生成分布式ID,所述分布式ID为分布式系统中目标节点下的ID;基于TCP协议解析所述请求报文,得到解析结果;根据所述解析结果生成分布式ID;通过所述TCP链路向所 |
---|