第四章 书写异步代码

    第五章 Node Web框架koa2

    5.8 koa源码剖析,先忽略

    第六章,爬虫系统

    • request.js 请求
    • cheerio解析数据
    • mongo存储
    • redis维护消息队列

    这种方式尽量不适用,忽略其他地方的错处理,也会丢失上下文。

    1. process.on('uncaughtException',err=>log(err))

    https://weread.qq.com/web/reader/260329707198d7762606eeak93d32d9025693db85ed9e60