This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-23
Channels
- # babashka (2)
- # babashka-sci-dev (401)
- # beginners (10)
- # biff (6)
- # calva (6)
- # clj-on-windows (6)
- # cljfx (13)
- # clojure (91)
- # clojure-austin (1)
- # clojure-europe (6)
- # clojure-norway (11)
- # clojurescript (14)
- # clr (3)
- # docker (3)
- # emacs (2)
- # fulcro (21)
- # hyperfiddle (2)
- # membrane (30)
- # nbb (4)
- # pedestal (7)
- # polylith (16)
- # reitit (1)
- # sci (4)
- # xtdb (9)
aaaand another one: https://forum.tfos.co/t/draft-why-biff-uses-xtdb-by-default

Do Scheduled Tasks run in the same JVM process as the server? how do they work when running multiple instances of the app?
Same process. Chime works in-process. You'll have to do something else to fix it.
yep. same for the in-memory queues. both are mostly useful on a single machine, though could potentially be used as building blocks for something that works with multiple machines.
the easiest way would be to configure the machines so that only one of them executes cron jobs. when you run server-setup.sh , you can specify a different value for BIFF_ENV (default is prod
), and then that machine can have its own section in config.edn. for something more robust, I would probably set up a job queue e.g. with redis and then have the scheduled task idempotently put a job on the queue.
If you want to move to multi-machine setup then you need something like Zookeeper and this gets hairy quite fast. Then you'll be doing master election and all of this stuff....