Skip to content

[BATCHING] Implement batching with unpack/repack logic #343

@fredteumer

Description

@fredteumer

Objective

Implement batching with unpack/repack logic. Unpack/repack is required so that suppliers can be correctly compensated with onchain mechanisms.

Origin Document

In the previous portal we supported this.

Goals

  • Accept batch requests in the Portal via PATH
  • Correctly compensate the Suppliers for each individual relay in a batch

Deliverables

  • PATH correctly handles batch requests
  • PATH unpacks the batch, processes each individual request and repacks the batch response for a user
  • PATH correctly counts each individual request and submits it to the billing pipeline.

Non-goals / Non-deliverables

  • Batch-based CUTTM
  • Extra services that handle batch requests

General deliverables

  • Comments: Add/update TODOs and comments alongside the source code so it is easier to follow.
  • Testing: Add new tests (unit and/or E2E) to the test suite.
  • Makefile: Add new targets to the Makefile to make the new functionality easier to use.
  • Documentation: Update architectural or development READMEs; use mermaid diagrams where appropriate.

Creator: @fredteumer
Co-Owners: @ArtSabintsev

Metadata

Metadata

Assignees

Labels

billingPayments relateddocumentationImprovements or additions to documentationjsonrpcJSON-RPC relatedoff-chainOff-chain business logic

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions