Comment

Comment by marginalia_nu

The blog is just hugo so it's 100% static files over nginx.

The search engine is serverside-rendered mustache templates via handlebars[1], via served via spark[2]. It's basically all vanilla Java. I do raw SQL queries instead of ORM, which makes it quite a bit snappier than most Java applications. The sheer size of the database also mandates that basically every query is a primary key lookup. The code is written around that constraint.

Although the search engine is a bit on the slow side since it's routed through cloudflare and I think I'm relatively far away from the closest datacenter so it adds like 100ms to the load times.

[1] https://github.com/jknack/handlebars.java

[2] https://sparkjava.com/

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton