Clojure · Job board · I built a small tool with clojure-jobs — code is open, feedback welcome

7
CLr/clojure-jobs·posted by mike_xu·2 hours agoPostmortem

I built a small tool with clojure-jobs — code is open, feedback welcome

Short version: clojure-jobs needs almost no tuning at small and medium scale — the point where it starts to hurt is much further out than most people assume. Full measurements below.

One last trap: in container environments remember to adjust the memory-related parameters in step. Otherwise the host limit and the process expectation disagree, and the symptom is intermittent, unreproducible failure.

Documentation first44%
Source code first28%
Just ask someone17%
Run a demo and learn by error11%

12 votes total

2 comments

2 comments

M
Nnikic·3 minutes ago

One counter-example: below clojure-jobs 7.4 the semantics of that code are different, so do not copy it verbatim. We got burned in staging and rolled back once.

262
Rrase·12 minutes ago

Agreeing with the above. One addition: with this option enabled the GC count in your metrics doubles, so adjust the alert threshold at the same time or it will keep firing.

115

This is the post detail page /en/c/clojure-jobs/post/p5. Posts and comments are generated deterministically from a seeded PRNG, so the same post always renders the same content and the link can be shared, reloaded and indexed. In production this page reads MySQL for the post, Redis for hot-post caching, and fetches the whole comment tree in a single query on the path column.

See the database schema →