Giter Club home page Giter Club logo

koacomposetest's Introduction

Hi there! 👋

I'm niexq, 🇨🇳🌱🏀⛹🏻‍♂🎖 🎖🛵⏳🌱🇨🇳

社区 🚀

擅长 🧑‍💻

TypeScript JavaScript React RN NodeJS Visual Studio Code

star

开源在... 🔥

koacomposetest's People

Contributors

niexq avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

gradlexyz

koacomposetest's Issues

如果是并发,各中间件打印日志的顺序是否会发生错乱?

新手上路,麻烦大佬帮个忙解释下。我自己实践了下,不会错乱。
单个请求中间件执行顺序可以理解
koa2底层还是调用node自带的http, creatServer的回调方法,参数有req和res。
并发请求来到服务器时,先到http.createServer(this.callback()),然后每个请求分别走自己的callback(),互不干扰且是异步的。并发请求导致各自callback()都在运行,每个callback()都在打印日志,感觉会乱。

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.