Bridge mode is now the default connector routing method if no other
routing method is explicitly stated. The bridge-mode does not use the
user.map file which reflects other changes to take
a more secure default deployment. A warning will be displayed during the
validation process to tell you if bridge-mode is being enabled. It will
not be enabled in the following cases:
Bridge mode eliminates the need to create or define users and passwords
user.map file. Instead, the connector acts
as a router connecting the network sockets between client application and
Bridge mode provides a simpler method for connecting clients to MySQL, but with reduced facilities, as outline in the table below:
|Feature||Proxy Mode||Bridge Mode|
|Automatic Read/Write Splitting||Yes||No|
|Application-based Read/Write Splitting||Yes||Yes|
Bridge mode connections operate as follows:
Client opens network connection to Connector
Connector allocates a network buffer for the client network connection to the database server
Connector opens a network connection to a database server based on the connection parameters (master/slave selection)
Connector allocates a network buffer for the database server to the client application
Connector directly attaches the network sockets sockets together
Because the network sockets between the two sides are connected directly together, the following behavior applies to bridge mode connections:
User authentication is handled directly by the database server, rather
than through the
In the event of a failover or switch of the database servers, all active connections to the affected servers are closed.
Smartscale and packet inspection to provide read/write splitting are not supported, since the Connector does not access individual packet data.
One key difference is in how slave latency checking is handled:
In Bridge mode, the latency is checked at connection time, then you will stick to the slave for the connection lifetime (which can be shortened if the slave goes offline).
In Proxy mode, the latency is re-evaluated before each transaction, which can bring the connection to another slave if the latency becomes too high during the life of the connection.
If you have long-lasting read-only connections that should not read from stale slaves, then use Proxy mode.
If your connection lifetime is short (i.e make/break - one transaction then disconnect), or your application is not sensitive to reasonably outdated data for reads, then use Bridge mode and its optional read-only port.