You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/08/30 01:39:47 UTC

[GitHub] rabbah opened a new issue #2672: Action attachments are not cached and end up repeatedly fetched even if not needed

rabbah opened a new issue #2672: Action attachments are not cached and end up repeatedly fetched even if not needed
URL: https://github.com/apache/incubator-openwhisk/issues/2672
 
 
   Actions which have an inlined `exec` (all but Java actions today) currently get cached in their entirety, but for Java actions, the JAR is not cached? instead the implementation ends up fetching it every time there is a a `get`, even for a cache hit, to reconstitute the entire `WhiskAction`.
   
   This is not very good: too many useless requests to Couch for example when we don?t need the `exec` (invoke path), plus we?re penalizing attachments compared to the rest of the action kinds.
   
   A proposed solution is to introduce a _mini_ `WhiskAction` which eschews `exec` in general on the ?post? (invoke) path. As such, we can avoid fetching the JAR unless doing CRUD operations. This likely reduces the penalty for repeated fetches since CRUD operations are usually much less frequent.
   
   FYI @dubeejw @markusthoemmes 
 
----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services