In 2022, the monthly AWS bill for a MongoDB setup reached ,000, resulting in an annual cost of 0,000. The decision was made to migrate to PostgreSQL, which reduced monthly expenses to ,200 and led to annual savings of 5,000. The migration process took four months and involved challenges such as data consistency issues and achieving eventual consistency.