Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Derick Rethans:
Connection Handling with the MongoDB PHP driver
Dec 04, 2012 @ 16:54:15

Continuing on with his look at the newly released version of the MongoDB driver for PHP Derick Rethans has posted more detail about the advanced connection handling options this new driver version provides.

The 1.3 release series of the PHP MongoDB driver features a rewritten connection handling library. This is quite a large change and changes how the PHP driver deals with persistent connections and connection pooling.

He starts with an example of a v1.2 driver connection, how the connection is requested from a pool and how, based on the integration of a worker into the connection process, v1.3 handles the connection requests. He includes a bit about replica set connections and authentication connections, complete with PHP code examples showing them in practice.

tagged: connection handling tutorial mongodb driver version

Link:


Trending Topics: