Why run a separate json-api for each party?
App Development3 posts608 views2 likesLast activity Jun 2020
ST
StephenOP
Jun 2020@bernhard has addressed the CORS question, but I am curious: why run a separate JSON API for each party? JSON API is only a data-converting proxy for the underlying ledger API, and does not use given tokens outside the request in which they’re given.
AN
anthony
Jun 2020Moved to a new topic since this is a separate question
BE
bernhard
Jun 2020I don’t think you’d run a JSON API per Party, but a JSON API per Participant Node. Since the JSON API Server only connects to a single Ledger API Server, there’s no way to run one JSON API for multiple Ledger APIs. If every Party runs their own Participant Node, that ends up being the same thing as running a JSON API per Party.