Skip to content

headshed-dev/queue-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

queue-lite

simple api to make pushing jobs to a queue via an http rest api

a cli to read jobs ( as consumer ) can be used to process jobs from the same api

prerequisites

beanstalkd must be running, in the following example it is on localhost port 11300

golang must be installed and available to run for example the following if you wish to extend the application and woud like to make changes. To see it running, you can use something like :

BEANSTALKD_HOST="localhost" BEANSTALKD_PORT="11300" go run cmd/server/main.go

run the command line consumer with something lik

BEANSTALKD_HOST="localhost" BEANSTALKD_PORT="11300"  go run cmd/cli/main.go 

or keep it up running with

while true; do BEANSTALKD_HOST="localhost" BEANSTALKD_PORT="11300" go run cmd/cli/main.go; done

build

docker build -t queue-lite:001 .

run

docker run -d -p 8080:8080 -e BEANSTALKD_HOST=localhost -e BEANSTALKD_PORT=11300 queue-lite:001

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published