使用Redis分佈式鎖處理併發,解決超賣問題

1、使用Apache ab模擬併發壓測 一、壓測工具介紹 $ ab -n 100 -c 100 http://www.baidu.com/html -n表示發出100個請求,-c模擬100個併發,至關是100我的同時訪問。java 還能夠這樣寫:redis $ ab -t 60 -c 100 http://www.baidu.com/spring -t表示60秒,-c是100個併發,會在連續60秒
相關文章
相關標籤/搜索