Recent Posts
Keys to Fast Development
I have been on both sides. Sometimes people are amazed at our project grounding up from zero so soon, and some other times people are questioning why our project progress is that slow.
It was said that compiled/strong-typed languages were faster at runtime, but slower to code. While it is true to a certain degree, it rarely matters in commercial applications.
There was also a common belief that enforcing code qualities by means of TDD/Code review/testing-in-general would increase the time to launch.
read more
Socket.io Server For Hyperf
有小伙伴抱怨道,WebSocket Server感觉太原始,没有“框架感”。希望Socket.io协议的支持,可以让WebSocket更好用,不再有开篇提到的困惑。
read more
使用Hyperf插入100万行数据到MongoDB,能行吗
最近用go搞了一个swoole的边车。是真的边车,用swoole process启动的。挂载到swoole server上跑,swoole起它起,swoole停它停,中间如果go挂了swoole还负责给拉起来。消息投递也照搬swoole task走IPC,从web worker上直接投递,等结果出来再返还web worker。
read more
Timeout vs Deadline
One of the first few things I feel strange about gRPC is that gRPC terminate unfinished request based on a deadline mechanism instead of the more common timeout mechanism.
In pseudo-code:
var timeout = 5 * time.Second; var deadline = time.Now() + 5 * time.Second; As you can see, the deadline mechanism is less straight-forward at first glance. So why bother?
I thought this might be another “Google” thing, so I didn’t put my mind to it until recently.
read more
More
- Why You Should Avoid Using Request-scoped Injection in NestJS
- 云原生Hyperf骨架包
- Hyperf 注解整洁之道
- Parties in Online Advertising
- Beware of Backpressure
- Compress Url Parameters Without a Storage
- php (9)
- coding-suggestion (7)
- hyperf (5)
- advertising (4)
- go (3)
- rxjs (3)
- dependency-injection (2)
- kubernetes (2)
- laravel (2)
- mysql (2)
- swoole (2)
- tensorflow (2)
- twitter (2)
- typescript (2)