Login
You're viewing the ruby.social public feed.
  • Sep 27, 2026, 2:42 PM

    @carlton @djangomed @judy2k I see y’all separated the service threads into a separate entrypoint which is fair and probably djangonic; that said the reason I made pgbg is to AVOID having to have a separate process.

    The cool thing is that you can launch the background services in all your web workers and only one works, which simplifies operations. Ya think this could also be implemented in a Django-friendly way? 🤔

    💬 1🔄 0⭐ 0

Replies

  • Sep 27, 2026, 2:46 PM

    @hynek @djangomed @judy2k As free threading matures, probably yes. Django's main branch (which will be 6.2, next version) is already free-threading compatible as far as the test suite says, but we're pretty sure there'll be edges to track down, and library compatibility to smooth. BUT as that matures, there's no reason this couldn't be in-process. Running the bgt supervisor in your W/ASGI entry point isn’t going to be difficult per se. (We're just not there yet.)

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Sep 27, 2026, 3:13 PM

    @hynek @djangomed @judy2k it would! 😜

    @justin and Žan were working on a benchmarking tool this week that will enable us throw different scenarios under load and see how they behave, so it might be that (we can see that) the road isn’t as long as we might fear.

    It’s exciting times tbh

    💬 0🔄 0⭐ 0