It contains two different words for same meaning: publish and push
The use of Sync is confusing. It is intended to indicate the message is sent to RabbitMQ synchronously but it might be misleading with the way it process a job
Here are some examples from popular background processing in Ruby.
All them are clear and I prefer any to our existing interface. However since TaskBunny is not aiming to abstract background processing (because Erlang/Elixir already has it), I prefer to have a clarity that it enqueues a job (to RabbitMQ). Therefore I would suggest:
TaskBunny.enqueue(Hardworker, payload)
or
HardWorker.enqueue(payload)
I think that the current enqueue interface is bit confusing.
Here are problems...
Sync
is confusing. It is intended to indicate the message is sent to RabbitMQ synchronously but it might be misleading with the way it process a jobHere are some examples from popular background processing in Ruby.
All them are clear and I prefer any to our existing interface. However since TaskBunny is not aiming to abstract background processing (because Erlang/Elixir already has it), I prefer to have a clarity that it enqueues a job (to RabbitMQ). Therefore I would suggest:
Any thoughts?