Warning

🚧 Work in Progress: This page is currently under construction. Content may be incomplete or subject to change. To contribute, see the contribution guide.

ADR-NNN: [Decision Title]

FieldValue
StatusProposed
Date2026-05-07
Decision makersLeandro Crespo
SupersedesN/A

Use Case Catalog β€” Integration Platform Selection

Companion to [PAX-EA] 4. Integration Architecture β€” Β§5.0 Integration Platform Selection Guide.

Maps concrete Patria scenarios to the recommended platform (or combination of platforms) based on the current decision matrix.


0. Preliminary Notes

Integration platform vs. compute runtime. Sensedia API Management exposes and governs APIs, but the backend implementing the business logic runs on a runtime (Cloud Run, Cloud Functions, FastAPI on Cloud Run). These runtimes are not integration platforms and must not be evaluated against Sensedia/N8N/Airflow/etc.

Mandatory governance. Every API consumed by third parties (clients, counterparties, regulators) or published to the internet must go through Sensedia API Management β€” this is not optional; it is a mandatory security control (auth, rate limiting, observability, auditing).


1. Quantitative Criteria for Tiebreaking

When a use case fits more than one platform, apply the following thresholds:

DimensionThresholdIndicated Platform
Volume per execution> 100k recordsAirflow (Cloud Composer)
Volume per execution< 10k records and latency mattersAPI Management + microservice
Required p95 latency< 200 msAPI Management + Cloud Run (min instances β‰₯ 1)
Event frequency> 100 events/secSensedia Event Hub
CriticalityRegulated production / external client / contractual SLANOT N8N, NOT UiPath as permanent production
Transformation volumeGB–TBAirflow + BigQuery
Transformation volumeKB–MB inlineSensedia iPaaS

2. Data Exposure and Consumption via API

Concrete Use CasePlatform(s)Rationale
Simple DB query/extraction (e.g., fund positions from Geneva)Sensedia API Management + microservice in FastAPI on Cloud RunEncapsulate data access in a versioned service layer
Exposing logic currently residing in a stored procedureMicroservice (Cloud Run + FastAPI) that invokes the SP + Sensedia API ManagementAvoid coupling the API contract to the DB schema; the SP remains an internal detail
Low-latency API (< 200 ms p95) for point queries with no business logicSensedia API Management + Cloud Run with min instances β‰₯ 1Cloud Functions discarded due to cold start
Aggregation of multiple backend systems into a single endpoint (BFF)Sensedia API Management + microservice on Cloud RunCloud Run to maintain backend connection state

Allowed exception: expose an SP directly via iPaaS (Camel) only if (a) the SP is already stable, (b) the cost of a microservice is not justified, and (c) the contract is documented as internal/transitional.


3. System-to-System Integration

Concrete Use CasePlatform(s)Rationale
Sending information between systems via synchronous API (e.g., price review)Sensedia iPaaS + Sensedia API ManagementThere is transformation or routing between calls
Simple synchronous call without transformationSensedia API Management directly to the backendiPaaS would be over-engineering
Event-driven notification when a fund valuation is updatedSensedia Event Hub (publish) + consumer on Cloud RunStandard pub/sub pattern
Near-real-time synchronization between Geneva and CRMPreferred: Sensedia Event Hub (CDC from Geneva) + consumer. Alternative: iPaaS if complex orchestration/transformation across multiple systems is requiredEvents for decoupling; iPaaS only if orchestration logic is needed
Incoming webhook from external SaaS (e.g., signed DocuSign) β†’ trigger internal production actionSensedia API Management (reception) + Sensedia iPaaSProduction-critical β†’ iPaaS, not N8N
Incoming webhook for non-critical internal automation / prototypeSensedia API Management (reception) + N8NOnly if flow failure does not affect SLA toward clients/regulators

4. Data Pipelines (High Volume / Batch)

Concrete Use CasePlatform(s)Rationale
Daily trade ingestion from OMS to data lake (Bronze β†’ Silver β†’ Gold)Airflow (Cloud Composer)Standard Medallion pattern
Nightly reconciliation Geneva ↔ data warehouseAirflow (Cloud Composer)High volume + task dependencies
XBRL ingestion from CMF to BigQueryAirflow (Cloud Composer) β€” download via HttpOperator/PythonOperator + processingDo not split across N8N+Airflow if Airflow can handle it alone
Scheduled market data extraction (Bloomberg, Refinitiv)Airflow (Cloud Composer) + specific connectorSchedule + retry + lineage on a single platform
File download from portal with login/captcha/UI β†’ load to GCS for Airflow to processUiPath or N8N (download only) β†’ GCS β†’ AirflowSplit only when the download requires UI automation

5. UI Automation / Legacy Systems Without API (RPA)

