Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeantessier/wisper-example

A simple test of `wisper` pub/sub gem for Ruby on Rails
https://github.com/jeantessier/wisper-example

Last synced: about 1 month ago
JSON representation

A simple test of `wisper` pub/sub gem for Ruby on Rails

Awesome Lists containing this project

README

        

# Wisper Example

This example shows how to use the `wisper` gem for event-based processing. See
[Wisper](https://github.com/krisleech/wisper) for more details.

A single `EchoController` publishes events.

A single subscriber listens for events. It is registered in the `wisper.rb`
initializer. It listens only to a single specific event type.

## Running the Server

You can start the application with:

$ bin/rails server

And use the base URL http://localhost:3000/echo/index

`GET` requests will get echoed in the Sidekiq logs.