Giter Club home page Giter Club logo

chasqui's People

Contributors

jbgo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chasqui's Issues

Documentation refresh

  • edit/revise the README to reflect the actual public interface
  • be sure to document all configuration options (create a wiki page if needed)
  • Write doc comments for all public classes, methods, constants, etc.
  • Add chasqui to rubydoc.info
  • update the examples to reflect the actual public interface https://github.com/jbgo/chasqui/tree/master/examples

chasqui not updating sidekiq's queues set

In order for sidekiq to recognize that a queue exists, it must be part of the queues set.

[12] pry(main)> Sidekiq.redis { |r| r.smembers 'queues' }
=> ["default"]

We need to ensure this set exists when creating subscribers, or events will never get processed.

Chasqui PHP client

  • create a PHP client that implements Chasqui::publish()
  • all other functionality is optional
  • must be a composer package available on packagist
  • could be a separate repository

versioned events??

(This may be more of a 'pro tip' than something that needs to be baked into Chasqui, FYI)

At RFX, we've moved to versioning our event names. So, for example, you want to run some handler code whenever an asset data object is created. We would route/subscribe/publish an event as 'assets:created_v1' - where 'assets' is the channel and 'created_v1' is the event name. All this does is further decouple code. If we want to change the payload or handler code for that event, we just start publishing a '_v2' version of the event as needed. Sometimes the publisher may publish both the v1 and v2 events at the same time. The goal is allowing a way to safely upgrade all (or just some) of the event subscribers to the new version without breaking the old subscribers (even temporarily).

Anyway, this could be baked formally into Chasqui's event API or it could just be a 'protip' on naming events. Just wanted to throw it out there and see what you think. Let me know if you have any questions. Thanks!

Support Ruby Enterprise Edition (1.8.7)

  • support for REE has been requested
  • Chasqui.publish and Chasqui.subscribe must be compatible with REE
  • The resque worker (but not the sidekiq worker) must be compatible with REE
  • The Chasqui broker should be compatible with REE if it is not too much additional effort

question: looking at the README (or examples), it is unclear what the `queue:` setting is for

for example:

I don't see those settings referenced anywhere else in the API. Is that just so Chasqui knows where to get the event details in redis? Or is it so that when chasqui gets one of those events he knows what queue (worker?) to dispatch the event to?

Anyway, not sure anything needs to be done about this - just curious. Thanks!

provide a lower-level interface for event handling

For example, all of the following should work for handling event.

Chasqui.subscribe 'channel.name', 'queue-name', MySubscriber
Chasqui.subscribe('channel.name', 'queue-name') { |a, b| logger.info("sum: #{a + b}") }
Chasqui.subscribe 'channel.name', 'queue-name', ->(payload) { logger.info payload }

generate event_id

I would like for Chasqui to generate a unique event_id for every published event.

Allow subscribers to unsubscribe from events

After looking through the code I'm not sure how unsubscribing queues from a channel will work. I'm guessing at the moment if you removed a given subscription from the code the Chasqui worker would continue pushing work into that Redis list until you manually removed it from the set of subscribers.

Failure backends for the broker

Add support for popular error notification services like Honeybadger, NewRelic, Airbrake, Errbit, etc.

The resque/sidekiq workers can be configured just like any other resque/sidekiq worker.

Update contribution guidelines

Update contribution guidelines to include the following:

  1. For new functionality, please open an issue before creating a PR
  2. For bug fixes, you can open a PR first
  3. Tell people to be polite when communicating with contributors, maybe even link to some blog posts on how to give constructive feedback and without being a jerk
  4. Tests are required with ALL contributions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.