PHP is request-based, meaning that all resources are closed at the end of each request. This is great in preventing memory leaks and other side effects between requests. But aparently not great with cloud databases, when we have to reconnect for each request.