GitHunt
TH

thanhtinhpas1/go-asynq-example

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

๐Ÿ“– 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

Dashboard

Prerequisites

Make sure redis already exists in your environment or install by using below commands:

brew install redis

or

docker-compose up -d

Quick start

  1. Clone this repository
git clone github.com/thanhtinhpas1/go-asynq-example.git
  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 โญ