Infrastructure

How a B2B SaaS won enterprise deals by moving to EU-first cloud cost optimization services

Binadit Tech Team · May 21, 2026 · 8 min lees
How a B2B SaaS won enterprise deals by moving to EU-first cloud cost optimization services

The situation: marketing automation platform hitting enterprise roadblocks

A B2B marketing automation platform serving mid-market companies had grown to 2,000 customers and €8M ARR. Their product tracked user behavior, managed email campaigns, and stored detailed customer profiles. The technical stack ran on AWS us-east-1 with a typical microservices architecture.

The problem became clear during enterprise sales calls. Legal teams at potential customers kept asking the same questions: Where is our data stored? Can you guarantee it stays in the EU? What about US government access under the CLOUD Act?

The sales team watched three major deals worth €400k in annual contracts slip away in Q2 alone. Each time, the technical requirements were the same: EU-only data residency with clear sovereignty guarantees. Their US-based infrastructure couldn't meet these requirements, and their existing cloud setup was also burning through budget with inefficient resource allocation.

Revenue was growing, but so were infrastructure costs. They were spending €45k monthly on AWS, with usage patterns showing significant waste during off-peak hours and overprovisioned database instances.

What we found during the audit

The technical assessment revealed multiple issues beyond just geographic location. Their infrastructure had grown organically without proper cost governance or architectural planning.

Database performance showed concerning patterns. The primary PostgreSQL instance was running on a db.r5.4xlarge (16 vCPU, 128GB RAM) but CPU utilization averaged only 23% during peak hours. Storage IOPS were provisioned at 40,000 but actual usage peaked at 8,000. This single instance cost €3,200 monthly while delivering suboptimal performance due to connection pooling issues.

The application layer ran 12 microservices across 45 EC2 instances. Load distribution analysis showed severe imbalances. The email processing service consumed 60% of compute resources during campaign sends but sat idle 18 hours daily. The analytics API had response times exceeding 2 seconds during European business hours due to cross-Atlantic latency.

Their Redis cluster configuration was particularly wasteful. Six r5.xlarge nodes ran continuously at 15% memory utilization, costing €2,100 monthly. Session data and cache hit ratios indicated poor key distribution and no TTL optimization.

Monitoring revealed that 40% of their API calls originated from European IP addresses, yet all processing happened in Virginia. This created unnecessary latency and complicated their compliance story.

The approach we took and why

The solution required addressing both the sovereignty requirements and cost optimization simultaneously. We designed a migration strategy that would move operations to EU infrastructure while implementing proper resource right-sizing and architectural improvements.

Rather than a lift-and-shift migration, we planned a phased rebuild that would eliminate the existing inefficiencies. The new architecture would use EU-based infrastructure with intelligent resource allocation based on actual usage patterns, not guesswork.

For data sovereignty, we selected infrastructure hosted entirely within EU borders with clear legal frameworks. This meant no US parent company involvement in the hosting stack and explicit contractual guarantees about data location and access.

The cost optimization strategy focused on three areas: right-sizing compute resources based on actual usage, implementing dynamic scaling for variable workloads, and redesigning the database layer for better efficiency.

We also planned to consolidate the microservices architecture. Instead of 12 separate services, we identified opportunities to merge related functions while maintaining separation of concerns. This would reduce inter-service communication overhead and simplify resource management.

Implementation details with specifics

The migration started with the database layer. We deployed a PostgreSQL cluster using dedicated hardware in Amsterdam, configured for high availability across two data centers. The new setup used 8 vCPU and 64GB RAM, roughly half the resources of their AWS instance, but with optimized configuration.

PostgreSQL configuration included connection pooling with PgBouncer, shared_buffers set to 16GB, and effective_cache_size tuned to 48GB. We implemented read replicas for analytics queries, separating reporting workloads from transactional operations.

For the application layer, we redesigned the deployment architecture. The 12 microservices were consolidated into 6 focused services: user management, campaign processing, analytics, email delivery, API gateway, and background jobs. Each service received dedicated resource allocations based on usage profiles.

The email processing service, which had the most variable load, was configured with auto-scaling between 2 and 12 instances. During campaign sends, it could scale up in 90 seconds. During quiet periods, it scaled down to minimize costs.

