Case StudyHow Enkrypt AI ships its AI security platform into air-gapped KubernetesRead the case study
Skip to main content

Case Study

How CloudRaft Migrated a Marketing-Tech SaaS from Heroku to Kubernetes on AWS with Full-Stack Observability


CloudRaft moved a marketing-tech SaaS off Heroku onto Kubernetes on AWS, with full-stack observability built in from day one. We built an internal developer platform on Amazon EKS, ArgoCD, and Terraform, instrumented every service with OpenTelemetry into SigNoz, and migrated the campaign data layer from BigQuery to ClickHouse. Time to production dropped by more than 75%, the random production outages stopped, and any engineer can now find an incident's root cause in minutes. This case study walks through each phase of the work and the trade-offs behind every decision.

About the client

Our client is a B2B marketing technology platform. It helps revenue teams build hyper-targeted audiences and run precision ad campaigns across social media. The company runs with a lean, globally distributed team of 20 engineers.

After reaching product-market fit, the team needed to move faster. But the infrastructure underneath had become a constraint. Heroku was expensive and limiting. Observability was close to nonexistent. The data layer behind the campaign engine was not built for the query patterns the product depends on. The platform needed a rebuild.

Business impact

Faster releases

Under 10 minutes, every merge ships automatically (75%+ faster)

from 40+ minutes to production, with manual steps

Improved reliability

Outages eliminated with autoscaling and automatic rollback

from random, unexplained Heroku outages

Full-stack observability

MTTR in minutes; any engineer finds the root cause in SigNoz

from manual log searches, hours to diagnose

Why the team needed to move off Heroku

The product is data-intensive by design. Audience segments are built and refreshed in near real time. Enrichment pipelines run continuously, and campaign data flows across multiple ad platforms at once. Any latency or instability in the infrastructure shows up directly in the customer experience.

The team wanted a more scalable cloud to improve developer experience and prepare for growth — without the complexity that usually comes with Kubernetes. Five concerns drove the decision:

  • Reliability: Random network outages on Heroku, with no explanation, disrupted production and slowed the team down.
  • Scalability: Autoscaling was based on response time alone. That signal is too blunt for a real-time data product with variable workloads.
  • Cost: Platform costs were rising and would not be sustainable at scale, with limited room to optimize.
  • Observability: There was no APM, no distributed tracing, and no anomaly detection or alerting. Engineers searched logs by hand every time something broke. The team named this their highest-priority gap.
  • Data performance: Campaign filters ran on BigQuery, which is not built for low-latency, filter-heavy reads. Running analytics on a separate cloud also added billing complexity and cross-cloud data transfer.

This pattern is not unique to Heroku. We cover the wider decision in our guide to Heroku to Kubernetes migration.

How we rebuilt the platform on AWS and Kubernetes

We worked through the engagement in three phases. Each phase started only after the previous one was stable. Platform engineering came first to establish the foundation. Observability came second, to give the team confidence in what they had built. The data migration came last, to consolidate everything onto a single cloud. In each area, we evaluated the options through benchmarks and proofs of concept before committing.

Why we chose AWS over GCP

The new platform runs on Amazon Web Services, with Kubernetes as the container orchestration layer. We chose AWS over GCP through a structured internal evaluation across ten factors. Two decided it. The team already had stronger hands-on familiarity with AWS. And AWS Premium Support rated consistently ahead of GCP's outsourced support offering. The team had also been running Heroku for containers, AWS for storage and DNS, and GCP for BigQuery analytics, so consolidating onto AWS cut cross-cloud cost and complexity.

Why Kubernetes over App Runner and ECS

We evaluated alternatives such as AWS App Runner and ECS. Kubernetes was the better fit for a team building for the long term:

  • Better integration and availability of tools
  • Portability and no vendor lock-in
  • Most modern developer tooling is Kubernetes-native
  • Consistent local environments for developers

How we made Kubernetes simple for developers

The biggest concern with Kubernetes was its complexity. We built an internal developer platform (IDP) on top of Amazon EKS that hides almost all of it. The cluster is provisioned with the Terraform EKS module.

