README.md in reactor-0.18.0 vs README.md in reactor-0.19.0

- old
+ new

@@ -26,20 +26,20 @@ $ gem install reactor ## Usage -Well, this is evolving, so it's probably best to go read the specs. +Well, this is evolving, so it's probably best to go read the specs as +well as below. ### Barebones API ```ruby Reactor::Event.publish(:event_name, any: 'data', you: 'want') ``` -### ActiveModel extensions #### Publishable Describe lifecycle events like so @@ -285,9 +285,18 @@ ``` If no -> you can probably just delete the subscriber. In the worst case scenario, you get some background exceptions for a job you didn't intend to have run anyway. Pick your poison. +#### Managing Queues + +There will likely be more queue theory here later, but for now here are the features. + +Everything is done on Sidekiq `default` queue by default. + +Subscribers can opt into certain queues with `on_event :whatever, sidekiq_options: { queue: 'whatever' }` argument. + +You can also override _all queue choices_ with `ENV['REACTOR_QUEUE']`. You may want to do this if you wish to contain the 'cascade' of events for more expensive or risky operations. ## Contributing 1. Fork it 2. Create your feature/fix branch (`git checkout -b my-new-feature`)