Closed DSharifi closed 2 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.
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?
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.