Blog posts


Service Invocation: A Brief Survey

30 minute read


Service invocation is tricky. The protocol itself seems to be super simple: we call a function, and it returns. But the problem is, when the function is on another machine, how we know the state of that machine / the whole system. The developers of the caller do not want to care, so we protocol designers should care for them. But trying to make everyone happy is so tough here.

Service Discovery: A Survey

19 minute read


There is always a need for service discovery and load balancing, but no universal solution. Sometimes naive ways may satisfy most needs.

Confusing Terms

6 minute read


I find that some terms are confusing.

NDN API 1: Encoding

21 minute read


TL; DR: Reflection should be used for encoding or serilization.

The sqrt thesis of mixing strategies

23 minute read


When solving a problem, it is common that we have two different strategies that fit in different cases. For example, one algorithm may have a better time complexity but uses more memory than the other. Or, one is fast when there are only a few of large objects, but the other works better when there are many small objects. However, I found that there usually exists a solution which is a naive mixture of the two strategies, and its performance will be the sqrt of the two.