Overrides the process-wide default BackendFactory. Useful to point
every Queue/Worker/FlowProducer at a different datastore (e.g. the PostgreSQL
backend) without threading a factory through every constructor — notably so
the existing test suite can run unchanged against another backend.
Pass no argument (or undefined) to reset back to the Redis backend.
Registration changes runtime behavior, not constructor type defaults.
Use withBackend to retain the factory's types.
Overrides the process-wide default BackendFactory. Useful to point every Queue/Worker/FlowProducer at a different datastore (e.g. the PostgreSQL backend) without threading a factory through every constructor — notably so the existing test suite can run unchanged against another backend.
Pass no argument (or
undefined) to reset back to the Redis backend.Registration changes runtime behavior, not constructor type defaults. Use withBackend to retain the factory's types.