GithubHelp home page GithubHelp logo

learn-node's Introduction

learn-node's People

Contributors

luoxue-victor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

learn-node's Issues

服务调用遇到的一些问题

可用性:服务器可能会宕机或繁忙

  • 故障转译
  • 熔断机制
  • 降级机制
  • 限流机制

安全性:业务可能需要权限控制,只能限定某些服务调用

  • 服务授权
  • 服务鉴定

nginx

anyproxy / node-http-proxy / hiproxy

第一课:项目脚手架

代码提交检查 npm run cz
eslint 配置 + fix
vscode 配置
自动生成 readme
自动获取获取 issue,并按 label 分类添加到 readme
支持 ts,使用 ts-node
跨编译器配置
prettier 代码风格设置
热更新 nodemon
vscode + debug,一键断点调试

node 开发 调试 运行

  • Node 进程模型
  • 服务端开发基本理念
  • 并发、延迟、异常处理
  • debug 工具
  • Node 多进程之 cluster
  • 高 CPU 延迟下的并发
  • 异步模型: co / async / fiber
  • MVC 分层

WebSocket

Socket.io / sockjs

IM即时聊天

nodejs 线上常见问题

  • 504/499 超时
  • 某个请求延时很高,其他请求正常
  • 500 internal server error
  • 内存泄漏
  • CPU 上涨
  • CPU 100% 且拒绝服务
  • 压测性能太低,高延迟,低吞吐,QPS上不去

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.