storacha / w3name

IPNS client and service for generating, updating, and tracking immutable names with signed updates
Other
45 stars 12 forks source link

Write record to KV #10

Closed francois-potato closed 2 years ago

francois-potato commented 2 years ago

Context

Currently, there is no way to list all instances of a Durable Object (via Cloudflare API or the runtime API). This could be problematic because we won't have a way to retrieve all records in case we need to.

A solution is to use alongside Durable Object, Cloudflare KV.

Scope of this ticket

Acceptance criteria

adamalton commented 2 years ago

In the adam-durable-object-test branch (1f5e5aa0242d53df1d1369919ac787daf9f38329) I've done a proof of concept to show that we can query for a list of all Durable Objects. So we don't need to use the KV store to keep a list of the records, so I'm closing this.