Erlang/Elixir精选-第4期(20191223)

2022-10-12,,

精选文章

  1. a digital symphony — the architecture of api fortress.
    使用actor模型来支持基于微服务的大规模分布式软件架构。用实例解释了actor对于分解复杂系统的好处。
    understanding actor concurrency, part 1: actors in erlang。
    但也观点说actor并不是好的并发模型,actors are not a good concurrency model。

  2. rabbitmq 3.8 release overview.
    支持prometheus and grafana 监控。我最近打算用elixir从零写一个http(s) 压力测试工具,前端展示本来是想用phoenix liveview来做展示的,但看到这个后,直接替换成grafana,省掉了非常多的工作,且更图表更专业。

  3. elixir http benchmark - ace vs cowboy.
    http server简单压测结果。图中cowboy-static的静态页面请求比自己想象中的慢很多。

  4. clever use of persistent_term.
    比ets:update_counter更快的自增操作!内存分配策略更佳,新版本的logger就是使用的它。····

  5. erlang, pattern matching on a particular map's key?
    解释了为什么下面map的匹配模式是编译不过的。
        count([], acc) -> acc;
        count([a|rest], #{a := n} = acc) -> count(rest, acc#{a := n+1});
        count([a|rest], acc) -> count(rest, acc#{a := 1}).

)

投稿或推荐,精选每周一发布,同步更新在,。

《Erlang/Elixir精选-第4期(20191223).doc》

下载本文的Word格式文档,以方便收藏与打印。