lllfx / my-asynq

asynq-gf 任务状态落表

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

📖 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 https://github.com/lllfx/my-asynq.git
  1. (Optional) Start redis
cd redis
docker-compose up -d
  1. (Optional) Start mysql
cd mysql
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

asynq-gf 任务状态落表


Languages

Language:Go 98.5%Language:Makefile 1.5%