README.md in ruby_skynet-0.4.0 vs README.md in ruby_skynet-0.5.0

- old
+ new

@@ -22,13 +22,10 @@ ```ruby require 'rubygems' require 'ruby_skynet' -RubySkynet::Server.port = 2000 -RubySkynet::Server.hostname = '127.0.0.1' - # Just echo back any parameters received when the echo method is called class EchoService include RubySkynet::Service # Methods implemented by this service @@ -46,12 +43,16 @@ Client to call the above Service ```ruby require 'rubygems' require 'ruby_skynet' -client = RubySkynet::Client.new('EchoService') -p client.call('echo', :hello => 'world') +class EchoService + include RubySkynet::Base +end + +client = EchoService.new +p client.echo(:hello => 'world') ``` ### Logging Since ruby_skynet uses SemanticLogger, trace level logging of all TCP/IP @@ -62,12 +63,16 @@ require 'ruby_skynet' SemanticLogger::Logger.default_level = :trace SemanticLogger::Logger.appenders << SemanticLogger::Appender::File.new('skynet.log') -client = RubySkynet::Client.new('EchoService') -p client.call('echo', :hello => 'world') +class EchoService + include RubySkynet::Base +end + +client = EchoService.new +p client.echo(:hello => 'world') ``` ### Architecture ruby_skynet implements its own doozer client which has been tested against @@ -81,24 +86,14 @@ - [SemanticLogger](http://github.com/ClarityServices/semantic_logger) - [ResilientSocket](https://github.com/ClarityServices/resilient_socket) - [ruby_protobuf](https://github.com/macks/ruby-protobuf) - [multi_json](https://github.com/intridea/multi_json) -The server to host services in Ruby also requires: -- [Celluloid::io](https://github.com/celluloid/celluloid-io) - ### Install gem install ruby_skynet -### Future - -* Immediately drop connections to a service on a host when that instance - shuts down or stops. ( Doozer::Wait ) -* More intelligent selection of available Skynet services. For example - nearest, or looking at load etc. - Development ----------- Want to contribute to Ruby Skynet? @@ -137,10 +132,10 @@ Reid Morrison :: reidmo@gmail.com :: @reidmorrison License ------- -Copyright 2012 Clarity Services, Inc. +Copyright 2012,2013 Clarity Services, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at