forked from HangfireIO/Hangfire.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
330 lines (318 loc) · 17.8 KB
/
index.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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
---
layout: default
title: Hangfire – Background jobs and workers for .NET and .NET Core
jumbotron: true
keywords: asp.net background jobs, asp.net background workers
description: An easy way to perform background processing in .NET and .NET Core applications. No Windows Service or separate process required.
---
<div class="jumbotron">
<div class="container">
<div class="row" itemscope itemtype="http://schema.org/SoftwareApplication">
<div class="col-md-7">
<h1 itemprop="name">Hangfire</h1>
<p style="margin-bottom: 10px;">
An easy way to perform background processing in .NET and .NET Core applications.
No Windows Service or separate process required.
</p>
<p>
Backed by persistent storage. Open and free for commercial use.
</p>
<a href="https://www.nuget.org/packages/Hangfire/" target="_blank">
<img style="display: inline-block;vertical-align: inherit;margin-right:5px;width:94px;height:20px;" src="https://img.shields.io/github/release/HangfireIO/Hangfire.svg?style=flat"></a>
<a href="https://www.nuget.org/packages/Hangfire.Core/" target="_blank">
<img style="display: inline-block;vertical-align: inherit;margin-right:5px;" src="https://img.shields.io/nuget/dt/Hangfire.Core.svg?style=flat"></a>
<iframe src="https://ghbtns.com/github-btn.html?user=HangfireIO&repo=Hangfire&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" width="97" height="20"></iframe>
<a href="https://twitter.com/share" class="twitter-share-button" data-dnt="true" data-via="hangfireio" data-url="https://www.hangfire.io">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
<div class="col-md-5">
<div id="screenshots" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#screenshots" data-slide-to="0" class="active"></li>
<li data-target="#screenshots" data-slide-to="1"></li>
<li data-target="#screenshots" data-slide-to="2"></li>
<li data-target="#screenshots" data-slide-to="3"></li>
<li data-target="#screenshots" data-slide-to="4"></li>
<li data-target="#screenshots" data-slide-to="5"></li>
<li data-target="#screenshots" data-slide-to="6"></li>
<li data-target="#screenshots" data-slide-to="7"></li>
<li data-target="#screenshots" data-slide-to="8"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<a href="{{ site.cdn }}/img/ui/dashboard.png" data-lightbox="Screenshots" data-title="Dashboard">
<img itemprop="image" src="{{ site.cdn }}/img/ui/dashboard-sm.png" alt="Dashboard">
</a>
</div>
<div class="item">
<a href="{{ site.cdn }}/img/ui/queues.png" data-lightbox="Screenshots" data-title="Queue List">
<img src="{{ site.cdn }}/img/ui/queues-sm.png" alt="Queue List">
</a>
</div>
<div class="item">
<a href="{{ site.cdn }}/img/ui/job-details.png" data-lightbox="Screenshots" data-title="Job Details">
<img src="{{ site.cdn }}/img/ui/job-details-sm.png" alt="Job Details">
</a>
</div>
<div class="item">
<a href="{{ site.cdn }}/img/ui/retries.png" data-lightbox="Screenshots" data-title="Retry List">
<img src="{{ site.cdn }}/img/ui/retries-sm.png" alt="Retry List">
</a>
</div>
<div class="item">
<a href="{{ site.cdn }}/img/ui/failed-jobs.png" data-lightbox="Screenshots" data-title="Failed Job List">
<img src="{{ site.cdn }}/img/ui/failed-jobs-sm.png" alt="Failed Job List">
</a>
</div>
<div class="item">
<a href="{{ site.cdn }}/img/ui/recurring-jobs.png" data-lightbox="Screenshots" data-title="Recurring Jobs">
<img src="{{ site.cdn }}/img/ui/recurring-jobs-sm.png" alt="Recurring Jobs">
</a>
</div>
<div class="item">
<a href="{{ site.cdn }}/img/ui/batches.png" data-lightbox="Screenshots" title="Batch List">
<img src="{{ site.cdn }}/img/ui/batches-sm.png" alt="Batch List">
</a>
</div>
<div class="item">
<a href="{{ site.cdn }}/img/ui/batch-details.png" data-lightbox="Screenshots" title="Batch Details">
<img src="{{ site.cdn }}/img/ui/batch-details-sm.png" alt="Batch Details">
</a>
</div>
<div class="item">
<a href="{{ site.cdn }}/img/ui/batch-jobs.png" data-lightbox="Screenshots" title="Batch Jobs">
<img src="{{ site.cdn }}/img/ui/batch-jobs-sm.png" alt="Batch Jobs">
</a>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#screenshots" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#screenshots" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="row">
<div class="col-md-6">
<h3>Fire-and-forget jobs</h3>
<p>
Fire-and-forget jobs are executed <strong>only once</strong> and almost <strong>immediately</strong> after creation.
</p>
<pre><span class="keywd">var</span> jobId = <span class="type">BackgroundJob</span>.Enqueue(
() => <span class="type">Console</span>.WriteLine(<span class="string">"Fire-and-forget!"</span>));</pre>
</div>
<div class="col-md-6">
<h3>Delayed jobs</h3>
<p>
Delayed jobs are executed <strong>only once</strong> too, but not immediately, after a certain <strong>time interval</strong>.
</p>
<pre><span class="keywd">var</span> jobId = <span class="type">BackgroundJob</span>.Schedule(
() => <span class="type">Console</span>.WriteLine(<span class="string">"Delayed!"</span>),
<span class="type">TimeSpan</span>.FromDays(7));</pre>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h3>Recurring jobs</h3>
<p>
Recurring jobs fire <strong>many times</strong> on the specified <strong>CRON schedule</strong>.
</p>
<pre><span class="type">RecurringJob</span>.AddOrUpdate(
() => <span class="type">Console</span>.WriteLine(<span class="string">"Recurring!"</span>),
<span class="type">Cron</span>.Daily);</pre>
</div>
<div class="col-md-6">
<h3>Continuations</h3>
<p>
Continuations are executed when its parent job <strong>has been finished</strong>.
</p>
<pre><span class="type">BackgroundJob</span>.ContinueWith(
jobId,
() => <span class="type">Console</span>.WriteLine(<span class="string">"Continuation!"</span>));</pre>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h3>Batches <div class="label label-primary">Pro</div></h3>
<p>Batch is a group of background jobs that is <strong>created atomically</strong> and considered as a single entity.</p>
<pre><code><span class="keywd">var</span> batchId = <span class="type">BatchJob</span>.StartNew(x =>
{
x.Enqueue(() => <span class="type">Console</span>.WriteLine(<span class="string">"Job 1"</span>));
x.Enqueue(() => <span class="type">Console</span>.WriteLine(<span class="string">"Job 2"</span>));
});</code></pre>
</div>
<div class="col-md-6">
<h3>Batch Continuations <div class="label label-primary">Pro</div></h3>
<p>
Batch continuation is fired <strong>when all</strong> background jobs in a parent batch <strong>finished</strong>.
</p>
<pre><code><span class="type">BatchJob</span>.ContinueWith(batchId, x =>
{
x.Enqueue(() => <span class="type">Console</span>.WriteLine(<span class="string">"Last Job"</span>));
});</code></pre>
</div>
</div>
</div>
<div class="col-md-3 hidden-xs hidden-sm">
<h3>Twitter <small>by <a href="https://twitter.com/hangfireio" target="_blank">@hangfireio</a></small></h3>
<a height="335" data-dnt="true" data-chrome="noborders noheader nofooter" class="twitter-timeline" href="https://twitter.com/hangfireio" data-widget-id="451027617567621120"></a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<h3 style="margin-top: 5px;">Pluralsight Course</h3>
<div class="div-thumbnail">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube-nocookie.com/embed/FIhpte9UVHM?rel=0&controls=0&showinfo=0" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-4 feature">
<div class="feature-icon">
<span class="glyphicon glyphicon-send"></span>
</div>
<div class="feature-body">
<h3>Simple</h3>
<p>
<a href="http://docs.hangfire.io/en/latest/quick-start.html" target="_blank">Easy to set up, easy to use</a>. No Windows Service, no Windows Scheduler, no separate applications required.
</p>
<p>
Background jobs are regular static or instance .NET methods with regular arguments – no base class or interface implementation required.
</p>
</div>
</div>
<div class="col-md-4 feature">
<div class="feature-icon">
<span class="glyphicon glyphicon-floppy-saved"></span>
</div>
<div class="feature-body">
<h3>Persistent</h3>
<p>
Background jobs are created in a persistent storage – <a href="https://www.nuget.org/packages/HangFire.SqlServer/">SQL Server</a>, <a href="https://nuget.hangfire.io/feeds/hangfire-pro/Hangfire.Pro.Redis/1.2.1">Redis</a>, <a href="https://www.nuget.org/packages/Hangfire.PostgreSql/">PostgreSQL</a>, <a href="https://www.nuget.org/packages/HangFire.Mongo/">MongoDB</a> and <a href="/extensions.html#storages">others</a>.
</p>
<p>
You can safely restart your application and use Hangfire with ASP.NET without worrying about application pool recycles.
</p>
</div>
</div>
<div class="col-md-4 feature">
<div class="feature-icon">
<span class="glyphicon glyphicon-search"></span>
</div>
<div class="feature-body">
<h3>Transparent</h3>
<p>
Built-in web interface allow you to see the whole picture of your background processing, as well as observe the state of each background job.
</p>
<p>
Out of the box support for popular <a href="http://docs.hangfire.io/en/latest/configuration/configuring-logging.html">logging frameworks</a> allows you to catch errors early with zero configuration.
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 feature">
<div class="feature-icon">
<span class="glyphicon glyphicon-tower"></span>
</div>
<div class="feature-body">
<h3>Reliable</h3>
<p>
Once a background job was created without any exception, Hangfire takes the responsibility to process it with the <em>at least once</em> semantics.
</p>
<p>
You are free to throw unhandled exceptions or terminate your application – background jobs will be re-tried automatically.
</p>
</div>
</div>
<div class="col-md-4 feature">
<div class="feature-icon">
<span class="glyphicon glyphicon-fullscreen"></span>
</div>
<div class="feature-body">
<h3>Distributed</h3>
<p>
Background method calls and their arguments are serialized and may overcome the process boundaries.
</p>
<p>
You can use Hangfire on different machines to get more processing power with no configuration – synchronization is performed automatically.
</p>
</div>
</div>
<div class="col-md-4 feature">
<div class="feature-icon">
<span class="glyphicon glyphicon-th-large"></span>
</div>
<div class="feature-body">
<h3>Extensible</h3>
<p>
Job filters allow you to add custom features to the background processing in a way similar to ASP.NET MVC action filters.
</p>
<p>
Job storage access is fully abstracted and you can implement the support for your favorite storage. Dashboard supports modifications too.
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 feature">
<div class="feature-icon">
<span class="glyphicon glyphicon-flash"></span>
</div>
<div class="feature-body">
<h3>Efficient</h3>
<p>
Although the default installation uses SQL Server and polling technique to fetch jobs, you can leverage <a href="https://www.nuget.org/packages/Hangfire.SqlServer.MSMQ/">MSMQ</a> or <a href="https://www.nuget.org/packages/Hangfire.Redis/" target="_blank">Redis</a> extensions to reduce the processing latency to minimum.
</p>
</div>
</div>
<div class="col-md-4 feature">
<div class="feature-icon">
<span class="glyphicon glyphicon-cog"></span>
</div>
<div class="feature-body">
<h3>Self-maintainable</h3>
<p>
You don't need to perform manual storage clean-up – Hangfire keeps it as clean as possible and removes old records automatically.
</p>
</div>
</div>
<div class="col-md-4 feature">
<div class="feature-icon">
<i class="fa fa-github" style="font-size: 23px;"></i>
</div>
<div class="feature-body">
<h3>Open source</h3>
<p>
Hangfire is open source software and is completely free for commercial use. It is licensed under <a href="https://github.com/HangfireIO/Hangfire/blob/master/LICENSE.md">LGPLv3 license</a>.
</p>
<p>
Fork <a href="https://github.com/HangfireIO/Hangfire" target="_blank">the project</a> and make contributions on GitHub!
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12" style="text-align: center;">
<hr>
<div>
<a class="btn btn-primary btn-lg" href="/overview.html">Overview</a>
<br class="visible-xs">
<span class="btn btn-lg">or</span>
<br class="visible-xs">
<a class="btn btn-default btn-lg" href="http://docs.hangfire.io">Documentation</a>
</div>
</div>
</div>
</div>