Amazon SQS is a fully managed message queuing service. It offers reliable, highly scalable, reliable messaging and transaction processing that lets you decouple tasks or processes that must communicate.
Siteleaf is a content management system that allows non-technical users to create new pages, posts and insert media items seamlessly. It helps faster sites, less overhead, and less setting up.Siteleaf Integrations
Siteleaf + Amazon SQSCreate JSON Message to Amazon SQS from New Site in Siteleaf Read More...
It's easy to connect Amazon SQS + Siteleaf without coding knowledge. Start creating your own business flow.
Triggers when you add a new queue
Triggered when a new collection is created.
Triggered when a new document is created.
Triggered when a new page is created.
Triggered when a new site is created.
Create a new JSON message using data from the source trigger
Create a new message.
Create a new queue
Creates a new document.
Creates a new page.
Amazon SQS (Simple Queue Service. is a web service that gives developers an easy way to communicate with each other from their web applications by passing messages between each other. It has the features of high availability, distributed systems and scalability. Amazon SQS is a web service that gives application developers the ability to queue messages for delivery at a later time. The message is stored in a queue and can be accessed by multiple applications for processing.
Amazon SQS provides reliable, highly scalable, hosted queue services. It removes the need to build and maintain custom messaging infrastructure, as well as the need to write custom code to communicate between web services.
Amazon SQS provides queues that can process millions of messages per second and support millions of concurrent connections. Amazon SQS is designed to provide 99.99% availability. A single queue can handle up to 5 million requests per day without losing messages, with a maximum latency of less than 100 milliseconds.
Siteleaf is a SaaS platform which helps you create, manage and share your website easily. It creates an environment where anyone can contribute to your website and make it an online brand. Siteleaf also offers a paid plan with more features.
Siteleaf’s primary feature is its WYSIWYG editor that makes it easy to create rich content for your website such as images, text, video and audio. It also offers support for Markdown, the syntax commonly used on the popular blogging platform GitHub. Siteleaf integrates with Github so your content can be easily shared with your team and friends through social networks like Twitter or Facebook.
Amazon SQS provides a highly scalable, no-ops queue service in the cloud which allows you to send and receive messages between various applications regardless of the language and platform they are written in. This opens up a lot of possibilities for developers who want to integrate their applications with the cloud. One such possibility is integrating your application with another web application such as Siteleaf which can help you manage your website easily. If you have a website hosted on Siteleaf, you might want to use Amazon SQS to integrate your application with Siteleaf so that you can automate some of your tasks in a more efficient way! Let’s see how this integration is done.
First let’s start with creating an account on Siteleaf and register our new website, http://example.siteleaf.com/. We will then install the Siteleaf browser extension for Google Chrome which will allow us to publish our content directly from within Google Chrome. Once installed, open any page on http://example.siteleaf.com/ in Google Chrome and click on the Siteleaf icon ( . in the top right corner of the browser tab (as shown in figure 1.
This will bring up the main Siteleaf panel in which we can see various options in the left sidebar (as shown in figure 2. On the left side, select “Publish”and then click on “Publish Now” button at the top right corner. This will bring up the Publish Now wizard in which we will set up our publication settings (as shown in figure 3.
After setting up our publication settings, we need to publish our content from our local machine to our web application by clicking on “Publish Now” button at the bottom of the page. This will trigger the process of publishing our content from our local machine to our web application. You should now be able to see the content you have created published on your website!
Now that we have published our content on our website, let’s see how we can add some automation to this process by using Amazon SQS. For this, we need to install the AWS SDK for Python on our local machine (you can fplow this link to learn how to install it here. We need this because we will be using Python throughout this tutorial. Now that we have installed the SDK, let’s start writing some code! We will start by creating a function called publish_to_site_queue(. which will take three arguments (the title of our post, the body of our post and a “post_type” value. Before writing this function, let’s setup our .aws file in which we will store all of our credentials related to accessing Amazon SQS from our local machine. To do this, go to your home directory and create a new file called .aws inside it and enter your Access Key ID, Secret Access Key and Region (region name. details in this file as fplows:
Now that we have done this setup, let’s go ahead and write our publish_to_site_queue(. function. We will start off by importing the aws module from awscli package:
Next we need to import boto3 package from AWS SDK for Python:
Next we need to define various variables. We will define two variables ‘conn_string’ as string type and ‘event_name’ as string type:
Next we will define a new AWS connection object using connection string variable conn_string:
Next we need to define two new lists ‘queue_name’ and ‘topic_name’ both of list type:
Next we will define a new topic object using topic name variable ‘topic_name’ as input:
Next we will use get_all_topics(. method from AWS SQS object boto3.sqs_service module to retrieve all available topics from Amazon SQS:
Next we need to check if any topic was found by using check(. method from AWS SQS object boto3.sqs_service module:
Next we need to iterate over all topics retrieved above through get_all_topics(. method and print each topic separately:
Next we need to loop through each topic retrieved above through get_all_topics(. method again:
Next we need to check whether any queue exists under each topic using check(. method from AWS SQS object boto3.sqs_service module:
Next we need to iterate over all queues retrieved above through get_all_queues(. method and print each queue separately:
Next we need to loop through each queue retrieved above through get_all_queues(. method again:
Next we need to check whether any subscription exists under each queue using check(. method from AWS SQS object boto3.sqs_service module:
The process to integrate Amazon SQS and Siteleaf may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.