template-axum-htmx-tailwind icon indicating copy to clipboard operation
template-axum-htmx-tailwind copied to clipboard

Thank you and some improvements showcase.

Open dpc opened this issue 1 year ago • 0 comments

I have recently reached a point of usability on my little project, where I was testing an overlapping tech stack.

I used parts of this template and thank you for it.

I did some improvements to:

  • build.rs script:
    • I don't remember the details but there was something off there
    • I added ability to override the assets dir by e.g. distros
  • cache loader
    • IIRC it did not correctly handle clients that didn't support brotli (e.g. curl)
    • I optimized loading by not using blocking IO in async code and loading things in parallel (buffered), which lowers the startup time from like 40ms to 5ms on my VPS
  • fixed rate limiting behind nginx
  • added support for systemd socket activation (basically running only on demand): stop on idle, and listenered passed as fd 3

Sorry for not submitting PRs, but I'm very limited with time, and I guess it requires some discussion beforehand anyway first.

dpc avatar Jun 12 '24 04:06 dpc