dfinity / interface-spec

IC Interface Specification
https://khsfq-wqaaa-aaaak-qckvq-cai.icp0.io/docs
37 stars 20 forks source link

feat(sync-call): [IC-1666] Endpoint for synchronous call requests #265

Closed DSharifi closed 2 months ago

DSharifi commented 10 months ago

As part of IC-1666 the proposal introduces a new HTTPS endpoint for synchronous update calls, or "call and await", where users can send call requests to the replica and get the response back in the same request. This differs from the current call approach where users have to continuously poll the status of a call request to get the response.

Adding a synchronous endpoint for update calls will significantly decrease the end-to-end (client-observed) latency for update calls. An initial prototype shows that the client-observed latency can be reduced by a minimum of 1 second which is ~40% improvement.

mraszyk commented 10 months ago

Note that if we return 200 for both a pre-execution error and a response certificate, then we should introduce a new enumeration over those two cases.

mraszyk commented 10 months ago

Could you please CTRL+f for "/call" and update all the places that refer to the async endpoint to make sense in the presence of the new "/sync_call" endpoint?