sijie edited a comment on issue #3854: [issue #3767] support go function for 
pulsar
URL: https://github.com/apache/pulsar/pull/3854#issuecomment-474232576
 
 
   @jerrypeng based on my understanding, the approach taken here is producing 
an executable binary of go-instance and user function and submit the executable 
binary as a whole to function worker to execute. This is the approach that aws 
lambda is taking. In that sense, go-instance is a SDK library.  It is different 
from java and python.
   
   people imports the go instance sdk, write a function and call 
`goInstance.startFunc(functionName)` to start a function in go main function. 
e.g.
   
   ```
   func helloworld() {
       // user define logic.
   }
   
   func main() {
      goInstance.startFunction(helloworld)
   }
   ```
   
   There is an alternative is to use go plugins to loading function 
dynamically. Ideally we can support both. However most of the go developers 
prefer static linking as that's how go programs are written. so PIP-32 takes 
the SDK approach here. 
   
   based on my understanding from the code, this PR focuses on instance 
implementation itself to make sure a go function is able to run in localrun 
mode. Once the instance is ready, support running it from function worker 
becomes easier.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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