orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
513 stars 220 forks source link

Switch to HttpClient async API #6021

Open ebruchez opened 10 months ago

ebruchez commented 10 months ago

Right now, HTTP calls in Orbeon Forms are generally synchronous. When we start an async submission, we still use the synchronous API, but we wrap it inside a worker thread using an ExecutorCompletionService.

However, we should instead try to use async APIs all the way. See doc.

With the JS environment, we are using Future (#4077).

ebruchez commented 9 months ago

We could also use https://sttp.softwaremill.com/en/latest/quickstart.html.