WP0bIngestion runtime PoCMock dataFabric Python notebook, .NET on Azure Functions

Fabric notebook vs Azure Functions

On the fixture of 5,000 contacts changed in a 15-minute window, both variants make 6.2 HubSpot requests per 1,000 contacts with the standard property set and 16.2 with the full set (×2.6). Running the extractor and the nudge worker together produced 0 rejected requests at a peak of 130 of 190 per 10 seconds. The old offset paging lost 20 of 1,000 rows edited mid-run and still reported success; the adopted keyset paging lost 0. Latency and cost per day are pending a live run: no HubSpot portal, Google Ads account, Fabric workspace or Azure subscription was available.

Measured 26 Oct 2026 against in-process fake HubSpot and Google Ads systems · 85 Python and 57 .NET automated tests, all passing, re-run before this report

Property set
Paging
HubSpot requests per 1,000 contacts · standard property set
6.2
Notebook ÷ Functions ×1.0 · identical
Search 5.2 · batch read 0 · associations 1.0
31 requests for the 5,000-contact window, in both variants
dotnet-metrics.json · python-metrics.json
Rows lost when 1,000 records change during the run · keyset paging
0
Notebook 0 · Functions 0
The adopted method pages by record id inside the window (finding C2); a record edited while the run pages is neither skipped nor duplicated.
RESULTS.md, test 2b
Fastest possible run for 5,000 contacts at the extractor's share of the rate limit · standard property set
×1.07
Notebook 8.7 s · Functions 8.1 s
Fake clock. HubSpot's limit of 5 searches per second is the floor, not compute; the figure is the same order in both runtimes.
dotnet-metrics.json · python-metrics.json
Rejected requests (HTTP 429) with the extractor and the nudge worker running at the same time
0
Peak 130 of 190 requests in any rolling 10 s
9,000 extracted rows and 6,000 nudged rows in parallel; no budget share starved, so no shared rate-limiting service (Redis) is needed.
dotnet-metrics.json, concurrency test 5
API calls for 1,500 webhook nudges arriving one by one, with batching
×16.9fewer
Functions 89 instead of 1,500 · Notebook 15 instead of 242
A minimum batch of 100 or a 10-second wait before each read. The two rows used different arrival spreads (15 minutes and 60 seconds), so each is compared with its own unbatched figure.
dotnet-metrics.json · RESULTS.md (C17)
Operational code, lines · Notebook ÷ Functions
×0.85
Notebook 1,405 · Functions 1,651
Extraction logic alone: 1,177 against 1,045. Neither variant is markedly simpler; the notebook still needs Functions for the webhook receiver and the nudge worker.
RESULTS.md, same counting rule for both

Measurements behind the tiles

HubSpot requests per 1,000 contacts, by call type

Identical in both variants and in both paging modes: the algorithm, not the runtime, sets the API cost. The full property set pays for 50 extra batch reads per 5,000 contacts.

SearchBatch read of propertiesAssociations

API calls for 1,500 trickling nudges, with and without batching

Logarithmic axis: each gridline is ×10. Hollow point: no batching. Filled point: minimum batch 100, wait 10 s. The .NET batching is modelled from the documented Service Bus host settings; the trigger itself was not run.

Without batchingWith batching.NET FunctionsPython notebook

Operational code by PoC round, lines

Both variants grew by similar amounts as the 36 design decisions landed. Round 3 changed no measured code. Same counting rule for both: non-blank, comments excluded, Python docstrings counted.

.NET on Azure FunctionsFabric Python notebook

Decision criteria of ADR 8, as they stand

The qualitative criteria split the two variants rather than rank them. Every row below is a design fact or a documented limit; none depends on the live run.

CriterionFabric Python notebook.NET on Azure Functions
Public webhook endpoint and sub-minute nudge processingNot possible in a notebook; both stay on Azure Functions in any case (C3)Native
Long extractions (catch-up, historical loads)A notebook job has no HTTP timeoutNeeds an asynchronous start-and-poll path for anything over about 3 minutes (C25); built and unit-tested, not run against Fabric
Start-up for the 15-minute cadenceAbout 5 s per Microsoft's documentation; no high-concurrency reuse (C14)Seconds; scales to zero
Where run state livesLakehouse control tables written from the notebook; the write path to OneLake is unproven (C15)Table Storage plus an hourly state-sync notebook that is not yet built
Rate limiting and retriesPaced limiter and a breaker persisted in the lakehouse; testedPaced limiter on the platform clock and a breaker persisted per caller; tested
Skills neededPython and Fabric, plus Functions for the receiver and the nudge worker anyway.NET and Azure
CostFabric capacity seconds per run, pendingPer execution, near zero when idle, pending

