Architecture
System Context
The Insight Service is a set of AWS Lambda functions. It exposes a REST API behind API Gateway, receives Pave webhooks through the shared FloatMe webhooks gateway, consumes Kinesis and EventBridge-tapped SQS events, and publishes to EventBridge.
Components
| Component | Trigger | Purpose |
|---|---|---|
|
API Gateway |
REST API — payday prediction, forecasts, employment, income verification, income detection |
|
Kinesis |
Uploads Plaid transactions and balances to Pave for gate-eligible users; writes |
|
Shared webhooks API Gateway ( |
Enqueues a miner job on |
|
SQS |
Publishes |
|
SQS |
Forwards deferred transaction deletions to Pave — Replay Feeder |
|
SQS |
Low-balance push notification on |
|
SQS |
Deletes employment, income verification, and cached payday on |
|
SQS |
Writes the monthly checking and savings balance row on |
Pave Mining Architecture
Four Lambdas move data to Pave and turn Pave’s completion webhook into an event: feeder to Pave, Pave to webhook, webhook to miner SQS, miner to EventBridge, with the replay feeder handling deferred deletions. Flow detail is in Pave Mining.
Storage
-
PostgreSQL Schema — the
FloatMeAPI_employmentinfomodelemployment table in the shared FloatMe RDS cluster (main and replica pools) -
DynamoDB Tables —
site-pavesingle table,site-incomedetection,site-fmdatacapture,user-balance-settings,locks
External Dependencies
| Service | Role |
|---|---|
Pave |
Receives transaction and balance uploads and deletions; returns recurring income sources for payday prediction; sends completion webhooks |
Transactions Service |
Transaction history, active items, and account balances for forecasts, payday prediction, income detection, and savings snapshots; re-mine trigger; producer of the Plaid Kinesis stream and the tapped |
Underwriting Service |
Recalculation after an employment write; zero-amount float eligibility check before a balance alert |
User Service |
Client constructed by the API Lambda with invoke permission; no handler calls it |
SageMaker |
|
GrowthBook |
Feature flags — Feature Flags |
EventBridge ( |
Publishes |
Segment |
Low-balance push notification delivery |
Datadog |
Metrics, monitors, and SLOs — Monitoring |