您的位置 首页 golang

「第四十二期」米哈游后台golang开发面经

  • 介绍一下自己
  • 一开始问项目(我的项目跟网络相关)中的拥塞控制、流量控制;
  • 简单介绍了一下协议做的事情。有什么拥塞控制协议:Reno和BBR
  • 介绍一下Reno协议的工作方式;
  • UDP 和 TCP 的区别,都适合什么场景:在游戏中使用KCP协议比较多。
  • 引申了一下HTTP 的状态码:1~5开头各是什么作用
  • 用HTTP可以实现主动推送的功能吗,为什么不使用HTTP而是使用 websocket(项目中使用了websocket )
  • HTTP1.1 中也实现了长连接,但是这个长连接中服务器还是被动的,而且HTTP都是基于文本的,虽然底层TCP没有断开,发送消息还是包含太多不必要的头部信息(带宽消耗大),所以在某些场景还是 websocket 好用。
  • HTTP2中对上述的两个缺点做了些优化,比如压缩头部,再比如可以支持服务器主动推送(相当于预加载),但是客户端还是主导地位,可以发送RST_STREAM 来显式的停止这种推送。
  • TCP 的各种标志位(发现我不熟这些标志位),又开始问TCP的三次握手
  • TCP 有多个控制位,SYNC是开启连接,FIN是结束连接(单向断开,优雅断开),ACK是指回复包,RST是异常断开(双向都直接不能处理了),PSH是类似于FLUSH,告诉对方可以将缓冲区的数据直接上报道应用层了(还是有序的),URG(把这一个包上报应用层,数据包可能是无序的)
  • 问 golang 的协程:Goroutine 阻塞的话,是不是对应的M也会阻塞
  • 问一道思考题:如何并发100个任务,但是同一时间最多运行的10个任务(waitgroup + channel)

文章来源:智云一二三科技

文章标题:「第四十二期」米哈游后台golang开发面经

文章地址:https://www.zhihuclub.com/86381.shtml

关于作者: 智云科技

热门文章

评论已关闭

40条评论

  1. Some counterfeit medications only contain inactive ingredients, while others can include harmful substances

  2. Following at least 14 consecutive days of doxazosin, VIAGRA 50 mg or matching placebo was administered simultaneously with doxazosin 4 mg 17 subjects or with doxazosin 8 mg 3 subjects One medication may be more effective or preferred over the other, depending on your overall condition

  3. Millant DeRoux Colophane Dark rosin Flow velocities can be the wide variety of us best

  4. Copies of Viagra are made by some of the biggest drug makers in India, including Ranbaxy, Cipla, Sun Pharmaceutical Industries and Cadila Healthcare

  5. Papathanasiou A. After a little consideration, he cupped his hands and said, Your Majesty, Liu Junyong is cowardly and incompetent.

  6. Pretreatment, there were strong correlations between ER, PgR, and Bcl 2, and an inverse correlation between ER and HER 2

  7. This per protocol analysis included only those patients who received the full course of treatment, completed the end of treatment assessment for the primary end point, and had no significant protocol deviations or violations

  8. The texture of skin has been described as brawny or woody, and children with facial involvement may show a mask like facies

  9. Patients with cancer who also have a history of or multiple risk factors for CVD may be referred to cardiology or cardio oncology clinics in addition to following up with their oncologists for cancer care

  10. In conclusion, CAM use was common among breast cancer patients in Sweden and was associated with certain patient characteristics, such as alcohol and antidepressant use In doing so it does a much better job of reducing E2 AND there is no rebound when you come off of it because it s killed the aromatase

  11. Recently, in fact, tamoxifen has been shown to activate the human pregnane X receptor PXR, a nuclear receptor linked with cytochrome p 450 function and considered to be relevant in the UDCA mechanism of action 71

  12. If you have sex three to four times a week, you re bound to have sex around your ovulation period

  13. A statistically significant difference, therefore, remains between the MCBS estimate and the adjusted MEPS estimate

  14. yield of the target compound 3g as a light yellow solid which was of sufficient purity to be used directly in the nest step without further isolation and purification

  15. I ve also noticed, Clomid is raising my estrogen levels and when I switch to Tamoxifen, the estrogen significantly decreases

  16. However, in scenarios for which TWIPS was designed, the clutter scatters nonlinearly and the target linearly while in situations using TWIPR, these properties are reversed

  17. This observation highlights the importance of tumor microenvironmental context in the determination of anti or protumorigenic effects of type I IFNs

  18. I ve purchased Ovasitol an am waiting on delivery im wondering if I should add it to the metformin and if so how much metformin is safe

  19. 8 in the NCT group and 11 Diagnosis is best made based on clinical presentation burning and itching of penis worse after intercourse in combination with a subpreputial culture

  20. But the House Republicans have thus far been working on separate bills for each issue Know what you are getting into and research alot BEFORE you buy or start your cycle

  21. However, this study only included breast cancer patients who were stage I and lymph node negative, comprised a small number of patients with who received levothyroxine n 38 and only adjusted for age, tumour size and tumour grade, limiting the interpretation of results

  22. The typical American adult gets about 34 teaspoons of sugar every day, more than three times the maximum amount recommended by the U

网站地图