<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title><![CDATA[Jake McCrary's articles on aws]]></title>
  <link href="https://jakemccrary.com/atom.xml" rel="self"/>
  <link href="https://jakemccrary.com/"/>
  <updated>2026-08-17T20:14:29+00:00</updated>
  <id>https://jakemccrary.com/</id>
  <author>
    <name><![CDATA[Jake McCrary]]></name>
  </author>
  <entry>
    <id>https://jakemccrary.com/blog/2016/07/31/aws-elastic-beanstalk-send-a-sqs-message-to-a-specific-route-in-your-worker-environment/index.html</id>
    <link href="https://jakemccrary.com/blog/2016/07/31/aws-elastic-beanstalk-send-a-sqs-message-to-a-specific-route-in-your-worker-environment/index.html"/>
    <title><![CDATA[AWS Elastic Beanstalk: Send a SQS message to a specific route in your worker environment]]></title>
    <updated>2016-07-31T23:59:59+00:00</updated>
    <content type="html"><![CDATA[<div><p><a href="https://lumanu.com">Lumanu</a> uses <a href="https://aws.amazon.com/elasticbeanstalk/">AWS Elastic Beanstalk</a>. Elastic Beanstalk (from now on abbreviated as EB) helps you provision and tie together Amazon services to fairly easily get web applications and services running with push button (or command line) deploys. We&apos;ve been using EB with a multi-container docker deploy for nearly a year now and it pretty much just works.</p><p>EB has a concept of environment tiers and there are two different types; a web tier and a worker tier. Web tier environments provide the configuration and components necessary for serving HTTP requests in a scalable fashion. <a href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features-managing-env-tiers.html">Worker environments</a> are designed to run operations that you wouldn&apos;t want performed by your front-end serving web application.</p><p>A major difference between the two environment tiers is that a worker environment provisions a <a href="https://aws.amazon.com/sqs/">SQS</a> queue and provides a daemon that reads from this queue and POSTs messages to an instance of your worker service. This daemon prevents your worker service from having to connect to and manage a SQS queue. By default, the daemon POSTs messages to <code>http://localhost/</code>. You can optionally configure it to POST to a different route.</p><p>It is possible to have different messages POST to different routes. You can do this by setting the <code>beanstalk.sqsd.path</code> attribute on your SQS message. For example, if you want your worker service to receive a message at <code>/trigger-email</code> you would set the <code>beanstalk.sqsd.path</code> attribute to <code>/trigger-email</code>.</p></div>]]></content>
  </entry>
</feed>
