// EVOLUTION OF DATA PIPELINE SOFTWARE ARCHITECTURE AT RIVET (2020 - 2025)

Evolution of Data Pipeline Software Architecture at RIVET (2020 - 2025)

Feb 27, 2025 · Phil Borel · 11 min read

Note: this is an old post, ported from my old blog. I originally wrote it for a talk I gave at the Detroit Software Developers meetup on February 27, 2025. The company numbers, team sizes & "future" plans are all a snapshot of that moment.


Intent: A software architecture journey via a real-world case study on how a software startup grew & how the software architecture evolved to support the business' growth.

Method:

  1. What a data pipeline is & how it works at a high level
  2. What RIVET is & how a data pipeline helps solve problems at RIVET
  3. Evolutionary history of software architecture at RIVET
  4. A vision of what the future holds for RIVET's business & how the software architecture will evolve to meet the business' needs

Introduction

What is a data pipeline?

According to AI: A "data pipeline" is a series of automated processes that move data from its source to a destination, often involving transformation and cleaning steps along the way, to prepare it for analysis and further use, essentially acting like a conveyor belt for data within a system; it allows organizations to collect, process, and deliver data from various sources in a structured manner for insights and decision-making.

According to Phil: A "data pipeline" is a tool used to move data from one place to another place.

For a good visual overview of both the low-res (ETL) & high-res versions of a data pipeline, watch ByteByteGo's What is a Data Pipeline? | Why is it so popular? (there's also a 60-second version).

Why should I care?

Data pipelines allow you to achieve:

  1. Business-scale, high-speed decision making across multiple datasets.
  2. Functionality you just can't do without the data from multiple datasets.
    • Venmo can't work without data from the sender & receiver's banks.
    • RIVET can't work without data from your bidding system, project management system, employee system, employee certification system & accounting system.

If you have several systems that your business relies on (e.g., HubSpot, Salesforce, Jira, Notion, GitHub, QuickBooks, etc) & want to take action informed by data in more than one of these systems at a time, then you will probably benefit from a data pipeline.

This isn't just about having data on a screen that helps the [human | AI] operator make a choice somewhere else. The best case is the data is in the system where the decisions are being made.


RIVET's business model & why data pipelines are important

What is RIVET?

RIVET is a seed-stage, B2B SaaS startup in the construction tech industry, HQ'd in Detroit. Started in 2020. At the time of this talk we were at 42 employees with 15 in Product & Engineering:

  • Engineers: 8
  • Engineering Managers: 2
  • CTO: 1
  • PMs: 1
  • Director of Product: 1
  • Product Designers: 2

Our stack: TypeScript, Node, React, Azure, K8s, Docker, Terraform, BullMQ, Redis & Postgres.

Customer: Construction subcontractors involved in skilled trades (e.g., Electrical, Plumbing, Mechanical, etc). Specifically the "Labor Coordinator" & "Project Manager".

Customer problems

  1. Labor Coordinator: As a Labor Coordinator at a skilled-trade Subcontractor, you have to manage the daily-shifting schedules of 100s-1000s of workers across 100s of job sites. If (when) you make mistakes, the wrong people show up to the wrong job sites. This hurts the company's profitability (because the people are still paid) & turns the job site managers (Foremen) into your enemies. You currently use Excel, a whiteboard & your phone to do this job.
  2. Project Manager: As a Project Manager at a skilled-trade Subcontractor, you are responsible for the profitability of the jobs under your management. You ensure your jobs are profitable by planning how the job is executed & then reviewing performance against your plan (usually by looking at % complete vs total cost to date). You must review & revise your plan every week for every job (someone shows up to the wrong job site, someone is sick, someone quits or is fired, someone takes time off, the entire job schedule is pushed because of a delay with another subcontractor, etc). You use Excel, an ERP/Accounting report & some project management software to do this job.

Solution: A software tool that allows you to match the optimal worker to the job & communicate this match across your company.

Why does RIVET need a data pipeline?

