一、上游服务比下游服务抗压能力应该更强一些,因为直接面对的是前端。Semphore控制访问特定资源的线程数目。实际场景可用于限流。在hystrix里面用了。
另:ReadWriteLock的作用是什么?