Skip to content

vertis-infotech/gilmour

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gilmour

Gilmour is a framework for writing micro-services that exchange data over non-http transports. Currently supported backends are AMQP and Redis PubSub. In both cases, topics (in case of AMQP) and channels (in case of Redis) are used like "routes". The DSL provided is similar to Sinatra.

Protocol

Gilmour uses it's own simple protocol to send request and response "headers". The structure of the payload is a simple JSON as shown below:

{
  data: The actual payload,
  sender: The origin of the request (unique for each request),
  code: The respoonse code if this is a response
}

The sender field actually represents a unique sender key. Any reponse that is to be sent to the request is sent on the "reservered" topic response.<sender> on the same exchange.

Usage Examples

See the examples directory for examples of usage

Specs

To run the specs, modify test/spec/helpers/amqp.yml to point to your rabbitmq server. Then, from within the test directory, run rspec spec/*

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Ruby 100.0%