All Projects → nickalie → Go Queue

nickalie / Go Queue

Licence: mit
Multi backend queues for Golang

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Go Queue

Nsq
A realtime distributed messaging platform
Stars: ✭ 20,663 (+137653.33%)
Mutual labels:  queue, distributed-systems
Foundatio
Pluggable foundation blocks for building distributed apps.
Stars: ✭ 1,365 (+9000%)
Mutual labels:  queue, distributed-systems
Jocko
Kafka implemented in Golang with built-in coordination (No ZK dep, single binary install, Cloud Native)
Stars: ✭ 4,445 (+29533.33%)
Mutual labels:  queue, distributed-systems
coolbeans
Coolbeans is a distributed work queue that implements the beanstalkd protocol.
Stars: ✭ 56 (+273.33%)
Mutual labels:  distributed-systems, queue
Nsq
A realtime distributed messaging platform (forked from https://github.com/nsqio/nsq)
Stars: ✭ 476 (+3073.33%)
Mutual labels:  queue, distributed-systems
Blockchain Reading List
Blockchain Manchester Meetups, Talks and Reading List
Stars: ✭ 17 (+13.33%)
Mutual labels:  distributed-systems
Activejob Scheduler
A background job scheduler for any queue backend
Stars: ✭ 24 (+60%)
Mutual labels:  queue
Blockade
Docker-based utility for testing network failures and partitions in distributed applications
Stars: ✭ 834 (+5460%)
Mutual labels:  distributed-systems
30 Seconds Of Cpp
30 Seconds of C++ (STL in C++). Read More about 30C++ here 👉
Stars: ✭ 815 (+5333.33%)
Mutual labels:  queue
Awesome Microservices Netcore
💎 A collection of awesome training series, articles, videos, books, courses, sample projects, and tools for Microservices in .NET Core
Stars: ✭ 865 (+5666.67%)
Mutual labels:  distributed-systems
Vearch
A distributed system for embedding-based retrieval
Stars: ✭ 940 (+6166.67%)
Mutual labels:  distributed-systems
Liblist
Generic Linked list Management Library in C
Stars: ✭ 22 (+46.67%)
Mutual labels:  queue
Construct
JavaScript Digital Organisms simulator
Stars: ✭ 17 (+13.33%)
Mutual labels:  distributed-systems
Blog
my blog, using markdown
Stars: ✭ 25 (+66.67%)
Mutual labels:  distributed-systems
Microservices Connector
Inter-Service communication framework, support for microservice architecture and distributed system
Stars: ✭ 17 (+13.33%)
Mutual labels:  distributed-systems
Nact
nact ⇒ node.js + actors ⇒ your services have never been so µ
Stars: ✭ 848 (+5553.33%)
Mutual labels:  distributed-systems
Train
Train, a fast (FIFO) queue with rollback mechanism.
Stars: ✭ 5 (-66.67%)
Mutual labels:  queue
Inc.runtime.queue
An runtime queue use Asynchronous program
Stars: ✭ 19 (+26.67%)
Mutual labels:  queue
Trek
Trek is a CLI/ncurses explorer for HashiCorp Nomad clusters.
Stars: ✭ 26 (+73.33%)
Mutual labels:  distributed-systems
Bigq
Messaging platform in C# for TCP and Websockets, with or without SSL
Stars: ✭ 18 (+20%)
Mutual labels:  queue

Go Queue

Multi backend queues for Golang

codecov Codacy BadgeGo Report Card

Install

go get -u github.com/nickalie/go-queue

Example of usage

package main

import (
	"fmt"
	"github.com/nickalie/go-queue"
	"time"
)

func main() {
	for i := 0; i < 5; i++ {
		go consumer(i + 1)
	}

	producer()
}

func producer() {
	i := 0
	for {
		i++
		queue.Put("messages", fmt.Sprintf("message %d", i))
		time.Sleep(time.Second)
	}
}

func consumer(index int) {
	for {
		var message string
		queue.Get("messages", &message)

		fmt.Printf("Consumer %d got a message: %s\n", index, message)
		time.Sleep(2 * time.Second)
	}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].