Why use a data pipeline for anything?

  1. You need to get data from multiple systems into 1 system to help you make decisions
  2. You own the 1 system where decisions are made & you need to get your customers' data from multiple systems into your 1 system

RIVET is the platform where construction Labor Coordinators & PMs are making people & project scheduling decisions. In order to make these decisions, they need data on people & projects. This data usually lives in 3-5 separate places, half of which they may not have access to without RIVET.

In order to help our customers achieve the solution above, RIVET needs to provide information about the:

  1. Jobs: address, customer, financials, type of project
  2. Workers: address, emergency contact info, pay rate / cost to company (~2x pay rate), experience, trade, classification
  3. Worker Certifications: title, date attained, experience date, description, image/artifact
  4. Job Schedules: start & end dates, what type of work is needed on the job & when
  5. Worker Schedules: specifically who joins the job to fulfill the required work & when

🤯 Each type of data lives in a separate system:

Source Systems
Jobs ERP, Accounting, Bidding Software
Workers HRIS
Worker Certifications Excel, Google Drive
Job Schedules Excel, P6
Worker Schedules RIVET

Because all of the data that RIVET needs to work is maintained in other systems, RIVET needs a way to ingest this data. Options:

  1. Manual data entry: Some customers will do this; most won't
  2. One-time import (& then manual data entry to maintain): Some customers will do this; most won't
  3. Automatic data updates: 💰💰💰

Past: Prologue

1. The Prototype: SFTP

Snapshot: Q2 2022

Company: Pre-seed · ~$2.6m raised · ~6 employees
Data: 100s of records going through the data pipeline · 1 integration
Data team: CTO: 1

Andy Lawrence, Co-founder & CTO, created the original data pipeline for our first "big" customer. We call this the "ETL Service" because it:

  1. Extracts files from our (or their) SFTP site
  2. Transforms the data based on customer business logic per customer
  3. Loads the data into our public API

System topology

RIVET platform topology in Q2 2022: customer-generated CSV files land on an SFTP server, flow through the ETL Service into the Integrations API & the multi-tenant database

Coded transformation configs

An example coded ETL config in TypeScript, mapping certification fields with keys & formatters

Example coded ETL config

How do RIVET transformation configs work? TS configuration files control how a series of functions processes data.

  • Fetch Logic: How to get the data (SFTP server info, API endpoint auth info, fetch/poll frequency)
  • Skip Logic: Callback with rules run for each record in the incoming data set. If the return value is true, that record will be skipped from further processing
  • Field Ignore: Source of truth / create vs update
  • Key Mapping: hireDate, re_hire_date → hiredate
  • Formatters: Callback transforms the given field

2. The First Iteration: ODBC

Snapshot: Q4 2022

Company: Pre-seed · ~$2.6m raised · ~10 employees
Data: 1,000s of records going through the data pipeline · <5 integrations
Data team: CTO: 1

Another customer needs ODBC extraction, so Andy extends the SFTP prototype with three more components: the "Data Agent Client", "Data Agent Service" & "Data Agent Admin".

The Data Agent Client is a .NET application that can be installed on customer servers (for security or cost-saving purposes) or RIVET-hosted (for ease of use & lower customer maintenance burden) that runs SQL queries against customer databases on a configurable frequency.

The Data Agent Service is a Node application for managing Data Agent Clients installed on RIVET VMs & customer servers. The data available to be managed includes: SQL queries to be run, the SQL query frequency, the source database connection credentials, the destination URL & API token, and various other options relevant to the system.

The Data Agent Admin is an internal React application used to manage Data Agent Clients via the Data Agent Service.

System topology

RIVET platform topology in Q4 2022: a Data Agent Service joins the SFTP server as a second source feeding the ETL Service, fed by Data Agent Clients running next to customer SQL/ODBC data sources

ODBC connector: Data Agent Admin UI

Data Agent Admin UI showing a SQL query against an ERP's jobs tables, with connection, data type, frequency & timeout settings

Data Agent Admin UI

3. The Data Pipeline Team begins to form & tooling gets an upgrade

Snapshot: Q1 2023

