django-mjml icon indicating copy to clipboard operation
django-mjml copied to clipboard

Add optional random server selection for TCP and HTTP backends

Open mertemr opened this issue 6 months ago • 2 comments

Introduced a new setting MJML_TCPSERVERS_RANDOM and MJML_HTTPSERVERS_RANDOM for server selection, allowing random server selection to be toggled. This makes it possible to either use the servers in order or randomly.

  • Both settings default to True, enabling random selection by default, but can be set to False to maintain a fixed order of servers.

  • Refactored the mjml/tools.py file to shuffle the servers list based on the new settings for both TCP and HTTP backends.

mertemr avatar Jun 14 '25 12:06 mertemr