andirinli / Gofer.NET

Easy C# API for Distributed Background Tasks/Jobs for .NET Core.

Home Page:https://brthor.github.io/Gofer.NET/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gofer.NET: Easy distributed tasks/jobs for .NET Core

Build Status Nuget Version Number Join the chat at https://gitter.im/Gofer-NET/Lobby

Documentation

Read the Docs

What is this?

This is a distributed job runner for .NET Standard 2.0 Applications.

Inspired by Celery for Python, it allows you to quickly queue code execution on a worker pool.

  • Use natural expression syntax to queue jobs for execution.

  • Queued jobs are persisted, and automatically run by the first available worker.

  • Scale your worker pool by simply adding new nodes.

  • Backed by Redis, all tasks are persistent.

A Minimal Example

public static async Task Main(string[] args)
{
    var redisConnectionString = "127.0.0.1:6379";

    var taskQueue = TaskQueue.Redis(redisConnectionString);
    
    await taskQueue.Enqueue(() => Console.WriteLine("echo"));
    await taskQueue.ExecuteNext();
}

Getting Started

Read the Getting Started Guide.

About

Easy C# API for Distributed Background Tasks/Jobs for .NET Core.

https://brthor.github.io/Gofer.NET/

License:MIT License


Languages

Language:C# 99.7%Language:Shell 0.3%