Sha256: f036dc35c66633f0c0be562825f10f6390cff738e12e0fbb1824cc96eb4d85db

Contents?: true

Size: 1.35 KB

Versions: 9

Compression:

Stored size: 1.35 KB

Contents

BERTRPC
=======

By Tom Preston-Werner (tom@mojombo.com)

BERT-RPC client library for Ruby. Makes it ridiculously simple to interface
with BERT-RPC servers.

See the full BERT-RPC specification at [bert-rpc.org](http://bert-rpc.org).

This library currently only supports the following BERT-RPC features:

* `call` requests
* `cast` requests

BERTRPC was developed for GitHub and is currently in production use performing
millions of RPC requests every day. The stability and performance have been
exemplary.


Installation
------------

    $ gem install bertrpc -s http://gemcutter.org


Examples
--------

Require the library and create a service:

    require 'bertrpc'
    svc = BERTRPC::Service.new('localhost', 9999)

Make a call:

    svc.call.calc.add(1, 2)
    # => 3

The underlying BERT-RPC transaction of the above call is:

    -> {call, calc, add, [1, 2]}
    <- {reply, 3}

Make a cast:

    svc.cast.stats.incr
    # => nil

The underlying BERT-RPC transaction of the above cast is:

    -> {cast, stats, incr, []}
    <- {noreply}


Documentation
-------------

Creating a service:

    # No timeout
    svc = BERTRPC::Service.new('localhost', 9999)
    
    # 10s socket read timeout, raises BERTRPC::ReadTimeoutError
    svc = BERTRPC::Service.new('localhost', 9999, 10)


Copyright
---------

Copyright (c) 2009 Tom Preston-Werner. See LICENSE for details.

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
bertrpc-1.3.1 README.md
fd-bertrpc-1.3.1 README.md
fd-bertrpc-1.3.0 README.md
bertrpc-1.3.0 README.md
bertrpc-1.2.1 README.md
bertrpc-1.2.0 README.md
bertrpc-1.1.2 README.md
bertrpc-1.1.1 README.md
bertrpc-1.1.0 README.md