funker icon indicating copy to clipboard operation
funker copied to clipboard

Make generic for calling from anywhere

Open deitch opened this issue 8 years ago • 2 comments
trafficstars

We have handlers and callers for JS and Python. We should have generic. Recommend one of 2 ways (actually both):

  1. Explicitly expose the API. Let any app know "if I make a network call to the following address with the following parameters, a function will be invoked".
  2. Create a static binary (probably in go) that know how to make a request and listen to requests.

Allows any container to listen and request, both using a convenient binary and native API.

deitch avatar Nov 29 '16 18:11 deitch

Related to this, an idea that @justincormack has been working on is being able to also use Funker functions with stdin/out so you can test them on the command-line.

Something like:

$ docker run -i add
{"x": 1, "y": 2}^D
3

or, perhaps:

$ docker run -i add '{"x": 1, "y": 2}'
3

bfirsh avatar Nov 30 '16 12:11 bfirsh

Now that I like. It keeps with the Unix philosophy of text streams, and makes it real easy to compose manually.

deitch avatar Nov 30 '16 12:11 deitch