Concrete Use CasePlatform(s)Rationale
Automated login to banking portal to download statementUiPathUI with session/captcha/heavy JavaScript
Mass data entry in legacy desktop application without APIUiPath (unattended bot)No alternative available
Regulatory report generation in system with proprietary UIUiPathNo alternative available
Legacy data extraction β†’ API exposure (transition)UiPath (extracts) β†’ Sensedia API Management (exposes)Strangler pattern for modernization

UiPath should be treated as a transitional solution. Whenever possible, expose the system via API and replace the bot with a Sensedia integration.


6. User Task Automation / AI-Augmented

Concrete Use CasePlatform(s)Rationale
Email download and formatting (e.g., broker confirmations)N8NNon-critical task, no external SLA
Document classification with LLM (KYC, contracts)N8N + MCP / LLMInternal productivity; if promoted to regulated production, migrate to Cloud Run
Smart notification in Slack/Teams on business eventN8NLow volume, non-critical
Web scraping of simple HTTP/HTML source without login + load to GCSN8NNo complex authentication or heavy JS
Web scraping with login/session/heavy JSUiPathUiPath’s native capability
Quick prototype connecting SaaS tools (Notion, Asana, Slack)N8NIteration speed

N8N must not execute processes where a failure affects SLA toward clients, counterparties, or regulators. For those cases, migrate to iPaaS / Cloud Run.


7. Approval Workflows / BPM

Concrete Use CasePlatform(s)Rationale
Purchase order approval with multiple approval levelsFluigFormal approval with audit trail
Employee onboarding (forms + signatures + routing)FluigHuman workflow with compliance requirements
Contract approval β†’ upon approval, provision access in target system (no transformation)Fluig (approval) + Sensedia API Management β†’ target systemDirect API call post-approval
Contract approval β†’ upon approval, execute integration with transformation/orchestrationFluig (approval) + Sensedia iPaaSThere is transformation between Fluig and the target system
IT change request / incidentServiceNow (not Fluig)ITSM, not business BPM

Fluig vs. ServiceNow: Fluig manages business workflows (procurement, contracts, HR). ServiceNow manages ITSM (incidents, change requests, ticketing). They are complementary.


8. Typical Hybrid Scenarios at Patria

Concrete Use CaseCombination
Bot downloads file from legacy portal β†’ pipeline processes itUiPath β†’ GCS β†’ Airflow (Cloud Composer)
Expense approval triggers direct call to ERPFluig β†’ Sensedia API Management β†’ ERP
Expense approval requires transformation before reaching ERPFluig β†’ Sensedia iPaaS β†’ ERP
LLM interprets PDF β†’ publishes event β†’ consumer updates CRM (production)Cloud Run (LLM) β†’ Sensedia Event Hub β†’ consumer
Same flow in prototype / non-critical phaseN8N (LLM) β†’ Sensedia Event Hub β†’ consumer
API exposes data computed by batch pipelineAirflow (computes and persists in BigQuery) β†’ Sensedia API Management on Cloud Run

9. Anti-Patterns to Avoid

Anti-PatternCorrect Platform
N8N as production API gatewaySensedia API Management
N8N as high-volume ETL (> 1M records/day)Airflow (Cloud Composer)
N8N in regulated production process / with external SLASensedia iPaaS or Cloud Run
UiPath over a system that already exposes an APISensedia
Airflow for webhooks or synchronous flowsSensedia (API Management / iPaaS)
Airflow for processes requiring human decision / approvalFluig
Fluig for IT ticketsServiceNow
Fluig for technical integrations without a human componentSensedia
Sensedia for heavy transformations (GB–TB)Airflow + BigQuery
Sensedia API Management for heavy batch processingAirflow
Stored procedure exposed directly as a REST APIMicroservice (Cloud Run + FastAPI) + API Management
Cloud Functions for APIs with latency < 200 ms p95Cloud Run with min instances β‰₯ 1
Chaining 3+ platforms for a simple use case (fragmentation)Consolidate in the platform with the best primary fit
External / internet-facing API without going through Sensedia API ManagementAlways Sensedia API Management (security mandate)

10. Decision Tree

Apply in order; take the first match.

  1. Batch pipeline / high volume (> 100k records) or heavy transformations (GB–TB)? β†’ Airflow (Cloud Composer)
  2. Legacy system without API requiring UI automation (login, captcha, desktop)? β†’ UiPath (transitional)
  3. Formal approval with audit trail, signature, compliance, or human routing? β†’ Fluig (or ServiceNow if ITSM)
  4. Non-critical internal automation, AI-augmented, or prototype, without external SLA? β†’ N8N
  5. Asynchronous / event-driven communication (pub/sub, CDC, near-real-time decoupled)? β†’ Sensedia Event Hub
  6. Synchronous request-response communication with transformation / orchestration / routing? β†’ Sensedia iPaaS (+ API Management if exposed externally)
  7. Synchronous request-response communication without transformation? β†’ Sensedia API Management directly to the backend (Cloud Run / Cloud Functions / FastAPI) If there is still ambiguity between two platforms, apply the quantitative criteria from Β§1.