Welcome! Please see the About page for a little more info on how this works.

+1 vote
in Ions by

I can’t find any details regarding the execution details of a web Ion. Is each request handled in its own thread? I need to make some http calls to external services in the course of satisfying the web request, but I want to ensure that doing so in a blocking/synchronous way isn’t going to cause issues.

1 Answer

0 votes

Kind of opposite answer, pedestal ions do not support "async requests"

Once you can't return an async channel, the only other way to do IO is blocking IO



I agree with you that it should be explicit on docs

Ah thank you. I am in fact using pedestal and had missed that entry in the docs. So it does then seem like blocking IO is the only path, and should be safe.

Still tho, it'd be helpful to know the context of execution for other reasons (eg shared state).