TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

3 pointsby gazarullzover 8 years ago
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 comments

brudgersover 8 years ago
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.
hawkweedover 8 years ago
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.