 > ## 要从并发角度考虑问题,而且还是有线程失败的特殊情况下会发生的角度!!!  # redis前面再加一层缓存判断     # 使用zookeeper设置全局变量解决上面问题  <div> <img src="https://user-images.githubusercontent.com/18660671/161670866-fe905387-202a-4dba-a7a9-c57d88094432.png" height=300 width= 370 /> </div> <div> <img src="https://user-images.githubusercontent.com/18660671/161670880-a6ece05e-37ef-4816-b765-b4f7ca68511d.png" height=300 width= 370 /> </div>