I saw a question at the notice "Will Express be replaced by Koa2? 》. I just happened to have some research on Express and Koa, so I gave a brief answer.
1. Let’s talk about the conclusion first
There are currently no signs that Express will be replaced by koa2.
At present, Express's ecosystem is more mature and the entry threshold is relatively low. In terms of the popularity of downloads on npm, the gap between the two is still large, and the monthly download volume of Express is about 40 times that of koa2.
However, the highlights of koa2 are attractive enough, and the ecology is beginning to become perfect.
2. From the perspective of the threshold
In terms of usage, Express is better for beginners, and you can make something by modifying the official website.
The entry threshold for koa2 is higher than that of Express. The small problem with the simpler kernel is that it requires higher ability to build blocks by users, after all, even the core routing function has been removed.
Not to mention the most attractive async/await in koa2. Many beginners don’t understand it. Async/await is confused when used. One of the most important parts of koa2 is useless.
3. From the perspective of the general trend
After the node community grows, more and more students will participate in node server programming. By then, the requirements for server-side frameworks will become higher and higher, and that will be the battlefield for various enterprise-level solutions. The core is likely to be based on Express or koa2, or something else.
As for Express and koa2, there will still be a large market. I don’t know how much the version was at that time.