PhoenixBakery is library for Phoenix 1.6 (and later) that provides modules implementing
Phoenix.Digester.Compressor. There are currently 3 modules:
PhoenixBakery.Gzipthat replaces default
Phoenix.Digester.Gzipwith stronger compression at cost of run time and memory usage. But as it is one-time action (for each release) it is IMHO better to use that build time for less transfer used later
PhoenixBakery.Brotlithat provides support for Brotli algorithm designed by Google and currently supported in all modern browsers. It provides better compression that
gzipand moderate decompression speed.
PhoenixBakery.Zstdthat provides support for Zstandard algorithm designed by Facebook. While it is not supported by any browser (AFAIK), the support may rollout in near future. It provides slightly worse compression ratio than Brotli, but provides better decompression times.
Read next Under the Hood of Macros in Elixir