worker 🍱
![](https://img.shields.io/badge/License-MIT-yellow.svg)
Run jobs using containerized functions. The worker keeps a pool of warm containers to reduce overhead, so new job are executed as they arrive.
Code execution is handled by the agent.
![](https://github.com/benhid/go-worker/raw/98e976052e12/docs/overview.png)
Get started
Build
go build -v
Run
Start worker with:
./worker [-listen ":8090"] [-image "hello-python"] [-min-size 10]
Usage
curl -X POST -H "Content-Type: application/json" \
-d '{"ID": "1", "Payload": "hello world"}' \
http://0.0.0.0:8090/run