I have a general question about the nature of callouts and timeouts in Apex. This is probably something I should know already, but I don't.
From testing, if I set the callout timeout limit on a REST callout to 1 ms, and then run it, I get a timeout err of course, but in addition to that, the API call is not executed on the server. I assume that 1 ms is not even enough time to establish communication with the server, and it's terminated on the apex side before that can occur.
And of course, if I set it to a much longer timeout, generally the callout completes as expected. API call is executed on the server, and I get a response back.
But: is it possible to set the timeout such that the API call might execute but the timeout would be reached before I get the response back? So we'd have a successful execution but no evidence of it?
My understanding is that the answer is yes, but I want to verify.