高级农民
- 积分
- 1215
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2013-11-7
- 最后登录
- 1970-1-1
|
最近工作有感,看大家是要做前端还是后端project,工作中没做过前端project,只有学校做的一些project,感觉这些web相关的project重点在于广度,大部分和js相关吧。而backend service project重点在于深度吧,做出一个有意思的backend service。
感兴趣的朋友可以关注一些点,以Java backend service为例
1. how to write a launcher script to setup JVM parameters, and start a main application (mostly the main thread)
2. In the main thread, how to create worker thread to pick up its tasks. (tips: could use Guice/Dagger to do dependency injection to get a worker thread factory, then submit worker thread)
3. How to route service requests into server farms (tips: have a load balancer to poll/receive requests and distribute the requests into server farms)
A load balancer is implemented with a virtual VIP. It will receive requests from clients. Behind the load balancer, there will be a server farm. The load balancer will route the requests into each server inside the server farm. (tips: A list of load balancing algorithms, round robin, consistent hashing, least connection) |
|