chainweb-node icon indicating copy to clipboard operation
chainweb-node copied to clipboard

Batching multi-chain Pact service endpoints

Open sirlensalot opened this issue 3 years ago • 1 comments

Offer a new set of endpoints for the pact API that are "chain independent" and essentially dispatch to the appropriate apis, since txs self-identify for chains

  • send can be unchanged as it's already batch
  • local changes so maybe has a different name (locals?)
  • poll is batching but might require chain IDs, if so a new name (polls?)
  • listen is not indicated for this feature, and offering some kind of join is probably not merited.

sirlensalot avatar Nov 24 '21 18:11 sirlensalot

Internally, chainweb-node is shared by chain. Each chain has its own pact api. Adding chain independent APIs would change that paradigm and make future physical sharding more difficult.

Even if we add a global ingress in front of the shared pact services, routing would become more difficult, because the proxy would need to parse the request bodies in order to find out to which service to forward to.

larskuhtz avatar Jun 13 '22 17:06 larskuhtz