patcg-individual-drafts / private-aggregation-api

Explainer for proposed web platform API
https://patcg-individual-drafts.github.io/private-aggregation-api/
43 stars 19 forks source link

Fetch based design as a considered alternative #42

Closed yoavweiss closed 1 year ago

yoavweiss commented 1 year ago

When working on Pending Beacon, we got feedback that the design should be as close to fetch() as possible. There are parallels here, so I'm filing this issue as means to think through the implications of that alternative design.

A few differences between fetch()/PendingBeacon and this API:

Given all the above, I think it makes sense to not try to align this with fetch(). At the same time, it's worthwhile to document the reasoning.

yoavweiss commented 1 year ago

Talking to @noamr, another potential reason why this shouldn't be fetch() is that this API is to be called from environments where a "regular" fetch() shouldn't be available.

noamr commented 1 year ago

Yea this seems like an API more related to shared storage worklets and FLEDGE rather than having anything to do with general-purpose fetching.