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: In-memory Webserver

2 pointsby twopoint718almost 16 years ago
I've been thinking about my needs for a webserver and seeing as how I'm only going to be serving static pages I want to concentrate on speed and simplicity. In my scenario I'll have a set of pages that aren't going to change, and if they do, taking down the server would be okay. My question is then:<p>Is there a webserver that, when started, reads all pages into memory and then never touches the disk again? Would a similar effect be better achieved with something like Apache + memcached? Other suggestions?

4 comments

cpercivaalmost 16 years ago
<i>Other suggestions?</i><p>You're thinking way too hard. As long as you have enough RAM, your operating system will cache data; so you don't need to do anything fancy at all. Set up whatever web server you like, in the default configuration, and measure its performance; odds are that you'll find that you don't need to tune anything at all.
评论 #759382 未加载
jacquesmalmost 16 years ago
I'm using apache+varnishd, I've heard good stuff about <a href="http://nginx.net/" rel="nofollow">http://nginx.net/</a><p>Good luck!
sambeaualmost 16 years ago
you could serve from a ram disk
yrashkalmost 16 years ago
nginx+memcached or nginx+ramfs?