Tag: node
All the articles with the tag "node".
一个简单的 HTTP Server
Published: at 16:00> 本文涉及到的核心模块: > > + http > + stream > + buffer > + zlib: (间接设计) > > 本文涉及到以下库及模块: > + $1: 解析 MIME TYPE > + $1 > + $1: 用以解析 URL。同时也可使用原生模块 url。 > + $1: 用以接续 querystring。同时也
Node 应用中如何进行参数校验
Published: at 16:00服务器应用中参数校验是不可或缺的一步,那么在 Node 中如何进行参数校验呢
日志的收集
Published: at 16:00+ filebeat
Node 做服务端开发的那些事儿
Published: at 16:00Node 做服务端开发时,你要了解的这些事 + $1 + [Node实践语法篇: 当导入一个 module 时都做了什么]() + $1 + $1 + $1 + $1 + $1 + $1 TODO: + $1 TODO: + $1 + $1 TODO: + $1 TODO: + $1 + $1 + $1 TODO: + $1 TODO:
Node 中的 require 与 module
Published: at 16:00在 `node` 环境中,有两个内置的全局变量无需引入即可直接使用,并且无处不见,它们构成了 `nodejs` 的模块体系: `module` 与 `require`。
在 Node 中引入一个模块时发生了什么
Published: at 16:00(function(exports, require, module, __filename, __dirname) { // 所有的模块代码都被包裹在这个函数中 const fs = require('fs') const _ = require('lodash') }); js require('internal/modules/cj
sentry
Published: at 16:00Stream
Published: at 16:001. 服务器中的 HTTP Request 1. 客户端中的 HTTP Response 1. 标准输出 stdout + destroy + finish + error + WritableState / + needDrain + buffered + Symbol(KHandler) + res._removeTE / res.c
Stringify: Node 服务端序列化及反序列化优化
Published: at 16:00> https://github.com/fastify/fastify/blob/main/docs/Validation-and-Serialization.md fast-json-stringify https://npm.devtool.tech/json-stringify-safe 在服务端向客户端发送数据时,需要把梳理好的
Node 中的全链路式日志
Published: at 13:00有效解决此类问题,我们需要依赖全链路式的日志作为蛛丝马迹。如当发现测试环境某条 API 延迟过高时,通过该 API 在日志系统中找到所涉及到的所有关键逻辑及数据库查询,查找是否 SQL 查询过多或其中有慢查询所致,或者是否被上游服务拖累。