0.13.0-beta 版本

发布日期: 2015-11-08

Highlights

Rate Limiting based on [Token Bucket](https://en.wikipedia.org/wiki/Token_bucket0.13.0-beta 版本 - 图1 (opens new window)) and [Leaky Bucket](https://en.wikipedia.org/wiki/Leaky_bucket#The_Leaky_Bucket_Algorithm_as_a_Meter0.13.0-beta 版本 - 图2 (opens new window)) Algorithm

Upgrade eSockd and MochiWeb libraries to support Parameterized Connection Module

Improve emqttd_client to support fully asynchronous socket networking

Enhancements

Protocol Compliant - Session Present Flag (#163)

Compilation fails if repo is cloned with a different name (#348)

emqttd_client: replace gen_tcp:send with port_command (#358)

TCP sndbuf, recbuf, buffer tuning (#359)

emqttd_client.erl to handle ‘inet_async’, ‘inet_reply’ properly (#360)

Refator the [client/session management design](https://github.com/emqtt/emqttd/blob/master/doc/design/ClientSession.md0.13.0-beta 版本 - 图3 (opens new window))

Bugfix

Cannot kick transient client out when clientId collision (#357)

Fix the order of emqttd_app:start_server/1 (#367)

emqttd_session:subscribe/2 will crash (#374)

Benchmark

[benchmark for 0.13.0 release](https://github.com/emqtt/emqttd/wiki/benchmark-for-0.13.0-release0.13.0-beta 版本 - 图4 (opens new window))

3.1G memory and 50+ CPU/core:

  1. Connections: 250K
  2. Subscribers: 250K
  3. Topics: 50K
  4. Qos1 Messages/Sec In: 4K
  5. Qos1 Messages/Sec Out: 20K
  6. Traffic In(bps): 12M+
  7. Traffic Out(bps): 56M+