---
title: "How we standardized MariaDB in our Integration Server"
description: "Wealthfront replaced the embedded HSQLDB in its Integration Server, a self-contained production mirror used for integration tests, local end-to-end debugging and Jenkins gating, with MariaDB to match production."
url: "https://swe.quest/articles/how-we-standardized-mariadb-in-our-integration-server-e747f0ce7836dd7f"
canonical: "https://eng.wealthfront.com/2026/03/26/how-we-standardized-mariadb-in-our-integration-server/"
source: "Wealthfront Engineering"
published: "2026-03-26"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["testing","mysql","containers","ci-cd","jvm"]
---

# How we standardized MariaDB in our Integration Server

A post on [Wealthfront Engineering](https://swe.quest/sources/wealthfront.md), published 2026-03-26, 7 min read, Case study. Original: [https://eng.wealthfront.com/2026/03/26/how-we-standardized-mariadb-in-our-integration-server/](https://eng.wealthfront.com/2026/03/26/how-we-standardized-mariadb-in-our-integration-server/)

## Summary

Wealthfront replaced the embedded HSQLDB in its Integration Server, a self-contained production mirror used for integration tests, local end-to-end debugging and Jenkins gating, with MariaDB to match production. Parity catches missing indexes, strict numeric and string integrity issues, real locking and connection-pool behaviour, and optimizer plans that HSQLDB hid. MariaDB runs via Testcontainers wired into a Template Method base class that builds JDBC URLs from the container's mapped port. Jenkins agents that already run in Docker mount the host's docker.sock to start sibling containers instead of Docker-in-Docker, and a JVM-flag feature toggle allowed a branch-by-branch rollout.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [MySQL](https://swe.quest/tags/mysql.md) (Data & databases)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Java & JVM](https://swe.quest/tags/jvm.md) (Languages)

## Prerequisites

- Docker basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- JDBC and Hibernate
- Integration testing in Java ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))

## Keywords

MariaDB, HSQLDB, Testcontainers, Jenkins, Ryuk, Docker-in-Docker

## Related posts

- [Model-Based Testing with Testcontainers and Jqwik](https://swe.quest/articles/model-based-testing-with-testcontainers-and-jqwik-e941a47b3c07d6eb.md): Docker · 2024-10-23 · Medium · 6 min read · Testing, Java & JVM, Containers
  Model-based testing can regression-test a REST API by running the current version (Postgres-backed) and a candidate version (MySQL-backed) side by side, sending both identical randomly generated request sequences, and comparing their responses.
- [Test Your Database Without Mocks](https://swe.quest/articles/test-your-database-without-mocks-093131d18e46824a.md): Neon · 2025-01-15 · Medium · 7 min read · Testing, PostgreSQL, CI/CD
  Database mocks are brittle, expensive to maintain, and test little beyond the mock itself, since they skip real behaviour like transactions, isolation levels, foreign keys and referential integrity.
- [Shift-Left Testing with Testcontainers: Catching Bugs Early with Local Integration Tests](https://swe.quest/articles/shift-left-testing-with-testcontainers-catching-bugs-early-with-local-f90241b596ffcd90.md): Docker · 2025-03-13 · Medium · 10 min read · Testing, Developer productivity, PostgreSQL, TypeScript
  Running integration tests locally against real dependencies via Testcontainers catches bugs that unit tests and mocks miss, before code reaches shared CI or staging environments.
- [Leveraging Testcontainers for Complex Integration Testing in Mattermost Plugins](https://swe.quest/articles/leveraging-testcontainers-for-complex-integration-testing-in-mattermost-plugins-3edaea4757026529.md): Docker · 2024-10-08 · Medium · 6 min read · Testing, Containers, Go, JavaScript
  Mattermost replaced brittle mock-based plugin tests with Testcontainers-driven integration tests that spin up a Mattermost server, PostgreSQL on an internal Docker network, and optional API mock containers.
- [Partitioning GitHub’s relational databases to handle scale](https://swe.quest/articles/partitioning-github-s-relational-databases-to-handle-scale-7b5ea75acfc088c0.md): GitHub Engineering · 2021-09-27 · Medium · 9 min read · MySQL, Distributed databases, Scaling, Schema migrations, Ruby
  GitHub split its monolithic \`mysql1\` MySQL cluster by first virtually partitioning tables into schema domains (declared in YAML) and enforcing boundaries with query and transaction linters, then physically moving domains to new clusters via Vitess vertical sharding or a custom ProxySQL/GTID-based write-cutover script.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
