How To Deploy Nuxt to AWS Lambda

Nuxt’s default deployment mode is as a continuously running Node.js server. That’s a problem for developers who prefer cost-efficient serverless technologies like AWS Lambda.

Published 29 Oct 2024 · 10 min read · Tom Gregory

How To Setup Custom A/B Testing in AWS

Some companies want you to believe A/B testing is so complicated that you should never consider setting it up yourself. Just pay a fixed monthly fee and leave it to the experts. They couldn’t be more wrong. Setting up basic A/B testing in AWS is possible for anyone who tinkers with cloud services and can write simple scripts. This solution doesn’t have a polished web UI or deliver results by email, but it does answer one important question....

Published 20 Jun 2024 · 13 min read · Tom Gregory

Ultimate CORS Guide for Developers

Why CORS exists, how it works, and how to use it to properly setup cross-origin requests.

Published 6 Dec 2022 · 22 min read · Tom Gregory

How to Deploy Eureka into AWS ECS

Discover how to setup Eureka in AWS ECS following an example project.

Published 13 Apr 2022 · 9 min read · Tom Gregory

3 surprising facts about AWS SQS FIFO queues

The first-in-first-out (FIFO) queue is the type of AWS SQS queue that guarantees order and provides exactly once delivery of messages. That sounds great, but there are some other important features to understand to avoid unexpected queue behaviour. In this article you’ll discover the 3 most important caveats with SQS FIFO queues. 1) If a message fails to be processed, it may block other messages When you send a message to a FIFO queue a message group id must be provided....

Published 8 Mar 2021 · 8 min read · Tom Gregory

3 options for cross-account VPC access in AWS

Using separate AWS accounts provides strong separation of resources, which is great until the point you need cross-account access from a VPC in one account to another. In this article you’ll learn 3 ways to setup a secure connection across accounts, with full working examples you can try out yourself. Why do we need cross-account VPC access? A Virtual Private Cloud (VPC) is a private network which you create in the AWS cloud....

Published 15 Feb 2021 · 16 min read · Tom Gregory

How and when to use a Prometheus gauge

A Prometheus gauge is a specific type of metric used for measurements. That means your service always returns to Prometheus the current value of whatever it is you’re measuring. Prometheus is regularly scraping your service for metrics though, and when your gauge’s current value is returned Prometheus stores this against the current time. You’ll then be able to run queries against Prometheus to see what’s happening to your gauge over time....

Published 5 Feb 2021 · 5 min read · Tom Gregory

5 reasons for developers to get an AWS certification

AWS is the leading cloud provider with 32% of the market share. It offers highly available and cost effective services, so it’s no surprise companies are migrating from on-premises to AWS in droves. As developers, we’re often caught in the middle of this, being asked to re-architect software to new models such as containers or serverless. Sometimes the reasons for this seem unjustified given the huge changes required, but a lack of knowledge of AWS can hold you back from engaging in discussion....

Published 15 Jan 2021 · 5 min read · Tom Gregory

AWS ECS deployments step-by-step

The default ECS deployment type is called rolling update. With this simple approach, running ECS tasks are replaced with new ECS tasks. You control this process with the deployment configuration, where you define the minimum and maximum number of tasks allowed during a deployment. Through this mechanism you can ensure enough tasks are running to service your traffic, and likewise you’re not overspending by running too many. To understand the deployment process we’ll take the following simple setup as an example....

Published 7 Dec 2020 · 9 min read · Tom Gregory