We are required to call an HTTP endpoint but our main process is restricted to be single-threaded (we are running multiple instances of the same process and we don't have enough resource on the machine).
Is it possible to do a fire and forget to do it?
Options I always see (which I understand and appreciate) are ExecutorService
, @Async
or other approaches that essentially creates a new thread (or uses an existing one).
Is this doable?