Re: IMAP FETCH management

2024-03-22 Thread Benoit TELLIER
Hello all. The streaming approach turned out to be a terrible idea! ChunkStream was doing massive blocking reads on the event loop. InputStream is just not the right abstraction for non blocking reads. Rewriting everything to support something like Flux looks doable but requires a major refa

Re: IMAP FETCH management

2024-03-20 Thread Benoit TELLIER
Hello all, Today I did put together a POC where the following IMAP command     a0 FETCH 1:* (BODY[]) would directly stream content from the S3 storage without storing the full input in a byte array. I did test it a bit manually on top of the S3 AES implementation. Link: https://github.com/a