Comments (10)
I made a Go library to help with this.
http://jamesthom.as/blog/2016/06/21/serverless-go-actions/
from openwhisk.
Here's another way to do it: https://www.ibm.com/blogs/bluemix/2017/01/docker-bluemix-openwhisk/
from openwhisk.
We should more prominently document that openwhisk supports Go actions (in addition to just about any precompiled binary - Rust, C, C++, ...).
wsk action create <name> <binary> --native
from openwhisk.
I am looking to the implementation of the nodejs runner. I wonder if the right implementation of a go action should not be instead of requiring an http server listening for the runCode post, and implement the initCode replacing the binary with the provided one. Or even create a .so library.
from openwhisk.
What @rabbah shared thatβs exactly what it does, it executed a binary the go code is just an executable. In this case you would get the input via a single string JSON from stdin
This issue would be to take it to the level of in two fold
- Instead of the user writing a go program to parse json from stdin or argv, it would be a more clean programming model to write a function that takes input as a structure object, there would be an epilogue to do the run of the user function parsing the the incoming JSON
- The performance and memory reuse between invocations of different runs. Since the container might not even pause for invocations that are call back to back very fast or pause and resume would also preserve state on the container action
Sorry if I misunderstood your suggestion and comment
from openwhisk.
I wrote my proposal in the mailing list to make more clear what I mean.
from openwhisk.
Do you have a branch with changes or PR with some code maybe that would help understand better your proposal?
Thanks I will check the dev list
from openwhisk.
Not yet, but I can work on it if it sounds acceptable.
from openwhisk.
@csantanapr I wonder if we are able to close this issue, since we have runtime-go repo.
from openwhisk.
Closing this as we have documented go actions and a dedicated repo.
from openwhisk.
Related Issues (20)
- CI scancode misconfigured HOT 1
- failure to deploy rules even if trigger is fired. whiskdeploy issue
- Some questions about Invoker. HOT 1
- [Problem] XXX_THE_END_OF_A_WHISK_ACTIVATION_XXX HOT 3
- Discussion about memory overflow of openwhisk function HOT 1
- Questions about the duration of function calls limited by the nginx gateway HOT 18
- Action failure when the function takes a long time to execute
- Memory leak in `akka.actor.LocalActorRef` HOT 14
- Multi-runtime tests keep failing HOT 5
- waht' is the rule of autoscaler HOT 1
- Error while trying to run `ansible-playbook -i environments/$ENVIRONMENT routemgmt.yml` HOT 2
- use Apache Pekko instead of Akka HOT 2
- Missed config keys on Scala 2.13.x
- Invocation-level fault tolerance guarantees HOT 6
- GPU support for OpenWhisk Actions HOT 1
- OpenWhisk Releases HOT 3
- AkkaContainerClient breaks the ConcurrentTests of nodejs runtime HOT 2
- Deployment Components HOT 5
- The openwhisk is incompatible with java version higher than 16
- Web function 400 Bad Request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openwhisk.