function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
eswarieswari 

Reuse of SSL connection

We are developing an application having different privileges and access for User and Admin portals.

 

The operations the admin performed requiring multiple REST callouts to the backend. Since we use SSL connections for the callouts to protect the REST calls and also enforce SSL client authentication to ensure the call is legit, we would like to be able to reuse the SSL connections for more than a single REST callouts. (This is because the establishing of new SSL connection just for a single REST callout is too costly.) This is nothing different from say a browser use age, say a browser opens a security connection to a web site, it does not terminate the SSL connection to the same service for just making one callout but reuses it over a period of time before it terminates the connection either through idle time out or the user logout from the browser.

 

What we would like to see is if we can have similar SSL connection reuse patterns in the Apex framework, for example, avoiding the “exit” after the first call?

 

Could anyone please help on this.

 

Thanks in advance.