Bookmark: Tuning ZIO for high performance

The article I linked to has some nice information on ZIO 2 performance tuning. The author mentions some nice ZIO runtime flags you can work with related to fibers and threads, as well as settings related to metrics and logging.

Here’s one suggestion I particularly like related to ZIO.foreachPar:

ZIO
  .foreachPar(1 to 1000)(_ => doSomething)
  .withParallelism(16)

There’s also more information about ZScheduler, blocking, executors, and Datadog.