[Erlang危机](3.4)习题



Exercises

练习

Review Questions
复习问题:

[1]. Name the common sources of overload in Erlang systems
[2]. What are the two main classes of strategies to handle overload?
[3]. How can long-running operations be made safer?
[4]. When going synchronous, how should timeouts be chosen?
[5]. What is an alternative to having timeouts?
[6]. When would you pick a queue buffer before a stack buffer?

[1]. 列出Erlang系统中常见的过载源。
[2]. 处理过载2个最基本的策略是什么。
[3]. 怎样确保一个费时的操作安全?
[4]. 当使用同步机制时,规定timeout的原则是?
[5]. 还有什么方法可以替代设置timeout?
[6]. 什么情况下优先使用队列缓冲,而不是堆栈缓冲?

Open-ended Questions
开放式问题

[1]. What is a true bottleneck? How can you find it?
[2]. In an application that calls a third party API, response times vary by a lot depending on how healthy the other servers are. How could one design the system to prevent occasionally slow requests from blocking other concurrent calls to the same service?
[3]. What’s likely to happen to new requests to an overloaded latency-sensitive service where data has backed up in a stack buffer? What about old requests?
[4]. Explain how you could turn a load-shedding overload mechanism into one that can also provide back-pressure.
[5]. Explain how you could turn a back-pressure mechanism into a load-shedding mechanism. [6]. What are the risks, for a user, when dropping or blocking a request? How can we prevent duplicate messages or missed ones?
[7]. What can you expect to happen to your API design if you forget to deal with overload, and suddenly need to add back-pressure or load-shedding to it?

[1].什么才是真正的瓶颈,你怎么去发现它?
[2].在一个调用第三方API的应用程序中,响应时间通常都是依赖与别的服务器是不是正常。怎样设计系统来避免有时请求会变慢?
[3]. 当一个数据备份在堆栈缓冲区的低延迟服务过载时,一个新的请求再来时,会发生什么?旧的请求又会怎样?
[4]. 解释一下:你怎么把一个限制过载机制加到系统中,让它可以支持back-pressure.
[5]. 解释一下:你怎么把一个back-pressure机制加入一个限制过载的系统中.
[6]. 当丢弃或阻塞请求时,对用户有什么风险?怎样才能防止重复消息或错过消息?
[7]. 如果你忘记处理过载了,你在设计API时会还要做什么?实然需要加入back-pressure或load-shedding?
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值