Skip to content

thanhtinhpas1/go-asynq-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“– Example: Asynq. Simple, reliable & efficient distributed task queue for your next Go project

Asynq is a Go library for distributed tasks and processing them asynchronously with multiple workers. It's backed by Redis and is designed to scale and distribute easily. Asynq has many features for task like schedule, timeout, retry, etc.

Overview

Prerequisites

Make sure docker already exists in your environment or you can setup Redis by brew if using Macos

brew install redis

Quick start

  1. Clone this repository
git clone github.com/thanhtinhpas1/go-asynq-example.git
  1. (Optional) Start redis
docker-compose up -d
  1. Install dependencies
go mod download

or Makefile

make pre_install
  1. Start worker
go run worker/main.go

or Makefile

make worker
  1. Start dashboard UI
go run dashboard/main.go

or Makefile

make dash
  1. Start app-server
go run app/server.go

or Makefile

make app

If you like my example, please give me a star โญ

About

๐Ÿ“– Golang Async Example: Asynq. Simple, reliable & efficient distributed task queue for your next Go project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published