Company: Pre-seed · ~$2.6m raised · ~12 employees
Data: 1,000s of records going through the data pipeline per day · ~10 integrations
Data team: CTO: 1 · Engineers: 1

I'm hired & promptly put in charge of onboarding new customers' data into RIVET as well as extending the data pipeline's capabilities. Over the next 24 months, a team of several engineers, a designer & a PM is built to help support this function (and other responsibilities).

  • Creating & maintaining customer integrations mostly happens via SQL queries in the Data Agent Service & coded configs in the ETL Service
  • We deploy a Data Agent Client on a RIVET VM so we can connect to customer cloud-based databases without installing the Data Agent Client on their machines (which was often a time suck)
  • We start to invest in internal tooling to help us better monitor & manage customer integrations & our data pipeline
    • RIVET CLI for ergonomic access to relevant data about a single "transaction" through the data pipeline
    • Metabase for dashboards & metric aggregation

System topology

RIVET platform topology in Q1 2023: adds a RIVET-hosted Data Agent Client for customer cloud databases, a web Data Agent Admin, & a Metabase service reading from a database replica

Internal tooling

We found that building new integrations was simple, but debugging running integrations was difficult. We tried many approaches to this, such as making it easier to deploy them in a sandbox environment where customers could review them before promoting to production, & making local development easier. One solution we landed on was creating an internal CLI tool for viewing the data flow between the different system components (Data Agent Service → ETL → Public API), which helped us debug issues (see where data fell off / had an issue). In order to do this, we used a tracerId (uuid) that tied all of the data around the end-to-end transaction together.

Here's roughly what a trace looks like (anonymized & trimmed):

% rivet trace -u <tracerId>
PRODUCTION: Data Agent
---
Found: <tracerId>
[
  {
    "name": "rivet-hosted-agent",
    "hasRequest": true,
    "hasResponse": true,
    "hasSent": true,
    "status": 17
  }
]
PRODUCTION: ETL Service
---
Found: <tracerId>
[
  {
    "name": "agent_customerName_StateCode",
    "transactionStatus": 7,
    "streamStatus": 5,
    "recordsParsed": 250,
    "recordsSent": 250,
    "recordsSucceeded": 250
  }
]
PRODUCTION: Integration API
---
Found: <tracerId>
[
  {
    "name": "Customer Name [PRODUCTION]",
    "endpoint": "/v1/jobs",
    "resStatusCode": 200,
    "resTime": 30662,
    "resDataSize": "393757"
  }
]

We also built dashboards to help us visualize the health of the entire system & get more visibility into specific issues.

Metabase "Integration Pipeline" dashboard: 427 active ETL configs, records parsed/sent/succeeded/failed today, & a daily summary chart

Metabase (customer config names redacted)

4. The Second Iteration: HTTP

Snapshot: Q3 2023

Company: Pre-seed · ~$2.6m raised · ~12 employees
Data: 10s of thousands of records going through the data pipeline per day · ~100 integrations
Data team: CTO: 1 · Engineers: 1 · PM / Engineer: 1

Louis Gelinas, Co-founder, First Developer & Director of Product @ RIVET, builds the first HTTP extraction using the "Not HTTP Service", aka the "HTTP Connector".

The HTTP Connector periodically polls external APIs to extract JSON data using a customer-provided API key. The first one was a coded, per-integration fetcher: authenticate with the 3rd party API, page through the results, transform them & hand them to the ETL Service.

System topology

RIVET platform topology in Q3 2023: an HTTP Connector Service joins the SFTP server & Data Agent Service as a third source feeding the ETL Service, polling external system APIs

5. GUI Tooling: CSSI

Snapshot: many iterations throughout 2024

Company: Seed · ~$9m raised · ~30 employees
Data: 100-300k records going through the data pipeline per day · 100 integrations at the start, 427 as of this talk
Data team: Engineering Manager: 1 · Engineers: 1 - 3 · PM: 1 · Designer: 1

