SquareOps

Migration of MongoDB & Elasticsearch to AWS

About

BatchService.com, a leading property technology company since 2018, provides data-driven tools for real estate professionals.

Industries

Share Via

Client Overview

BatchService.com, a leading property technology company since 2018, provides data-driven tools for real estate professionals. Their products, including lead generation and skip tracing platforms, serve a diverse clientele, from solo entrepreneurs to tech firms.


To enhance
control, cost efficiency, and scalability, BatchService aimed to migrate its MongoDB and Elasticsearch workloads from Mongo Atlas and Elastic Cloud to AWS on Elastic Kubernetes Service (EKS).

Challenges

Massive Data Volumes:

  • MongoDB clusters with 0.5 TB to 1 TB per cluster.
  • Elasticsearch clusters storing 12 TB+ of data across staging and production.


High Hosting Costs:

  • Monthly expenses exceeded $30,000, increasing with data growth.


Limited Flexibility:

  • Restricted hardware configurations, backup, and recovery options.


Scalability Issues:

  • Managed service tiers imposed scaling limitations.


Compliance Requirements:

  • Needed HIPAA, PCI-DSS compliance and enhanced data security.


BatchService sought a
self-managed AWS architecture that ensured high availability, cost savings, and operational efficiency.

Solution

SquareOps, an AWS Advanced Tier Partner, executed a full-scale migration strategy, ensuring a seamless transition with zero data loss.

Infrastructure & Architecture Upgrade

  • MongoDB Migration: Deployed high-availability replica sets on AWS EKS.
  • Elasticsearch Migration: Used Elastic Cloud on Kubernetes (ECK) for shard optimization and performance scaling.

Zero-Downtime Data Migration

  • MongoDB: Live migration via replica set synchronization to ensure data consistency.
  • Elasticsearch: Migrated 12 TB+ of data using snapshot and restore, plus real-time reindexing.
    Migrated 15+ production clusters and 10 staging clusters with zero downtime.

Performance Monitoring & Backup Strategy

  • Grafana Dashboards: Monitored 200+ performance metrics (query latency, disk IOPS, replica lag).
  • Advanced Backups: Implemented collection-level backups for MongoDB and index-level backups for Elasticsearch, encrypted and stored in AWS S3.

Security & Compliance Enhancements

  • End-to-End Encryption: Secured data at rest & in transit using AWS KMS and TLS.
  • Access Control: Applied role-based access control (RBAC) & audit logging for HIPAA & PCI-DSS compliance.

Cost Optimization

Migrated workloads to self-managed EKS clusters, cutting hosting costs by 27% (from $30,000 to $22,000/month).

Results & Business Impact

  • Seamless Migration: Transferred 12 TB+ of data, 5+ billion documents, zero data loss.
  • 30% Faster Query Performance: Improved database response times and ensured 99.99% uptime.
  • Cost Reduction: Achieved $8,000 monthly savings ($96,000 annually).
  • Operational Resilience: Integrated automated failovers & real-time observability via custom monitoring dashboards.
  • Scalability: Enabled dynamic cluster scaling, ensuring future-proof growth.

Conclusion

BatchService’s migration to AWS successfully enhanced control, security, and cost efficiency while ensuring seamless scalability. The collaboration with SquareOps underscores their expertise in large-scale cloud migrations, ensuring high-performance, cost-effective, and future-ready solutions.


 Thinking about migrating your databases to AWS? Contact SquareOps today!

About The Partner

SquareOps is a one-stop solution for any enterprise, regardless of size or industry, that wants to grow by taking advantage of the benefits of cloud-native platforms. We are a team of passionate engineers helping businesses set up the right processes and culture of DevOps for different verticals. We help developers understand best practices for coding, security as a basic need, and building pipelines for easy deployments. Our service model feature is a big differentiator from our competitors in the market, as we offer services at affordable prices.

Related Posts