# Clouds, caches and connection conundrums

DevFeed: [Clouds, caches and connection conundrums](<https://devfeed.tech/articles/clouds-caches-and-connection-conundrums-11718.md>)

Original publisher: [Read original article](<https://incident.io/blog/clouds-caches-and-connection-conundrums>)

Author: Ben Wheatley

Published: 2023-09-26T08:13:00Z

Content type: article

Language: en

Sources: [The incident.io Blog](<https://devfeed.tech/sources/the-incident-io-blog.md>)

Topics: [Cloud](<https://devfeed.tech/topics/cloud.md>), [migration](<https://devfeed.tech/topics/migration.md>), [incident](<https://devfeed.tech/topics/incident.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [Caching](<https://devfeed.tech/topics/caching.md>), [race-condition](<https://devfeed.tech/topics/race-condition.md>), [Google](<https://devfeed.tech/topics/google.md>), [API](<https://devfeed.tech/topics/api.md>), [data](<https://devfeed.tech/topics/data.md>), [Server](<https://devfeed.tech/topics/server.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [data](<https://devfeed.tech/tags/data.md>), [google](<https://devfeed.tech/tags/google.md>), [google-cloud](<https://devfeed.tech/tags/google-cloud.md>), [incident](<https://devfeed.tech/tags/incident.md>), [incident-channel](<https://devfeed.tech/tags/incident-channel.md>), [incident-management](<https://devfeed.tech/tags/incident-management.md>), [incident-response](<https://devfeed.tech/tags/incident-response.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [migration](<https://devfeed.tech/tags/migration.md>), [network](<https://devfeed.tech/tags/network.md>), [outage](<https://devfeed.tech/tags/outage.md>), [post-mortem](<https://devfeed.tech/tags/post-mortem.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [race-condition](<https://devfeed.tech/tags/race-condition.md>), [server](<https://devfeed.tech/tags/server.md>), [slack-incident](<https://devfeed.tech/tags/slack-incident.md>)

## AI overview

This developer article recounts an infrastructure migration into Google Cloud that led to repeated Postgres connection timeouts and unusually high connection creation rates. It describes investigating a possible race condition involving expired connections, applying changes that reduced new connections, and then examining sporadic memcached timeout issues affecting API responses.

## Source excerpt

During a recent infrastructure migration into Google Cloud, we kept running into a pesky issue without a clear cause. Here, we dive into the twists and turns we took to finally figure out what the smoking gun was.