Skip to content

Fixed some explanations in the mailer component #12322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions components/mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,11 @@ binary. For third-party providers, refers to the following table:
Sendgrid smtp://apikey:KEY@sendgrid n/a api://KEY@sendgrid
==================== ================================== ================================== ================================

Load Balancing
--------------

Symfony's mailer supports `load balancing`_ so you can distribute the mailing
workload across multiple transports. There are two main techniques to balance
the load: failover and round-robin.
High Availability
-----------------

Failover Load Balancing
~~~~~~~~~~~~~~~~~~~~~~~
Symfony's mailer supports `high availability`_ via a technique called "failover"
to ensure that emails are sent even if one mailer server fails .

A failover transport is configured with two or more transports joined by the
``||`` operator::
Expand All @@ -119,8 +115,11 @@ The mailer will start using the first transport. If the sending fails, the
mailer won't retry it with the other transports, but it will switch to the next
transport automatically for the following deliveries.

Round-Robin Load Balancing
~~~~~~~~~~~~~~~~~~~~~~~~~~
Load Balancing
--------------

Symfony's mailer supports `load balancing`_ via a technique called "round-robin"
to distribute the mailing workload across multiple transports .

A round-robin transport is configured with two or more transports joined by the
``&&`` operator::
Expand Down Expand Up @@ -181,4 +180,5 @@ Learn More
To learn more about how to use the mailer component, refer to the
:doc:`Symfony Framework Mailer documentation </mailer>`.

.. _`high availability`: https://en.wikipedia.org/wiki/High_availability
.. _`load balancing`: https://en.wikipedia.org/wiki/Load_balancing_(computing)