drupflare/worker - v1.0.4
    Preparing search index...

    Function rpcMigrationCost

    • What an RPC migration would cost, in DO requests per fill.

      Measured on a deployed worker: an RPC method and a stub.fetch() each billed one request per call (7 and 11), while 13 operations inside one invocation billed 1, so today's bridge is free and a crossing moved onto RPC would bill one-for-one.

      Parameters

      • crossingsPerFill: number

        measured; tests/integration/crossings.spec.ts produces it

      • baseDoRequestsPerFill: number = 3

        what a fill costs today, from COST_PER_VIEW.missAndFill.do

      Returns { factor: number; measured: true; overRpc: number; today: number }