An engineer defines a new service in a single YAML file. ArgoCD handles GitOps-based deployments, and Kustomize handles configuration for each environment. Between them, they take care of provisioning, networking, TLS certificates (through cert-manager and Let's Encrypt), secrets injection, and deployment. A shared base Helm chart holds the service template, and scripts generate the Kubernetes manifests.

The cluster runs on EC2 Spot Instances, with Karpenter provisioning nodes to match demand. This replaced the response-time-based scaling the team had on Heroku. Because Spot capacity can be reclaimed, each application runs with high availability. Stateful data such as Redis and RDS lives in managed external services rather than in the cluster. External Secrets Operator syncs secrets from AWS Secrets Manager, and Reloader restarts pods automatically when configuration or secrets change. That removes a common source of silent production failures.

A golden path for onboarding new services

Every new service follows the same route: one YAML file, a fully automated pipeline, live in production. There are no tickets, no coordination, and no platform-team involvement. Onboarding a new service takes minutes, not days. Every engineer follows the same path every time, so productivity improves without adding tooling sprawl.

How we cut release time by 75% with an autonomous CI/CD pipeline

Every merge triggers an automated pipeline: build, test, deploy to staging, smoke test, promote to production. There are no manual steps and no release managers.

We split and parallelized the pipelines, cutting total time to production from over 40 minutes to under 10. That is a reduction of 75% or more. Engineers get faster feedback on code changes and ship more releases per day.

Quality gates at every stage make releases more reliable: integration tests, smoke tests, linting, staged rollouts, and full test coverage, with automatic rollback if any stage fails. Terraform provisions the infrastructure, so every environment is reproducible, version-controlled, and auditable.

The stack is aligned with SOC 2 from day one. Secrets live in AWS Secrets Manager and are injected at runtime, never hardcoded. Network isolation and audit-ready infrastructure are built in rather than retrofitted.

How we built full-stack observability with SigNoz and OpenTelemetry

Observability was the team's highest-priority gap. So we built it into the platform from the start instead of adding it afterward. APM, distributed traces, logs, and metrics are all instrumented through OpenTelemetry, the open-source standard for collecting telemetry. That keeps instrumentation vendor-neutral: if the backend tool changes later, the data collection layer does not. To simplify adoption, we built a centralized instrumentation library that every service consumes in a standardized way.

We selected SigNoz SaaS after a structured evaluation of multiple platforms. It was the only tool that met every hard requirement without trade-offs: APM, OpenTelemetry support, Kubernetes-native onboarding, anomaly detection, and a cost well below enterprise alternatives. The team also wanted a managed service, not another system to maintain.

What the observability stack delivers:

  • Application Performance Monitoring across all services, with response times, error rates, throughput, and service health in a single view
  • Distributed tracing that follows a request across every service it touches and shows where a failure or slowdown starts
  • Centralized log management that replaces ad hoc searches across fragmented, service-specific log streams
  • Anomaly detection and alerting routed through PagerDuty for structured incident response
  • SLI/SLO tracking with incident workflows in Incident.io and post-mortems documented in Notion, giving the team a repeatable process from alert to post-mortem
  • Lower MTTR: incidents that took hours to diagnose are now resolved in minutes, with the root cause visible to any engineer
  • Full production visibility into traffic patterns, weak areas, and improvement opportunities across infrastructure and application layers

How we migrated from BigQuery to ClickHouse for low-latency audience queries

The campaign engine lets customers build audiences from combinations of company size, geography, job title, seniority, and dozens of other filters. Results have to feel instant, because this is an interactive product feature and not a batch report.

We benchmarked ClickHouse against BigQuery and Hydra, a PostgreSQL-based option. ClickHouse won on every axis that mattered. It compressed the audience data 10x, against 4x for Hydra. It ran the filter-heavy queries faster, cost less overall, and could run entirely within AWS. That let us consolidate the stack onto a single cloud.

The migration ran in three stages: BigQuery to Amazon S3 to ClickHouse Cloud. A private connection from the client's AWS VPC kept data transfer secure and egress costs low. The analytics layer is now faster and leaner. It sits on the same cloud as the rest of the platform, which means fewer vendors, simpler operations, and audience search results that feel instant.

Technology stack

LayerTechnology
CloudAmazon Web Services
OrchestrationAmazon EKS, Terraform EKS module
DeploymentArgoCD (GitOps), Kustomize, Helm
Compute and scalingEC2 Spot Instances, Karpenter
Platform servicescert-manager, Let's Encrypt, External Secrets Operator, AWS Secrets Manager, Reloader
Stateful servicesRedis, Amazon RDS
ObservabilityOpenTelemetry, SigNoz, PagerDuty, Incident.io
Data and analyticsClickHouse Cloud, Amazon S3 (migrated from BigQuery)

Results

The team now runs on infrastructure built for scale, instead of the early-stage workaround it inherited. Releases are fully automated, the random outages are gone, and incidents that used to take hours now resolve in minutes.

Releases
Before40+ minutes, manual coordination
AfterUnder 10 minutes, automated on every merge
Scaling
BeforeResponse-time-based autoscaling on Heroku
AfterKarpenter provisions nodes to match demand
Reliability
BeforeRandom network outages, no recovery
AfterAutoscaling, automatic rollback, self-healing infrastructure
Observability
BeforeNo APM or tracing; manual log searches
AfterOpenTelemetry and SigNoz; root cause in minutes
Analytics data layer
BeforeBigQuery on a separate cloud, high query latency
AfterClickHouse in-VPC, 10x compression, instant queries
Infrastructure
BeforeHeroku config, limited control
AfterTerraform-provisioned EKS, reproducible and auditable

A few of the changes are worth calling out:

  • Releases stopped being events. Every merge ships through the pipeline automatically, with staged rollouts and automatic rollback if any gate fails.
  • Reliability became the default. Autoscaling, automatic rollbacks, and self-healing infrastructure removed the random outages that used to disrupt production.
  • Debugging stopped depending on tribal knowledge. With full-stack observability in place, any engineer can find the root cause of an incident in minutes, without searching logs by hand.

Outgrowing Heroku or another PaaS, or flying blind in production?

If your team is working around the platform instead of shipping product, there is a better way. This story is about Heroku, but the pattern is the same on Railway, Render, Fly.io, and other PaaS providers: rising costs, blunt scaling, and little visibility once you hit real scale.

Talk to us about Kubernetes platform engineering and observability built for developer velocity.