chetanmeh commented on issue #3619: Provide an activation store SPI
URL: 
https://github.com/apache/incubator-openwhisk/pull/3619#issuecomment-396498156
 
 
   @dubee I had provided some feedback on the [DL mail. thread][1]. 
   
   > In some cases we are seeing large activation responses when requested
   by client (with lots of concurrent request) put pressure on Controller
   and Invoker heaps. As in most cases the logic in controller or invoker
   does not "interpret" the activation record it would be efficient to
   have an API which can just stream the json content to output response.
   
   > So if the `ActivationStore` provides a get by id method which accepts
   a Sink[ByteString, Future[T]] like we have in
   ArtifactStore#readAttachment then that can possibly be plugging to
   HTTP response sink and thereby avoid buffering the whole json in
   memory. This would reduce heap pressure for web actions and other
   cases where lots of clients are concurrently requesting activation
   
   Would it be possible to have a stream based API instead of one which returns 
a `Future[List[_]]`
   
   [1]: 
https://lists.apache.org/thread.html/ee87b42d1f516e65bb1b291c509da667f8a2a33c311b1ee01e27922e@%3Cdev.openwhisk.apache.org%3E

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to