simplifying-email-infrastructure-without-disruption
Case Studies/
Mail API
CLOUD / SAAS

Simplifying Email Infrastructure Without Disruption

Modernizing an enterprise email platform with a unified TypeScript codebase and containerized services on Amazon EKS while preserving existing customer API integrations.

Client
Enterprise Email Platform
Industry
Cloud / SaaS
Solution
Multi-tenant email routing platform
Mail API
Overview

Modernizing a Live Enterprise Email Platform

Our client operates a multi-tenant email platform that enables enterprise applications to send messages through HTTP APIs and SMTP. It manages tenant-specific sending rules, delivery tracking, and a customer portal for message logs, statistics, and settings. Behind the platform, eleven repositories and multiple build pipelines made changes difficult to coordinate. A single feature could require updates across several codebases and a carefully ordered release. We consolidated the application code into one TypeScript monorepo and moved the core APIs and customer portal to Amazon EKS. The migration preserved public API behavior, allowing customers to continue using their existing integrations.

Project at a Glance

The Challenge
The platform was running in production and processing customer email continuously, but its architecture had become difficult to maintain.
The Solution
We moved the whole platform into one TypeScript monorepo running as containers on Amazon EKS, without asking a single customer to change their integration.
Services
Technologies
TypeScript, Amazon EKS, Next.js, Drizzle ORM, Aurora PostgreSQL, GitHub Actions, Docker Compose
Challenge

The Challenging Part

The platform was running in production and processing customer email continuously, but its architecture had become difficult to maintain. --- The goal was to simplify email infrastructure without asking customers to rebuild their integrations.

Preserving API Compatibility | Customer applications depended on established endpoints, error codes, and response formats. These contracts had to remain consistent throughout the migration. Coordinating Fragmented Releases | Application repositories, shared code, builder pipelines, and infrastructure configurations had to change together, increasing release complexity. Maintaining Database Consistency | Manual schema updates had created differences between environments. The team needed a repeatable way to apply and validate database changes. Protecting Tenant Data | Each customer needed access only to its permitted applications and message records, with consistent authorization checks. Handling Complex Email Workflows | A single request could generate multiple personalized messages. Recipient-level failures needed to be handled without affecting unrelated outcomes. Supporting One-Click Unsubscribe | The platform needed an RFC 8058 unsubscribe workflow, with safeguards to prevent automated link previews from triggering unintended actions.
Inside the Product

A closer look

Mail API

Full case study

Get the complete case study as a PDF

Enter your name and email and we'll send it to your inbox.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Solution

How the Solution Worked

## A Phased Migration with Compatibility Built In We deliver the modernization through incremental steps, keeping the system operational as its underlying architecture changed.

One Shared TypeScript Codebase | The Mail API, Provisioning API, customer portal, and shared application code were consolidated into a monorepo. This brought related changes into one development and CI workflow. A Compatibility Bridge During Migration | A temporary adapter allowed the new Fastify server to run existing Lambda-shaped handlers. The team then replaced those handlers route by route, using regression tests to check that public API behavior remained consistent. Containerized Core Services on Amazon EKS | The core APIs and portal moved to containers with service-specific deployment charts and autoscaling. This removed the previous load-balancer-to-Lambda proxy and simplified the portal’s routing architecture.

Core Technologies

We used the following technologies to deliver this project.

Node.js Typescript Fastify Typebox Next.js Ant Design SWR Recharts Aurora PostgreSQL Drizzle ORM AWS Secrets Manager Amazon S3 Docker Amazon EKS AWS Load Balancer Kubernetes Helm Terraform CloudFront Sentry Jest docker-compose LocalStack Mailpit
Results

Real Impact for the Business

## A Simpler Architecture with Existing Integrations Preserved The migration consolidated the codebase, removed redundant deployment components, and strengthened automated checks while maintaining public API compatibility.

11 repositories | consolidated into one monorepo 100% | backwards-compatible migration 1,700+ | Mail API tests running on every merge RFC 8058 | one-click unsubscribe support Cold starts | removed from the main API request path Database schema drift | blocked automatically in CI
Client Testimonial

What Our Client Has to Say

“

Our decade-long partnership with Amrood Labs has been exceptional. They're reliable, responsive, and genuinely invested in our success. Communication is consistently transparent and proactive.

Brad Slavin
General Manager
DuoCircle
Let's Work Together

Have a Similar Idea?

We help businesses build AI-powered platforms that solve real problems and deliver measurable impact.

Join a fostering company which is big enough to support, small enough to care.

LET'S CHAT

Get in Touch

Copyright © 2026 Amrood Labs. All rights reserved.
Scroll to Top Icon