原书出处
System Design Interview – An insiders guide, Second Edition
04 限流器
Race condition As discussed earlier, rate limiter works as follows at the high-level: •Read the counter value from Redis. •Check if (counter + 1) exceeds the threshold. •If not, increment the counter value by 1 in Redis. Race conditions can happen in a highly concurrent environment as shown in Figure 4-14. Assume the counter value in Redis is 3. If two requests concurrently read the
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/System Design Interview – An insiders guide, Second Edition/_epub-src/text/part0010_split_000.html
EPUB SHA-256:ffc3a97753094acb30719f26589af322724b6c17c10371f0626e61687734b345