Case study / Hedge fund research / 2024–26

A hedge fund research platform where no query can cross tenant lines.

NDL Research (opens in a new tab) partnered with Rodgers Almer to build Merger Daily, a research platform hedge funds use to track company fundamentals, M&A activity, and investment themes. Two years into daily use, tenant data is isolated at the database layer, and the platform has yet to see an unscheduled outage.

Engagement model
Equity partnership
Built by RA; spun off as an independent company; RA retains equity
Partner
NDL Research (opens in a new tab)
Duration
2 years
Team
11 RA engineers and designers
Stack
Java 25 · Spring Boot 4 with Spring Modulith · PostgreSQL 18 (pgvector, native full-text search) · React · TypeScript · AWS (EC2, RDS, S3, CloudFront, SQS) · Proxmox (on-prem) · NATS JetStream

Zero

unscheduled outages since launch; scheduled downtime is limited to major database version upgrades, and code releases roll out as stateless, rolling deployments with no interruption to users

2x

faster search response time, from pairing native full-text search with indexed relational columns (dates, numbers) after retiring an Elasticsearch cluster

40%

reduction in search infrastructure cost from the same migration

01 · Architecture

What we built together

Merger Daily runs as a hybrid: the client-facing application and its database sit on AWS, while AI inference and long-running workflow processing run on-premises on Proxmox, connected over the public internet without a VPN. The two sides talk over SQS and NATS, with no inbound port open on the on-prem side at all.

Fig. 1: Partner requests flow through Merger Daily Core, which enforces tenant scope before dispatching background work on-prem and AI processing to hosted model providers; failed messages route to a dead-letter queue instead of disappearing silently.Accent: where tenant scope is enforced

Merger Daily Core, a Spring Boot and Spring Modulith application, is the system of record. It carries its own API layer, handles every read and write for the research data hedge funds use daily (company fundamentals, M&A milestones, investment themes), and enforces tenant scope on every query. Search, originally built on Elasticsearch, now runs natively in PostgreSQL: full-text search combined with indexed relational columns for dates and numeric filters, in the same database as the transactional data, with one fewer service to operate and secure.

AI work is split two ways. An NLP service extracts and resolves company mentions from research text, and the Merger Daily NLP service handles chat and note classification, both running on-prem. The AI layer is built to route between hosted model providers and self-hosted inference; live traffic today runs against hosted vendors.

02 · The two years

How the work split

MVP · late 2024Iteration · 2025–26
RABuilt a minimal working version with the full 11-person teamIterated on live use, hardened for SOC2, expanded AI and search capabilities
PartnerDefined requirements from a real trading research workflowDaily use across research and decision-making, live feedback, testing
  1. MVP · late 2024
    RA · Built a minimal working version with the full 11-person teamPartner · Defined requirements from a real trading research workflow
  2. Iteration · 2025–26
    RA · Iterated on live use, hardened for SOC2, expanded AI and search capabilitiesPartner · Daily use across research and decision-making, live feedback, testing
03 · The core change

Tenant isolation enforced at the query layer

Tenant scope is established once, at authentication, and carried through the request as a scoped value rather than something each query has to remember on its own. For transactional queries in Merger Daily Core, a Hibernate filter is enabled per-request and applies automatically to every read; direct lookups by ID that fall outside that filter fail closed and return not found, so another tenant’s record is never revealed to exist in the first place.

For AI-issued requests, tenant identity is passed explicitly into every tool call, rather than assumed from ambient context, so a model reaches only the data it was scoped to see.

TenantFilterAspect.java
@Around("(@annotation(Transactional) || @within(Transactional)) "
      + "&& within(com.one68.mergerdaily.core..*)")
public Object enableTenantFilter(ProceedingJoinPoint pjp) throws Throwable {
  TenantScope scope = TenantScopeContextHolder.get();
  if (scope != null && !scope.isCrossTenantRead()) {
      em.unwrap(Session.class).enableFilter("tenantReadFilter")
        .setParameterList("readTenantIds", scope.getReadTenantIds());
  }
  return pjp.proceed();
}

// Declared once, on the shared base entity:
@Filter(name = "tenantReadFilter", condition = "tenant_id IN (:readTenantIds)")
public abstract class TenantAwareAuditableEntity { }

Yours could be next

Tell us what you're building.

Schedule a call