The Orbit Blog

Learn about best practice, news, how-tos, and insight. The goal? Accelerate your AWS Journey.

Handling Jobs in the SQS Queues

By Brett Gillett //

In the previous two articles, I told you about how I used scheduled Lambda jobs and S3 event notifications to remove multiple Cron jobs running on an EC2 instance. In this article, I’ll talk about how I handle jobs in the SQS queues. The Hockey Pool application uses a total of five SQS queues. Three are for processing stat files; the other two are for injuries and lifetime standings - ya, we’re stat geeks.

Moving From Cron to Scheduled Lambda Functions

By Brett Gillett //

Awhile back I wrote an article about how I have been using several AWS services (EC2, RDS, SQS, etc.) to run a small hockey pool website. In that article, I mentioned that one of my biggest goals was to move away from EC2-based Cron to Lambda and to build a more “loosely coupled” application. Since a hockey pool website without stats would be pointless, I figured it was a good place to start.

S3 Event Notifications

By Brett Gillett //

In my last article, I talked about how I moved from using Cron on an EC2 instance to download stat files for my hockey pool websiteto using scheduled Lambda functions. In this article, I’ll talk about how I removed another Cron job by enabling S3 event notificationsan, to add jobs to the SQS queues I use to parse all the stats. Enabling S3 event notifications is really simple. Select the S3 bucket that you want to enable notifications on, select “properties” and then expand the “Events” menu option.

Building a Hockey Pool on AWS

By Brett Gillett //

I’ve been a member of a lifelong keeper hockey pool for quite a few years now. It started as an excuse to keep in touch with friends from University but quickly evolved into a very serious league where stats are king and the ridicule is unforgiving and never stops. The Evolution of the League When we first started, we kept all the stats in an Excel spreadsheet. It worked fine, but it involved a ton of manual labour and took forever to publish.