<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>nbkhic (easonhan)</title>
    <link>https://ruby-china.org/nbkhic</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>25,000+ Req/s for Rack JSON API with MRuby</title>
      <description>&lt;p&gt;原文在&lt;a href="http://lucaguidi.com/2015/12/09/25000-requests-per-second-for-rack-json-api-with-mruby.html" rel="nofollow" target="_blank" title=""&gt;这里&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;一句话描述是使用用 mruby+ Rack + &lt;a href="https://h2o.examp1e.net/" rel="nofollow" target="_blank" title=""&gt;H2O&lt;/a&gt;+Redis 实现了 1 个 25,000Req/s 的 json endpoint。&lt;/p&gt;

&lt;p&gt;这样看来性能其实已经够用了，问题是这样的解决方案能否用在生产环境，还是这只是个 demo，用来演示一下 MRuby 其实未来有无限可能？&lt;/p&gt;</description>
      <author>nbkhic</author>
      <pubDate>Thu, 10 Dec 2015 09:10:02 +0800</pubDate>
      <link>https://ruby-china.org/topics/28332</link>
      <guid>https://ruby-china.org/topics/28332</guid>
    </item>
    <item>
      <title>geetest ruby sdk</title>
      <description>&lt;p&gt;前一段时间一直在找一个简单好用的验证码，后来不出意外的找到了&lt;a href="http://geetest.com/" rel="nofollow" target="_blank" title=""&gt;geetest&lt;/a&gt;。由于官方没有 ruby 的 sdk，所以自己实现了一个，然后顺手用 sinatra 写了个 demo。&lt;/p&gt;

&lt;p&gt;项目地址在&lt;a href="https://github.com/easonhan007/geetest_ruby_sdk" rel="nofollow" target="_blank" title=""&gt;这里&lt;/a&gt;，已经联系 geetest 官方，应该会作为官方版本维护把。&lt;/p&gt;

&lt;p&gt;可以去我们的站点看一下实际使用的效果&lt;a href="http://ur.tencent.com/entry_forms/new" rel="nofollow" target="_blank" title=""&gt;http://ur.tencent.com/entry_forms/new&lt;/a&gt;。&lt;/p&gt;

&lt;p&gt;BTW，这也许是 TX 唯一的一个使用 ror 的对外站点。当然了，我个人维护一个内部 ror 站点，用的是 ror1.0+ruby186，n 年前的东西了，现在已经迁移到 php。为了弥补 TX 没有 ruby 的遗憾，作为 TX 唯一使用 ruby 的伪 php 程序员，这个项目我果断选择 ror，把根留住，火种不能熄灭。&lt;/p&gt;

&lt;p&gt;我们用的是 ruby2.1.1+rails4.1。后台用的是 puma。服务器是 8 核 16G 内存，本站点预计总访问人数不会超过 2000 人，所以没有做任何性能调优。想起自己的 512M 的 vps，这台在内部算是很普通的服务器简直就是航空母舰。&lt;/p&gt;</description>
      <author>nbkhic</author>
      <pubDate>Wed, 14 May 2014 22:51:18 +0800</pubDate>
      <link>https://ruby-china.org/topics/19260</link>
      <guid>https://ruby-china.org/topics/19260</guid>
    </item>
    <item>
      <title>史上最快的 rails 即将到来？</title>
      <description>&lt;p&gt;刚在 twitter 上看到了这篇文章&lt;a href="http://tenderlovemaking.com/2014/02/19/adequaterecord-pro-like-activerecord.html" rel="nofollow" target="_blank" title=""&gt;AdequateRecord Pro&lt;img title=":trade_mark:" alt="™" src="https://twemoji.ruby-china.com/2/svg/2122.svg" class="twemoji"&gt;: Like ActiveRecord, but more adequate&lt;/a&gt;。上面说到了对 active record 的性能优化。具体的大家看一下吧，大概的技术就是 Cache the computation。该动则动，动中有静，动静结合。&lt;/p&gt;

&lt;p&gt;优化后的效果图如下，当然这是断章取义，具体的分析大家还是去原文看。&lt;img src="http://tenderlovemaking.com/images/finder_ips.png" title="" alt="效果图"&gt;，数值越大效果越好。&lt;/p&gt;

&lt;p&gt;最后应该可以期待，4.1 以后的那个版本也许是史上最快的那个版本吧。Thanks to work (AT&amp;amp;T) for giving me the time to do this. I think we can make the next release of Rails (the release after 4.1) the fastest version ever.&lt;/p&gt;</description>
      <author>nbkhic</author>
      <pubDate>Mon, 24 Feb 2014 14:16:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/17453</link>
      <guid>https://ruby-china.org/topics/17453</guid>
    </item>
    <item>
      <title>[UCloud 开源接力]#nbkhic@qq.com#lazyman</title>
      <description>&lt;p&gt;lazyman:基于 watir-webdriver 的 UI 自动化测试框架 &lt;a href="https://github.com/easonhan007/lazyman" rel="nofollow" target="_blank"&gt;https://github.com/easonhan007/lazyman&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;open_api_sync: 基于 sinatra 的 api 系统，支持 ip 过滤，simple basic authentication 等等 &lt;a href="https://github.com/easonhan007/open_api_syn" rel="nofollow" target="_blank"&gt;https://github.com/easonhan007/open_api_syn&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;webdriver guide: webdriver 的开源文档库，包含 java/ruby/python 代码和实例&lt;a href="https://github.com/easonhan007/webdriver_guide" rel="nofollow" target="_blank"&gt;https://github.com/easonhan007/webdriver_guide&lt;/a&gt;&lt;/p&gt;</description>
      <author>nbkhic</author>
      <pubDate>Mon, 23 Sep 2013 21:06:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/14330</link>
      <guid>https://ruby-china.org/topics/14330</guid>
    </item>
  </channel>
</rss>
