<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vinícius Alves on Medium]]></title>
        <description><![CDATA[Stories by Vinícius Alves on Medium]]></description>
        <link>https://medium.com/@viniciusdalve?source=rss-5b64c48a9dfc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ubOyAQXMpGLyWP1EOKNMwg.jpeg</url>
            <title>Stories by Vinícius Alves on Medium</title>
            <link>https://medium.com/@viniciusdalve?source=rss-5b64c48a9dfc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:07:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@viniciusdalve/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Use LocalStack to Simulate AWS SQS Queues]]></title>
            <link>https://medium.com/@viniciusdalve/how-to-use-localstack-to-simulate-aws-sqs-queues-75f04a4ae322?source=rss-5b64c48a9dfc------2</link>
            <guid isPermaLink="false">https://medium.com/p/75f04a4ae322</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[sqs]]></category>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[localstack]]></category>
            <category><![CDATA[queue]]></category>
            <dc:creator><![CDATA[Vinícius Alves]]></dc:creator>
            <pubDate>Thu, 06 Jun 2024 16:50:51 GMT</pubDate>
            <atom:updated>2024-06-06T16:50:51.343Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9lV9jPFPrT_nf3mAWePopA.jpeg" /></figure><h3>Various AWS products are used in software development, one of which is SQS, an AWS queue widely used in asynchronous services. But what if you could simulate an SQS queue locally? That’s exactly what LocalStack offers.</h3><h3>What is LocalStack?</h3><p>LocalStack is an open-source tool that allows you to simulate a wide range of AWS services locally on your machine. It provides a fully functional local cloud environment, enabling developers to test and develop their applications without needing to interact with the actual AWS infrastructure. With LocalStack, you can run AWS services such as S3, SQS, Lambda, and many more in a local environment, making it a powerful tool for efficient development and testing.</p><h3>Steps to Achieve This Task:</h3><ol><li><strong>Install Docker</strong></li></ol><p>LocalStack uses Docker to create a local environment that simulates AWS services. Docker allows LocalStack to run these services in isolated containers, ensuring a consistent and reproducible setup across different systems. By using Docker, LocalStack can emulate the behavior of AWS services such as SQS, S3, Lambda, and more, providing a powerful tool for development and testing.</p><p>To install Docker, follow these steps:</p><ul><li><strong>Mac OS</strong>: Download Docker Desktop from <a href="https://www.docker.com/products/docker-desktop/">Docker’s official website</a> and follow the installation instructions.</li><li><strong>Windows</strong>: Download Docker Desktop from <a href="https://www.docker.com/products/docker-desktop/">Docker’s official website</a> and follow the installation instructions.</li><li><strong>Linux</strong>: Use your package manager to install Docker. For example, on Ubuntu, you can run:</li></ul><pre>sudo apt-get update<br>sudo apt-get install docker-ce docker-ce-cli containerd.io</pre><p>After installing Docker, make sure it is running properly by executing</p><pre>docker --version</pre><p><strong>2. Install LocalStack</strong></p><p>I use the Mac operating system, so with the Homebrew package manager, I open my terminal and run this command:</p><pre>brew install localstack/tap/localstack-cli</pre><p>For other installation methods, you can refer to the official LocalStack documentation at <a href="https://docs.localstack.cloud/getting-started/installation/">LocalStack Installation Guide</a>.</p><p>3. <strong>Start Docker</strong></p><p>Once you start the Docker application, you will see a screen like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8vrIUbHeGTcvl2H6pgRM2Q.png" /></figure><p>Make sure Docker is running before proceeding to the next steps.</p><p>4. <strong>Start LocalStack via CLI</strong></p><p>After starting Docker, you can start LocalStack via the command line interface (CLI). Open your terminal and execute the following command:</p><pre>localstack start</pre><p>Once you start LocalStack, a LocalStack container will automatically appear in your Docker:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HrNVx1GahGsH6mnFCZPq8w.png" /></figure><p>5. <strong>Configuring the Queue in LocalStack</strong></p><p>Access the <a href="https://app.localstack.cloud/dashboard">LocalStack website</a>, and in the LocalStack Instances menu, click on <strong>Status</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7PPSXektUSsdna6AJnBFLg.png" /></figure><p>The site will automatically detect the LocalStack instance running locally on your device:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HkrCpN6KtXxbjmlvVdRptw.png" /></figure><p>In addition to SQS, various other AWS services are available for you to use. Click on the SQS item.</p><p>Now, proceed to create the queue:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kSUF0YtLrgtJ3qHWmPkMpg.png" /></figure><p>Right after you create the queue, check if these details appear in your terminal where you started LocalStack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FaA_1Mj84b1h__Jx0o7v4w.png" /></figure><p>This means that the queue has been created and is ready to be used.</p><p>After creating the queue, you can use the Queue URL in your application to act as a producer or receiver of messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GfH9tcBYU4IWIFxbjCZNmA.png" /></figure><p>This is a very basic tutorial to help you explore this free resource. Despite being basic, it is very useful, especially in the development phase. You can use it to avoid contention with others who are also developing and running the application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75f04a4ae322" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>