Introduction
A queue is a common pattern for interaction between multiple systems. Queues offer a publish and subscribe mechanism in which the publisher (us) puts events onto a queue, which is then read by a subscriber (the other system or application). There are many benefits to this model:
- The other system does not have to be online at the time that an event is put on the queue. In fact, we don’t need to know any details of the remote system at all. In Yomly, we simply put something onto the queue, and then forget about it entirely.
- The queue is secured to a specific set of credentials so that only the intended receiver can access the details.
- Guaranteed delivery. Items are added to the queue and later taken off in the same sequence that they arrive. If nobody takes the records from the queue, they will remain there until they expire. (In Yomly, we have currently set this to 35 days in line with our recovery window for databases).
- You do not need to send files, emails or employ any other transfer mechanism.
- Minimal configuration is required. It takes about 5 minutes to set up a queue.
Objective
In this tutorial, you will learn how to set up the Yomly queue API.
Procedure
To set up the queue API, do the following:
Step 1: Create the SQS queue
-
Go to Amazon Simple Queue Service (SQS) and click Create queue.
-
Select FIFO as the queue type.
-
Enter a Name for the queue. In the name in the following example, you can replace 1234 with your business identifier.
-
Enter your AWS IAM credentials.
-
Click Create queue.
Step 2: Configure Yomly
This is a simple procedure that you can perform by updating the API preferences in the platform settings. You can do this in either the admin portal or a client version. Do the following:
-
In the sidebar, in the Business section, click Settings.
-
Go to the Preferences tab.
-
Click API to expand the section.
-
Click the name of the push API (for example, Employee-Push-API) to view the preferences that you can set.
-
Select the enabled checkbox.
-
In queue, enter the name of the queue created in step 1.
- Click Save.
Comments
Please sign in to leave a comment.