slowqueue

module
v0.0.0-...-de4ef9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2022 License: MIT

README

Slow queue

Go Reference

Slow queue is classical FIFO queue, based on approach where one file is one element.

Designed compromises and features:

  • Store as minimal as possible information in memory.
  • Number of elements and element sized only limited by underlying file storage.
  • Designed to handle a lot of large elements by with reasonable compromise of speed in memory-constraint environments
  • Consistent and fault-tolerant.
  • Zero dependencies.

Does NOT support access to the same queue from different processes, however, it is go-routine safe.

Summary: it's thread-safe consistent queue, relatively slow (~3-4k push-poll ops / second), for large elements, with small, fixed memory footprint, designed for embedded, edge or other memory constraint devices.

Additional helpers:

  • Processor: async tasks processor with retries and TTL

Directories

Path Synopsis
Package processor is helper for async tasks processing with retries and TTL
Package processor is helper for async tasks processing with retries and TTL
Package queue providing file-based FIFO queue
Package queue providing file-based FIFO queue

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL