Chaos Game
Feb 5, 2018
最近在看 Interactive Computer Graphics: A Top-Down Approach with WebGL ,里面看到一个很有意思的几何问题,分享一下。
Feb 5, 2018
最近在看 Interactive Computer Graphics: A Top-Down Approach with WebGL ,里面看到一个很有意思的几何问题,分享一下。
Jul 3, 2015
Recently, I'm doing some experiments to try to rewrite our Nodejs service in a more maintainable style. I'd like to write several posts to share my findings.
May 17, 2015
Last week we try to reproduce an incident in our production system which is caused by an eleviation of HTTPS connection creation rate. The service was flooded by more than 2000 concurrent connections per server at peak.
May 1, 2015
When writing unit tests, the most ugly & painful & stupid thing you might have to do is to expose some internal implementation of your module to the testing code so that:
Apr 15, 2015
At Hulu, we use Nodejs to build a proxy or orchestration service to expose APIs to our client applications in order to provide a unified interface (in API schema) which hides the complexity to deal with our versatile backend “micro-services”.
The reason we choose Nodejs over other technologies is that its asynchronized nature perfectly fits the requirements of the service:
This is a typical front-tier API service that has low CPU consumption and high concurrent IO requirement.
However when you deploy the application to production, it is very likely that you would hit CPU bottleneck if you are not careful enough when writing code. Javascript is so flexible that can easily get you trapped into performance problem if you don't understand the execution engine (v8) well enough. Recently, I spent a lot of time doing profiling and investigating the performance issues of our service.
In this post, I'll list some tools and techniques I have used to profile/debug Nodejs program for daily development and production trouble-shooting as a summary of the work I've done.