# Connecting

## Cuprins

- Connecting over SSL
- Authentication
- Replica Sets
- Sharding
- Domain Socket Support
- Persistent Connections (version 1.3.0+)
- Connection Pooling (version 1.2.0-1.2.12 *only*)
- Manually Persistent Connections (version up to 1.1.4 *only*)

Connecting to MongoDB can be as easy as new MongoClient, but there are many additional options and configurations. The documentation for MongoClient::__construct() covers all of the API options, but this page gives some more details and advice for practical use cases.