<p>I wrote a simple web app for fun that deals with processing meme images, and have a load test server that send traffic to it occasionally. I find out that occasionally the web app just fails silently.</p>
<p>I have no idea why it just fails, but looks like the web server just quits.</p>
<p>Right now to make sure that my server is always up I have a health check server that checks if its up or not and alerts me if its down. </p>
<p>This is not a big deal, but its actually a pretty good opportunity for me to learn how to handle failures and improve on my skills.</p>
<p>What are some tips for handling situations like this ?</p>
<hr/>**评论:**<br/><br/>danicat83: <pre><p>You should try errcheck: <a href="https://github.com/kisielk/errcheck" rel="nofollow">https://github.com/kisielk/errcheck</a>
Probably you are missing error handling somewhere. I would also recommend you watch <a href="https://www.youtube.com/watch?v=uBjoTxosSys" rel="nofollow">https://www.youtube.com/watch?v=uBjoTxosSys</a> for some interesting tools that could help you out.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传