Instagram mainly uses two backend database systems: PostgreSQL and Cassandra

Instagram began Instagration

Both PostgreSQL and Cassandra have mature replication frameworks that work well as a globally consistent data store

"Instagram is now running in multiple data centers across the US, giving us more flexible capacity planning and acquisition, higher reliability, and better preparedness for the kind of natural disaster that happened in 2012."