erlang - how to limit message queue or emulate it?

前端 未结 3 1775
Happy的楠姐
Happy的楠姐 2021-01-13 08:51

Right now I am doing Process ! Message, but as i googled a bit, a message queue size is only limited to memory. I have a tree of processes where leaves generate messages and

3条回答
  •  一向
    一向 (楼主)
    2021-01-13 09:18

    RabbitMQ implements this in the form of Credit Flow. More info on this blog post: http://videlalvaro.github.io/2013/09/rabbitmq-internals-credit-flow-for-erlang-processes.html

提交回复
热议问题