Git Product home page Git Product logo

Comments (10)

jthomas avatar jthomas commented on May 21, 2024

I made a Go library to help with this.
http://jamesthom.as/blog/2016/06/21/serverless-go-actions/

from openwhisk.

rabbah avatar rabbah commented on May 21, 2024

Here's another way to do it: https://www.ibm.com/blogs/bluemix/2017/01/docker-bluemix-openwhisk/

from openwhisk.

rabbah avatar rabbah commented on May 21, 2024

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.

sciabarracom avatar sciabarracom commented on May 21, 2024

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.

csantanapr avatar csantanapr commented on May 21, 2024

@sciabarracom

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

  1. 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
  2. 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.

sciabarra avatar sciabarra commented on May 21, 2024

I wrote my proposal in the mailing list to make more clear what I mean.

from openwhisk.

csantanapr avatar csantanapr commented on May 21, 2024

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.

sciabarra avatar sciabarra commented on May 21, 2024

Not yet, but I can work on it if it sounds acceptable.

from openwhisk.

daisy-ycguo avatar daisy-ycguo commented on May 21, 2024

@csantanapr I wonder if we are able to close this issue, since we have runtime-go repo.

from openwhisk.

markusthoemmes avatar markusthoemmes commented on May 21, 2024

Closing this as we have documented go actions and a dedicated repo.

from openwhisk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.