TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Any good tutorial or books on how to build a web framework?

3 点作者 gazarullz超过 8 年前
Hi, I am looking for some good tutorials or books on how to build a web framework from scratch, the platform of interest is the JVM and I would like to know more about basic concepts such as routing, filtering and how the request/response cycle is handled.

2 条评论

brudgers超过 8 年前
Most frameworks rise out of a specific set of practices and an effort to automate those practices. Which means that they are usually built bottom up rather than top down. Rails is a primary example where 37 Signals built a framework that automated away the all the plumbing it was doing job after job building applications.<p>The tendency toward bottom up development is probably a reason there are so many frameworks...everyone has different practices that need automating.
hawkweed超过 8 年前
The best way would be to learn from one of the existing open source projects.<p>You can start with sparkjava: <a href="https:&#x2F;&#x2F;github.com&#x2F;perwendel&#x2F;spark&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;perwendel&#x2F;spark&#x2F;</a><p>Also, multi-threading, I&#x2F;O and networking are areas that you would need to understand inside out.