What Beanstalk environment tier is the best?

Recently we were involved in a debate: if my service processes messages from a queue, is it better to create a worker environment or a web tier environment? Without pretending that there is only one correct answer, we argued that is better to create from the beginning an environment that has a web server behind. […]

Scale up & down your Beanstalk environment according to a schedule

Beanstalk launched long time ago support for scaling your environment according to a defined schedule. For some unknown reasons, we discovered this feature is known by very few people. We use it in 2 scenarios: To scale up one environment when we expect a high load To completely close our staging environments out of office […]

Simple script we use to connect to Beanstalk host

The title of this post is self explanatory and it explains perfectly what we want to share today with you: a basic script we have in our home directory and we use it each time we want to ssh on a host from a Beanstalk environment. The script is: #!/bin/sh RANDOM=$$$(date +%s) PEM_FILE=${*: -1} hosts=”” […]

How to add customization files in Elastic Beanstalk

There is an entire section in the AWS Beanstalk documentation about configuring your application with customization files, but for us 2 aspects are actually missing: how to actually add those files and how to check for the running output of those files. Let’s say you deploy with Beanstalk a Java app that is build with […]

Distributed locking with AWS ElastiCache

It’s been a long time since we published an article about how to integrate AWS SWF in your microservice in order to have a mechanism for distributed locking. Distributed locking is a feature necessary in certain situation when one and only one entity from a mass has to perform a given task like generate a […]

How to setup mail inbox for free when domain is hosted in Route 53

Update: Thank you for starting reading this post! But at this moment, it doesn’t contain up-to-date information. Please find here the latest version of this blog post. Today we’ll continue our journey into the wonderful world of AWS Route 53, the in cloud replacement of a traditional DNS service. Until now, we discussed how to […]

How logging could kill a microservice

The story we are going to tell is about a recent event. But is something that could have had very bad consequences and for that we want to share it with you. Recently one of our collaborators called us complaining that in a microservice he has, from time to time “one host is going crazy”. […]