| This looks like a nice, Node port of Jekyll. Not really how I prefer to blog. My idea for a blogging platform (maybe even a service), if I ever get to it, would be a combination of Jekyll and Posterous. In other words, you'd have: * A Jekyll dir structure on the server * You write a post via Email * The email is POSTed to the service via MailGun * The service writes a new HTML file in the Jekyll dir and runs `jekyll build` BAM, you have the speed of a static site, the wysiwyg editing features of whatever email client you use, and the ability to post from any computer/phone/tablet (not just one with git configured). |
GET-driven means that you need GET events to prompt the system to generate new pages and possibly cache them.
This has problems. The main one is that generating pages from scratch is costly compared to serving a flat file.
So we turn to caching.
But here arises a problem. GETs do not change content. So any system that relies on GETs as its source of activity will have inevitable mismatches between the cache and the content. This is where TTLs and LRUs and a whole bunch of other stuff comes into play.
What if, instead, we used a POST-driven architecture? Instead of relying on stochastic noise to determine what to do, we could rely on changing stuff when we actually receive the instruction to change stuff.
So instead of updating the cache on a certain number of GETs, or on a TTL or some other basis, we update the cache when a POST invalidates it. "Easy".
If you avoid the naive scheme that early versions of Movable Type used (rebuilding a whole site upon each post), the whole thing goes a lot quicker. And you get to keep comments.
In 2010 I did some preliminary research as part of an honours project proposal, but went with a different project. But it's still one of my pet peeves.