redpipe icon indicating copy to clipboard operation
redpipe copied to clipboard

Async file handling

Open aesteve opened this issue 7 years ago • 1 comments

When looking at https://github.com/FroMage/redpipe/blob/master/redpipe-engine/src/main/java/net/redpipe/engine/resteasy/FileResource.java#L19

It seems that file handling is directly delegated to RestEasy. Not sure how it's implemented in details, but I'm concerned by the fact it might use blocking IO.

We could consider using Vert.x build-in  FileSystem which exposes some utilities regarding asynchronous IO.

aesteve avatar Jun 05 '18 07:06 aesteve

Yes, very good idea. We'd just need to do the same as RESTEasy does wrt preconditions and caching.

FroMage avatar Jun 05 '18 07:06 FroMage