Skip to content

benhid/go-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 25, 2022
98e9760 · Apr 25, 2022

History

1 Commit
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022
Apr 25, 2022

Repository files navigation

worker 🍱

CI Go Report Card License: MIT

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.

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