This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install starling-starling
commit 2b372f6e6636290a56109999a280f3c1b3bbf722
tree 206751089bbb623c3e0a2d39cde079876035396e
parent fb4def6b60449dba60d9119a412be484404b7153
tree 206751089bbb623c3e0a2d39cde079876035396e
parent fb4def6b60449dba60d9119a412be484404b7153
starling /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon Apr 28 14:06:06 -0700 2008 | [grempe] |
| |
CHANGELOG | Fri Oct 10 06:27:01 -0700 2008 | [timshadel] |
| |
LICENSE | Mon Apr 28 17:26:27 -0700 2008 | [grempe] |
| |
README.rdoc | Fri Jul 18 20:10:02 -0700 2008 | [mojodna] |
| |
Rakefile | Tue Aug 26 21:45:01 -0700 2008 | [Blaine Cook] |
| |
bin/ | Tue Jun 24 04:07:46 -0700 2008 | [advany] |
| |
etc/ | Wed Oct 01 14:24:37 -0700 2008 | [gaffneyc] |
| |
lib/ | Fri Nov 14 18:07:45 -0800 2008 | [mperham] |
| |
sample-config.yml | Mon Apr 28 16:10:40 -0700 2008 | [grempe] |
| |
starling.gemspec | Tue Aug 26 22:37:08 -0700 2008 | [Blaine Cook] |
| |
test/ | Tue Jun 24 03:35:31 -0700 2008 | [advany] |
README.rdoc
Name
Starling - a light weight server for reliable distributed message passing.
Description
Starling is a powerful but simple messaging server that enables reliable distributed queuing with an absolutely minimal overhead. It speaks the MemCache protocol for maximum cross-platform compatibility. Any language that speaks MemCache can take advantage of Starling’s queue facilities.
Installation
This fork of the Starling source is hosted at GitHub and can be found at: http://github.com/starling/starling/tree/master The original source was to be found at RubyForge but no longer exists there. GitHub serves gems prefixed by a username to differentiate different forks. This project can be installed with: # THIS COMMAND ONE TIME ONLY gem sources -a http://gems.github.com/ # As often as you like sudo gem install starling-starling See http://gems.github.com/ if you want more info about GitHub and gems.
Quick Start Usage
# View the Starling help and usage message
starling --help
# In a console window start the Starling server. By default
# it runs verbosely in the foreground, listening on 127.0.0.1:22122
# and stores its files under /tmp/starling:
starling
# In a new console test the put and get of messages on a queue:
irb
>> require 'starling'
=> true
>> starling = Starling.new('127.0.0.1:22122')
=> MemCache: 1 servers, 1 buckets, ns: nil, ro: false
>> starling.set('my_queue', 12345)
=> nil
>> starling.get('my_queue')
=> 12345
# You can do a simple loop over a queue with something like:
>> loop { puts starling.get('my_queue'); sleep 1 }
12345
nil
nil
...
For more information run the following in a new console:
'gem server'
This will start a gem server on http://localhost:8808/ which you can view in your
browser to see the RDocs for the gem. Or generate rdocs by running the following
in a new console:
'rdoc'
Using fiveruns memcache-client
memcache-client from fiveruns has a couple of fixed added like supporting failover and retry on failure.
This fork of the memcache-client source is hosted at GitHub and can be found at:
http://github.com/fiveruns/memcache-client/tree/master
It can be installed using:
# THIS COMMAND ONE TIME ONLY
gem sources -a http://gems.github.com/
# As often as you like
sudo gem install fiveruns-memcache-client
Known Issues
- Starling is "slow" as far as messaging systems are concerned. In practice, it’s fast enough.
TODO
- Implement memcached instead of memcache as a client interface (to make it faster)
Authors
- Blaine Cook <romeda@gmail.com>
- Chris Wanstrath <chris@ozmm.org>
- AnotherBritt <?>
- Glenn Rempe <?>
- Abdul-Rahman Advany <abdulrahman@advany.com>
Copyright
Starling - a light-weight server for reliable distributed message passing. Copyright 2007-2008 Blaine Cook <blaine@twitter.com>, Twitter Inc.