Redis deployment was completely redesigned. Instead of six large nodes, we implemented a three-node cluster with 8GB memory each. We optimized data structures, implemented proper TTL policies, and configured memory eviction policies for different data types. Session data used allkeys-lru eviction while cache data used volatile-ttl.

Load balancing used HAProxy with health checks and automatic failover. SSL termination happened at the load balancer level using Let's Encrypt certificates with automated renewal.

The monitoring stack included Prometheus for metrics collection, Grafana for visualization, and custom alerting rules for business-critical metrics. We tracked not just infrastructure health but also business metrics like campaign delivery rates and API response times by geographic region.

Results with real numbers

The migration completed over six weeks with zero downtime. The new EU-based infrastructure immediately resolved the enterprise sales concerns while delivering significant cost savings and performance improvements.

Infrastructure costs dropped from €45k to €29k monthly, a 35% reduction. The largest savings came from database right-sizing (€3,200 to €1,400 monthly) and Redis optimization (€2,100 to €600 monthly). Compute costs fell by 40% through better resource allocation and dynamic scaling.

Performance improvements were substantial. API response times for European users dropped from 847ms average to 156ms average. Database query performance improved by 60% due to better connection pooling and hardware optimization. Cache hit rates increased from 73% to 94% through Redis configuration improvements.

The business impact was immediate and measurable. Within three months of completing the migration, they closed two enterprise deals worth €280k annually that had previously stalled due to data sovereignty concerns. The sales team reported that compliance conversations became simple: 'Your data stays in the EU, period.'

Uptime improved from 99.7% to 99.94%. The previous architecture had experienced monthly outages during traffic spikes. The new infrastructure handled their highest traffic day (Black Friday campaign sends) without performance degradation.

Support tickets related to performance issues dropped by 70%. Users in European time zones reported noticeably faster application loading and smoother campaign management workflows.

What we'd do differently next time

The migration timeline could have been compressed by addressing database optimization earlier in the process. We spent two weeks fine-tuning PostgreSQL configuration that could have been templated from similar deployments.

Load testing should have been more aggressive during the pre-migration phase. We discovered some connection pooling edge cases only after processing real production traffic volumes. Earlier stress testing would have caught these issues.

The monitoring implementation was comprehensive but overly complex initially. We collected metrics on everything, which created noise in the alerting system. A simpler initial monitoring setup focused on critical business metrics would have been more effective.

Communication with the sales team could have been better structured. They needed regular updates on compliance capabilities and migration progress to handle ongoing enterprise discussions. A weekly briefing would have helped them manage prospect expectations more effectively.

We also underestimated the time needed for DNS propagation and SSL certificate provisioning across all services. Building in extra buffer time for these administrative tasks would have reduced stress during the final cutover weekend.

One architectural decision we would reconsider is the microservices consolidation approach. While it reduced operational complexity, it might have been too aggressive in some areas. The user management and API gateway services could have remained separate for better scaling flexibility.

The bigger picture: sovereignty as competitive advantage

This project demonstrated that infrastructure decisions directly impact revenue potential. The previous US-based setup wasn't just a compliance problem, it was a sales barrier that cost real money every quarter.

The compliance benefits extended beyond just meeting legal requirements. Having EU-only infrastructure simplified their entire data governance story. Privacy policies became clearer, security audits were more straightforward, and customer trust improved measurably.

Cost optimization delivered ongoing benefits beyond the initial savings. The new monitoring and resource management approach prevented the gradual cost creep that had characterized their AWS deployment. Monthly infrastructure reviews became routine, keeping costs aligned with actual business needs.

The performance improvements had unexpected benefits for product development. Faster API responses enabled new features that wouldn't have been practical with the previous latency profile. The analytics dashboard could refresh more frequently, and real-time campaign monitoring became feasible.

Most importantly, the infrastructure change shifted from being a cost center to a competitive advantage. Sales conversations now highlighted their EU-first approach as a differentiator, not a compliance checkbox.

This case illustrates how infrastructure sovereignty decisions affect business outcomes beyond just technical metrics. It also shows how proper cost optimization strategies can fund infrastructure improvements while improving performance and compliance posture simultaneously.