What the proof of concept changed in the design

The builds raised 36 contradictions or gaps between the architecture and the vendor APIs. Every one was decided on 26 Oct 2026 and is written into the architecture and both builds; none is open.

2 high: data loss or a wrong decision if unchanged12 medium: the build team would hit it in the first work packages22 low: wording or completeness

What is not yet proven

Open pointWhy it mattersNeeds
Cost per day of a 15-minute notebook run against Azure Functions execution chargesThe deciding criterion between the two variantsFabric workspace with a capacity; Azure subscription
End-to-end latency from trigger to landed filesSets whether the 15-minute cadence holds under real volumesHubSpot test portal with representative volumes
Packaging the Python code for the Fabric notebookFabric's Python notebook has limited environment support; the route is documented, not exercisedFabric workspace
Writing to OneLake from both variants (landing files, control tables)Both have only written to local diskFabric workspace
Four HubSpot API details: the id-based paging filter, the daily-limit error body, whether searches count twice, the URL length of historical loadsEach is coded on the documentation; a mismatch changes the extraction logicHubSpot test portal, standalone private app
Google Ads developer token and access levelGoogle's pages disagree on the token; production needs Basic access (15,000 operations a day)Google Cloud project: Explorer access for the test, Basic for production
Service Bus batching and the asynchronous start-and-poll pathModelled from documentation and unit-tested, not run against AzureAzure subscription

Asks for management

  • A HubSpot test portal with representative volumes and permission to create a standalone private app (open question B4). Without it the API details and the latency figure stay unverified.
  • The HubSpot subscription tier and whether the API limit add-on is bought (B2). Every rate-budget share is sized from this; Free or Starter halves the burst and the daily allowance.
  • Which other apps share the HubSpot daily allowance (B2). Sets the reserve the platform must leave untouched.
  • A Google Cloud project for the Google Ads API, Explorer access for the test and Basic for production, plus a read-only Google account on the manager account.
  • A Fabric workspace with a capacity and an Azure subscription for the live run of both variants.

Awaiting answers from the business

  • Q1 · Technical / performance
    Which changes do you need to know about within minutes, and what will you do with them?
  • Q2 · Compliance (Q3 in the governance log)
    Who will use the central data, and does anyone need to see named individuals?
  • Q3 · Handling ambiguity (Q2 in the governance log)
    When you say "reconcile or reload", what situation do you have in mind, and how far back must it work? Replaying a situation for an auditor, or making sure that re-running an ingestion pipeline does not change the system (idempotency)?
  • Q4 · Business data consistency
    Is there a shared campaign identifier or naming convention across Salesforce, HubSpot and Google Ads today, or will we need to create and maintain a mapping? Working assumption until answered: a mapping will be created and maintained.

Next steps

  1. Acme provides the access listed above; the business answers Q1 to Q4.
  2. Both variants run the same acceptance tests against the live test portal, the Google Ads test account and a Fabric workspace; latency, cost per day and the four HubSpot API details are recorded.
  3. The Lead Architect closes ADR 8 on the extractor runtime with the measured figures; the Google Ads adapter and the HubSpot adapter proper (work packages 2 and 4) start on the chosen runtime.
  4. The 36 design corrections are already in the architecture; no further rework is expected from the proof of concept itself. The proof of concept is scoped as three weeks in the roadmap; the build part is done and the live run fills the rest, provided the access arrives at the start.
Sources, all in the engagement repository as of 26 Oct 2026: src/PoC/results/dotnet-metrics.json, src/PoC/results/python-metrics.json, src/PoC/RESULTS.md, src/PoC/architecture-deviations/index.md, Architecture/decisions/0008-orchestration-and-compute.md, Architecture/governance/wp0b-poc-brief-hubspot-adapter.md, Architecture/governance/open-questions.md. Every figure was measured against fakes; nothing here is a production measurement.