We started to build a GUI tool for configuring integrations in Q1 2024. This tool is called "Customer Success Configured Integrations" (CSSI).

  • DB-based integration configurations: CSSI moves the transformation logic from code to the database, which unlocks a UI to customize transforms per customer.
  • Manual file upload: CSSI also supports manual file upload, which allows for easier testing of data payloads & replaces our "bulk uploader" functionality.
    • We start to use manual file uploads for integrations that were SFTP, but were not automated exports & uploads to our SFTP server (so a customer had to upload using an SFTP client like FileZilla).
  • Dry Runs: The data pipeline now supports "dry runs", which allow testing an integration in production & getting a snapshot of changes without committing the changes.

CSSI UI

CSSI integrations screen: an SFTP data source with a list of job, certification & worker transformations

List of integrations in the CSSI UI

CSSI transformation screen: a linked command running daily, recent run history & field mapping from data columns to RIVET fields

Configuring an integration in the CSSI UI

System topology

RIVET platform topology in Q1 2024: Public API, Web API & Jobs Service backed by Redis/BullMQ, with the ETL Service fed by the Data Agent Service, HTTP Connector Service & SFTP server


Present: Where we are today

6. RIVET Data Services

Snapshot: Q1 2025

Company: Seed + Bridge (mini A) · ~$15m raised · 42 employees
Data: 100s of thousands of records going through the data pipeline per day · 427 integrations
Data team: Engineering Manager: 1 · Engineers: 3 · PM: 1 · Designer: 1 · Director of Data Services: 1 · Integration Developers: 1

Data Services Team: CSSI enables integration specialization apart from engineering. Data technicians can now create & maintain integrations without needing to write & deploy code.

RIVET context

Chart of weekly scheduled workers in RIVET growing steadily from 2021 through 2024

System topology

The topology is the same as the Q1 2024 diagram in the CSSI section above.

Infra hosting & setup

  • Azure VMs, Application Gateway
  • PM2
  • Nginx
  • Async jobs for messaging (SMS, email, in-app notifications) via BullMQ (Redis + TS)

Future: The RIVET data pipeline of the future™️

Problems: Reliability, Performance & Operations

  1. Acute Problem - Throughput (a performance issue leading to a reliability issue): The data pipeline would not process jobs (batches of data) as quickly as it was receiving jobs. This led to a theoretical processing time of infinity. Most customers had 1-hour SLAs, some had 5-minute SLAs. The data pipeline was slow, but for our customers it appeared down.
  2. Operations: As we migrate from "Engineers write integrations" to "Data Services Integration Developers write integrations", we need more robust tooling for debugging issues with integrations. Put another way: Engineers can dive into our prod SQL databases & ssh into VMs to discover issues; Integration Developers must use the tools provided by our Data Pipeline Engineering team.
  3. Long-tail Performance: With new customers & new data types, we plan to increase load on our data pipeline infra by 50-100x (quantity of records, not quantity of data) over the next 36 months.
  4. Tenant Isolation: Noisy tenants shouldn't affect their neighbors by clogging up the queue for everyone.
  5. etc, etc, etc - the list goes on

Solutions: Strategy Documents, BullMQ & Record-level Metrics - Oh My!

  • ✅ Better Visibility: More clarity on service health & bottlenecks
  • ✅ Horizontal Scaling: More workers to process data
  • ✅ Strategy Docs: We wrote a Data Pipeline Technical Strategy for Q1 2025.
    • Benefits: Helps us know what to do & in what order, builds trust with other teams & parts of the business, and gives us a framework for adjusting our plans over time.
    • Pillars: Definition · KPIs · High-level Plan · Immediate Next Steps
  • 🏗️ BullMQ: Queues help with reliability
  • 🌄 Record-level Metrics: Metrics per record instead of per batch of 100s of records

Metabase

Metabase dashboard with per-service charts: queue items & records processed for the Data Agent Service, HTTP Connector Service, Data Transform Service & Public API


Closing

When I gave this talk, RIVET was raising its Series A, planning to grow the team from 40 → 80 over the following 24 months & moving to a larger office in downtown Detroit. If this kind of work sounds fun, check the RIVET careers page for what's open now.