You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/11/08 14:29:09 UTC
[GitHub] csantanapr opened a new issue #5: Swift 4 web proxy in swift
csantanapr opened a new issue #5: Swift 4 web proxy in swift
URL: https://github.com/apache/incubator-openwhisk-runtime-swift/issues/5
Today we use python web server to execute the swift binary.
python will pass input JSON via stdin and expect executable to respond with the last line of stdout as the output JSON.
The problems is that the swift code needs to initialize everything on every invoke. if creates instances of a Class, or reads a file into an instance. this work needs to be done from scratch on every invoke.
Other runtimes like nodejs and python in OpenWhisk don't have this problem, since the web proxy server is in the same language and holds into memory.
It would be good to have a web proxy server to be implemented in swift, this way anything created on /init or /run can remain in memory as long the container lives.
One alternative is look into Kitura 2.0 to build a very small and fast web proxy that listens on port 8080 that handles the standard OW interface with /init and /run
----------------------------------------------------------------
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