On 20/09/2025 4:29 AM, Dmitry Olshansky wrote:
    Finally, in the case of web applications, in my opinion the better
    approach for using multiple CPU cores is /usually/ by running
    multiple /processes/ in parallel, as opposed to multiple threads
    within a single process. Of course, every application is different
    and there is no one-size-fits-all approach.

There we differ, not only load balancing is simpler within a single application but also processes are more expansive. Current D GC situation kind of sucks on multithreaded workloads but that is the only reason to go multiprocess IMHO.

And more importantly you don't pay for anywhere the same number of context switches if you can let IOCP/epoll handle scheduling.

But alas, that means thread safety which fibers can't do.
  • Re: vibe.d-li... Sönke Ludwig via Digitalmars-d-announce
    • Re: vibe... Dmitry Olshansky via Digitalmars-d-announce
      • Re: ... Sönke Ludwig via Digitalmars-d-announce
        • ... Dmitry Olshansky via Digitalmars-d-announce
          • ... Sönke Ludwig via Digitalmars-d-announce
            • ... Dmitry Olshansky via Digitalmars-d-announce
              • ... Sönke Ludwig via Digitalmars-d-announce
              • ... Sönke Ludwig via Digitalmars-d-announce
              • ... Dmitry Olshansky via Digitalmars-d-announce
              • ... Sönke Ludwig via Digitalmars-d-announce
          • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
          • ... IchorDev via Digitalmars-d-announce
  • Re: vibe.d-li... Hipreme via Digitalmars-d-announce

Reply via email to