Pheanstalk is a pure PHP 8.3+ client library for the beanstalkd work queue, providing a fully typed, object-oriented interface for producing, consuming, and managing jobs. The library is split into three role-specific interfaces (Publisher, Subscriber, Manager) with a unified Pheanstalk class for convenience. It supports multiple socket implementations (stream, socket, fsockopen) and features a command pattern where each beanstalkd protocol command is encapsulated as a value object that both builds the protocol line and interprets the response. The codebase is heavily tested (unit and integration), follows strict coding standards, and uses modern PHP features including enums, readonly properties, and generics-compatible interfaces. Key architectural highlights include a reusable socket abstraction, immutable value objects for job IDs and tube names, and a clean connection layer that handles reconnection and error recovery. The library is actively maintained with automated CI, semantic releases, and static analysis at PHPStan level 9.
Queuelib is a Python library providing persistent and in-memory queue data structures. It implements FIFO, LIFO, priority, and round-robin queues with disk-based storage options for durability. The library is dependency-free, using only the Python standard library, and is designed for scenarios requiring reliable queuing such as web crawlers. Architecture consists of modular components: base queue classes in queue.py, priority queue in pqueue.py, and round-robin queue in rrqueue.py. Disk-based queues manage data through chunk files (FIFO) or single files (LIFO) with careful bookkeeping to survive process restarts. The priority and round-robin queues use a factory pattern to decouple queue logic from storage implementation, enabling flexibility.