You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mq/3/gettingstarted/index.md
+9-10
Original file line number
Diff line number
Diff line change
@@ -3,23 +3,22 @@ title: Getting Started with IronMQ v3
3
3
layout: default
4
4
section: mq
5
5
---
6
-
<p>Connect your applications and processes with an elastic message queue. Decouple your processes and create a highly scalable system by passing messages. This example is in Ruby, but can be done in your language of choice. You can find all of our client libraries <ahref='http://dev.iron.io/mq/3/libraries'>here</a>/</p>
7
-
8
-
This is a VERY high level overview of a complex tool.
6
+
ronMQ is a enterprise grade message queue; it is highly available, persistent by design, with best-effort one-time delivery. IronMQ ties distributed systems together by providing reliable communication between your services and components.
9
7
8
+
This example is in Ruby, but can be done in your language of choice using one of our <ahref='http://dev.iron.io/mq/3/libraries'>client libraries</a>.
10
9
11
10
12
11
<h2>Create a Project and Setup Credentials</h2>
13
12
14
-
Before starting, you'll need to setup a couple of things. You only need to do this once.
13
+
Before starting, you will need to setup a couple of things. You only need to do this once.
15
14
16
15
First, create a project to put this example into.<br>
Now lets create a directory on our local computer to hold this project. I'm calling mine mqExample, but yours can be anything you'd like. After it's made, CD into it:
21
+
Now lets create a directory on our local computer to hold this project. I am calling mine mqExample, but yours can be anything you would like. After it is made, CD into it:
23
22
{% highlight bash %}
24
23
$ mkdir mqExample
25
24
$ cd mqExample
@@ -33,7 +32,7 @@ $ mv ~/Downloads/iron.json .
33
32
{% endhighlight %}
34
33
35
34
36
-
Now, we're all done with the setup process and can get to work.
35
+
Now, we are all done with the setup process and can get to work.
37
36
38
37
<h2>Create a Queue and Add a Message</h2>
39
38
@@ -69,16 +68,16 @@ You can click on the queue name to see more information about that queue:
From here, you can work with the queue via the Hud UI, programatically, or the Iron CLI, whichever you prefer. Because I don't need this message for anything, I'll get rid of it with the CLI.
71
+
From here, you can work with the queue via the Hud UI, programatically, or the Iron CLI, whichever you prefer. Because I do not need this message for anything, I will get rid of it with the CLI.
73
72
74
-
If you don't already have the CLI installed, [please click here](/worker/cli/) for installation instructions
73
+
If you do not already have the CLI installed, [please click here](/worker/cli/) for installation instructions
75
74
76
-
We'll be using the pop function. For information on this speific tool as well as all of the other features in the CLI, please refer to their man pages(--help).
75
+
We will be using the pop function. For information on this speific tool as well as all of the other features in the CLI, please refer to their man pages(--help).
77
76
{% highlight bash %}
78
77
$ iron mq pop My_Very_First_Queue
79
78
{% endhighlight %}
80
79
81
80
82
-
If you watch the dashboard as you send that command, you'll see the message being removed in the realtime data graph.<br>
81
+
If you watch the dashboard as you send that command, you will see the message being removed in the realtime data graph.<br>
Copy file name to clipboardExpand all lines: worker/getting_started/index.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@ IronWorker is a container based distributed work-on-demand platform. We use Dock
8
8
9
9
This getting started tutorial will walk you through the steps of writing custom code, testing it locally, deploying it to Iron, and queuing message to run tasks.
10
10
11
+
<hrstyle="margin: 3emauto; max-width: 70%">
12
+
11
13
<pclass="subtitle">Offload your tasks to the parallel-processing power of the elastic cloud. Write your code, then queue tasks against it—no servers to manage, no scaling to worry about.</p>
12
14
13
15
<divclass="flow-steps">
@@ -39,7 +41,7 @@ Before starting, you will need to setup a couple of things. You only need to do
39
41
40
42
<h2id="hello">Hello World Worker</h2>
41
43
42
-
This is a very simple hello world example worker in Ruby. You don't even need Ruby installed to try this example so give it a go!
44
+
This is a very simple hello world example worker in Ruby. You do not even need Ruby installed to try this example so give it a go!
43
45
All languages follow the same process so you will get an idea of how things work regardless.
44
46
45
47
<h3id="write">1. Write your custom Worker code</h3>
@@ -99,7 +101,7 @@ That's it, you have ran a worker on the IronWorker cloud platform!
99
101
100
102
Now let's get into more detail.
101
103
102
-
<h3id="test">2. Write and Test your Worker</h3>
104
+
<h3id="test">2. Test your Worker</h3>
103
105
104
106
IronWorker's <ahref="/worker/reference/environment">environment</a> is a Linux Docker container that your task is executed in. Anything you write that runs inside of our published <ahref="https://hub.docker.com/r/iron"target="_blank">Docker images</a> should run just the same as on IronWorker. The key here is getting it to run with the Docker commands below and sample payloads.
105
107
@@ -160,7 +162,7 @@ Now you can start queuing jobs or schedule recurring jobs for your image.
160
162
iron worker queue --payload-file MY_PAYLOAD.json --wait USERNAME/IMAGENAME
161
163
{% endhighlight %}
162
164
163
-
Notice we don't use the image tag when queuing, this is so you can change versions without having to update all your code that's queuing up jobs for the image.
165
+
Notice we do not use the image tag when queuing, this is so you can change versions without having to update all your code that's queuing up jobs for the image.
164
166
165
167
The --wait parameter waits for the job to finish, then prints the output. You will also see a link to HUD where you can see all the rest of the task details along with the log output.
0 commit comments