码迷,mamicode.com
首页 > 其他好文 > 详细

tmp

时间:2019-08-14 22:06:54      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:ISE   dmi   signed   地址   block   中心   fine   func   other   

 

@1
accesstoken中控服务器


并发锁

1)AccessToken中控服务器:

负责: 提供主动刷新和被动刷新机制来刷新accessToken并存储(为了防止并发刷新,注意加并发锁),提供给业务逻辑有效的accessToken。

 

@2
def throw_exception(message, exception_class=FormatException):
"""my define raise exception function"""
raise exception_class(message)


@3
https://tools.ietf.org/html/rfc4122.html

A UUID is 128 bits long, and requires no central
registration process.


One of the main reasons for using UUIDs is that no centralized
authority is required to administer them (although one format uses
IEEE 802 node identifiers, others do not).

10 million per second per machine

A UUID is an identifier that is unique across both space and time,
with respect to the space of all UUIDs.


Generating a UUID does not require that a registration authority
be contacted. One algorithm requires a unique value over space
for each generator. This value is typically an IEEE 802 MAC
address, usually already available on network-connected hosts.
The address can be assigned from an address block obtained from
the IEEE registration authority.

去中心化检验的的借助mac地址和时间戳实现的唯一性

mac地址有中心化管理的机制


import subprocess
import subprocess

output = subprocess.Popen([‘ls‘,‘-l‘],stdout=subprocess.PIPE,shell=True).communicate()
print output[0]
1

 

tmp

标签:ISE   dmi   signed   地址   block   中心   fine   func   other   

原文地址:https://www.cnblogs.com/yuanjiangw/p/11354629.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!