I don't know that there's a perfect solution to that problem. Personally, I wound up building a rough but functioning streaming system <https://github.com/jducoeur/Querki/tree/master/querki/scalajvm/app/querki/streaming> for this purpose, which sets up protocol Actors at both ends to deal with the chunking, then return the reassembled result and resolve the Future on the receiving end; you might want to consider something along those lines. (Note that my code is known to be inefficient in its current form, but could serve as inspiration...)
On Wed, Apr 26, 2017 at 2:19 PM, Sumanta Dutta <[email protected]> wrote: > Hi, we generally use ask pattern to handle request-response between client > and Akka Cluster. The client waits on the Future. We have a need where the > response size (~150MB) is too large to fit in one message even after > increasing message-frame-size to - > > maximum-payload-bytes = 50000000 bytes > netty.tcp { > message-frame-size = 50000000b > send-buffer-size = 50000000b > receive-buffer-size = 50000000b > maximum-frame-size = 50000000b > } > > We don't like keep increasing the above limits. So one possibility is to > break the response in small chunks, but then how to handle on the Future > side using the ask pattern. The other possibility may be to use GraphStage > between Actors to stream the response back. Is that a viable solution? Is > there any example out there? > > Thanks, > Sumanta > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/ > current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
