Praetor
Lightweight microservices for Ruby
Installation
Add this line to your application's Gemfile:
gem 'praetor'
And then execute:
$ bundle
Or install it yourself as:
$ gem install praetor
Usage
You'll need to have a Redis instance running. Praetor checks for REDIS_PROVIDER
by default to find a connection URL. Otherwise, it just uses Redis.new
.
See spec/support/echo_service
for an example service implementation.
See spec/service_client_spec.rb
for an example of how clients can consume Services.
Contributing
- Fork it ( https://github.com/[my-github-username]/praetor/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request