# Live analytics and gradual migrations for banking

Banks run analytics, fraud monitoring and core systems on several databases. Otterstax queries them in place through one endpoint and turns multi-year migrations into a table-by-table process.

## Otterstax in action

### Fraud in real time (Trading)

Kafka → Otterstax → Anti-fraud service

1. **Transactions stream in.** Every transaction arrives from Kafka, without an ETL job or a copy in a warehouse.
2. **Score it in SQL.** An ONNX fraud model runs as a SQL function inside Otterstax (Enterprise) and scores the stream as it arrives.
3. **Act on the score right away.** The anti-fraud service reads the score as soon as the transaction lands, instead of about 2 hours later.

```sql
SELECT t.id, t.amount, fraud_score(t.features) AS score
FROM kafka.transactions t
WHERE fraud_score(t.features) > 0.9;
```

**Result:** −36.8% — fraud after moving to real-time detection. [Read the customer story →](https://otterstax.com/customers/trading-fraud-detection)

### Move a database without changing the app (Fintech)

PostgreSQL, MariaDB → Otterstax → Your services

1. **Query.** Your services query Otterstax. The orders table still lives in PostgreSQL.
2. **Move orders to MariaDB.** Otterstax keeps both databases in sync while the table moves, then updates its catalog.
3. **Same query again.** The services send the same query over the same connection string, and Otterstax now reads orders from MariaDB.

```sql
SELECT u.country, COUNT(o.id) AS orders, SUM(o.total) AS revenue
FROM orders o
JOIN users u ON u.id = o.user_id
GROUP BY u.country
ORDER BY revenue DESC;
```

**Result:** 1 year — migration time, instead of the estimated 2. [Read the customer story →](https://otterstax.com/customers/mariadb-migration)

### One JOIN instead of glue code (E-commerce)

MariaDB, PostgreSQL, ClickHouse, MongoDB, ScyllaDB, S3 → Otterstax → Your app

1. **Before: glue code.** The app opened a connection to every source and joined the results in its own code.
2. **One query.** The same join is one SQL statement. The app connects to Otterstax with its usual MariaDB driver.
3. **Pushdown and a single result.** Otterstax pushes the work down to each source where the data lives and returns one result.

```sql
SELECT u.country, COUNT(o.id) AS orders, COUNT(e.id) AS sessions
FROM mariadb_prod.orders o
JOIN pg_billing.users u ON u.id = o.user_id
JOIN clickhouse_events.sessions e ON e.user_id = u.id
GROUP BY u.country;
```

**Result:** 60% — fewer DBA incidents. [Read the customer story →](https://otterstax.com/customers/ecommerce-scaling)

### Dashboards and A/B tests without ETL (Marketplace)

Live data sources → Otterstax → Dashboards, A/B tests

1. **Before: ETL every 3 hours.** ETL jobs copied data every 3 hours, so dashboards and A/B tests were up to 3 hours behind.
2. **Query the live sources.** Dashboards and A/B tests query the live data sources through Otterstax.
3. **ETL jobs removed.** The ETL jobs are gone, and results include what happened a moment ago.

```sql
SELECT variant, COUNT(*) AS orders, SUM(total) AS revenue
FROM orders
WHERE created_at > now() - INTERVAL 1 HOUR
GROUP BY variant;
```

**Result:** 3 h → real time — data latency in dashboards and A/B tests. [Read the customer story →](https://otterstax.com/customers/marketplace-ab-tests)

### An AI agent reads production safely

MariaDB, PostgreSQL, ClickHouse → Otterstax → AI agent

1. **One MCP endpoint.** The agent connects to one MCP gateway instead of a separate connector for every data source.
2. **Live, consistent data.** The agent reads the live sources, so there are no copies to drift apart.
3. **Permissions and audit.** Every MCP call runs with the user’s permissions and lands in the audit log (Enterprise).

```sql
-- sent by the agent over MCP
SELECT c.name, SUM(p.amount) AS paid
FROM customers c
JOIN payments p ON p.customer_id = c.id
GROUP BY c.name;
```

**Result:** Audit log — every MCP call runs with the user’s permissions and is logged (Enterprise). [How it works for AI agents →](https://otterstax.com/ai-agents)

## Why teams trust Otterstax

**In production:**

- Banking: PostgreSQL → MariaDB migration, 80–100 TB, in 1 year instead of 2
- Payments: 30–50% faster time-to-production for ML features
- Trading: −36.8% fraud with real-time scoring in SQL

[Case study on mariadb.org](https://mariadb.org/from-postgresql-12-to-mariadb-11-a-gradual-fintech-migration-with-23-lower-tco/)

**Security:** On-prem / self-hosted only; no telemetry, no phone-home; zero copy: queries run where the data lives. [Security overview →](https://otterstax.com/security)

**Talks:** As presented at Internals Berlin 2025 and PyData Yerevan 2026

## The problem

- Analytics and fraud monitoring lag behind by hours: they read ETL copies, not the live data sources.
- A monolithic database that cannot scale, and every team waits on it.
- Database migrations estimated in years.

## What Otterstax does

- Analytics and monitoring query the live data sources through one endpoint — no ETL copies.
- Tables move to a new database one by one, about 2–4 weeks each, while Otterstax keeps the old and new databases in sync with CDC.
- Services keep their MariaDB or PostgreSQL driver; only the connection string changes.

## Customer result: A fintech company: PostgreSQL → MariaDB, 80–100 TB

- **1 year** migration time, instead of the estimated 2
- **−23%** migration TCO — effect of the whole migration, including MariaDB itself
- **~1M** queries a day, up to 10M during promotions

[Read the customer story →](https://otterstax.com/customers/mariadb-migration)

Self-hosted · Zero copy · Your data stays in your infrastructure and jurisdiction — [Security overview →](https://otterstax.com/security)

## The short version for whoever signs off

**Money and speed:**

- **−36.8%** fraud after moving to real-time detection (a trading company)
- **1 year** migration time, instead of the estimated 2 (a fintech company)
- **30–50%** faster time-to-production for anti-fraud ML features (a payments company)

**Risk, taken off the table:**

- On-prem and self-hosted only, no telemetry: data never leaves your infrastructure.
- Apache 2.0 core: your team can read, audit and fork the code.
- Start with a 2-week pilot on your own data sources.

[One-page brief →](https://otterstax.com/brief)

## See Otterstax on your own data sources

In a 30-minute call we'll map your stack and show a working query across your data sources.

[Talk about a pilot](https://otterstax.com/demo) · [Start with open source](https://github.com/otterstax/otterstax/tree/main/examples/quick_start)

---

Source: https://otterstax.com/industries/banking · Otterstax · info@otterstax.com
