-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcomparison.html
219 lines (200 loc) · 6.71 KB
/
comparison.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Comparison of message queues for Ruby</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<style media="all" type="text/css">
body {font-family:Arial,sans-serif}
.comparison a[name] { color: inherit }
.comparison table {
border-collapse: collapse; }
.comparison tr > th { text-align: right }
.comparison th,
.comparison td {
vertical-align:top;
border: 1px solid #DDDDDD;
padding: 0.25em; }
.comparison th { background-color: #E6E6E6; }
.comparison td { background-color: #CBFFC9; white-space:nowrap; }
.comparison td.caution { background-color: #FAFFC9; }
.comparison td.warning { background-color: #FFCAC9; font-weight: normal; }
</style>
</head>
<body>
<div class="comparison">
<h1>Comparison of message queues for Ruby</h1>
<p><a href="http://twitter.com/igalko">Igal Koshevoy</a>, updated 2009-06-01</p>
<p>
Using message queues effectively can significantly improve the efficiency and responsiveness of applications. Ruby programmers are lucky to have many messaging options to choose from, but are cursed with having to pick between them. This comparison table and <a href="http://github.com/igal/rubyqueues/tree/master">source code samples</a> attempt to provide basic information to help Ruby programmers better understand these alternatives:
</p>
<table cellspacing="0">
<tr>
<th>Name</th>
<th><a href="http://github.com/igal/rubyqueues/tree/master/delayed_job_eg/">Delayed::Job</a></th>
<th><a href="http://github.com/igal/rubyqueues/tree/master/kestrel_eg/">Kestrel</a></th>
<th><a href="http://github.com/igal/rubyqueues/tree/master/starling_eg/">Starling</a></th>
<th><a href="http://github.com/igal/rubyqueues/tree/master/sparrow_eg/">Sparrow</a></th>
<th><a href="http://github.com/igal/rubyqueues/tree/master/beanstalkd_eg/">beanstalkd</a></th>
<th><a href="http://github.com/igal/rubyqueues/tree/master/memcacheq_eg/">memcacheq</a></th>
<th><a href="http://github.com/igal/rubyqueues/tree/master/rabbitmq_amqp_eg/">RabbitMQ</a></th>
<th><a href="http://github.com/igal/rubyqueues/tree/master/activemq_stomp_eg/">ActiveMQ</a></th>
</tr>
<tr>
<th>Pure Ruby</th>
<td>Y</td>
<td class="caution">N (Java)</td>
<td>Y</td>
<td>Y</td>
<td class="caution">N (C )</td>
<td class="caution">N (C )</td>
<td class="caution">N (Erlang)</td>
<td class="caution">N (Java)</td>
</tr>
<tr>
<th>Trivial install</th>
<td>Y</td>
<td class="caution">N</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
</tr>
<tr>
<th>Trivial usage</th>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td class="warning">N</td>
<td class="warning">N</td>
</tr>
<tr>
<th>Daemon included</th>
<td class="caution">N</td>
<td class="caution">N</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
</tr>
<tr>
<th>Standalone</th>
<td class="caution">N (Rails only)</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
</tr>
<tr>
<th>Reserve</th>
<td class="caution">N</td>
<td>Y</td>
<td class="caution">N</td>
<td class="caution">N</td>
<td>Y</td>
<td class="caution">N</td>
<td>Y</td>
<td>Y</td>
</tr>
<tr>
<th>Persistent queues</th>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td class="warning">N</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
</tr>
<tr>
<th>Lightweight checks</th>
<td class="caution">N (DB polling)</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
</tr>
<tr>
<th>Memcache interface</th>
<td class="caution">N (database)</td>
<td>Y</td>
<td>Y</td>
<td>Y</td>
<td class="warning">N (custom)</td>
<td>Y</td>
<td class="caution">N (AMQP)</td>
<td class="caution">N (Stomp)</td>
</tr>
<tr>
<th>Benchmark<a href="#benchmark">[1]</a></th>
<td class="caution">216</td>
<td>893</td>
<td>2902</td>
<td>1182</td>
<td>3702</td>
<td class="caution">315</td>
<td>703</td>
<td class="caution">434</td>
</tr>
<tr>
<th>Praises</th>
<td>Easy w/ Rails</td>
<td>Parallel?</td>
<td>Simple</td>
<td>Simple</td>
<td>Very fast</td>
<td>Easy compile</td>
<td>Power</td>
<td>Reliable</td>
</tr>
<tr>
<th>Annoyances</th>
<td class="caution">Slow, Rails only</td>
<td class="caution">Build :(</td>
<td class="caution">Pruning :(</td>
<td class="warning">Buggy</td>
<td class="warning">No persist</td>
<td class="caution">Slow</td>
<td class="caution">Client</td>
<td class="caution">Slowish</td>
</tr>
<tr>
<th>Recommended</th>
<td class="caution">For Rails</td>
<td class="caution">Maybe</td>
<td class="caution">Maybe</td>
<td class="warning">No</td>
<td class="caution">For speed</td>
<td class="warning">No</td>
<td>For complex</td>
<td>For stability</td>
</tr>
</table>
<br />
<table class="comparison-table">
<tr>
<th>Key</th>
<td>Yes</td>
<td class="caution">No, caution</td>
<td class="warning">No, warning</td>
</tr>
</table>
<p>
<a name="benchmark"><b>Benchmark</b> is a naive measure of sequential puts-gets per second and does NOT accurately represent how these systems will perform under a realistic load.</a>
</p>
</div>
</body>
</html>