kadena-io / chainweb-node

Chainweb: A Proof-of-Work Parallel-Chain Architecture for Massive Throughput
https://docs.kadena.io/basics/whitepapers/overview
BSD 3-Clause "New" or "Revised" License
250 stars 93 forks source link

Batching multi-chain Pact service endpoints #1314

Open sirlensalot opened 2 years ago

sirlensalot commented 2 years ago

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

larskuhtz commented 2 years ago

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.