Posts

A Recipe for Safe Scale Down of the Amazon ECS cluster

Introduction and Problem definition If you have worked with containers and AWS for sure you have heard about Amazon Elastic Container Service, called in short ECS. It is a workhorse for your AWS infrastructure, mainly if you use containers and do not use Kubernetes. Operating this service in most cases is an enjoyable experience. However, there is one caveat which you need to be aware. The problem surfaces when you would like to downsize your cluster, but you want to preserve certain machines from being removed.

Continue reading

Serverless Slack Bot using AWS Chalice

Today I would like to show you how to build Slack Bot using serverless approach on AWS infrastructure. We are going to support our efforts using AWS Chalice framework. Our Slack Bot is going to be a dummy one. It will respond with a message we send to it. However this article is not about implementing sophisticated bot behavior. We want to setup whole stack which will be a foundation for further development.

Continue reading

Functional Programming in Serverless World

Motivation You may have noticed the first part here. If not, it is more or less a business case for serverless computing. I have explained there the what and whys behind serverless, but also talked about the architectural, economic and operational impact that it has on your systems and products. We have left a fascinating question there, wondering if the first word in FaaS acronym (function as a service) means something, for the functional programmers.

Continue reading

Spring Boot 2 And OAuth 2 - A Complete Guide

Yet another tutorial? Some time ago I’ve been asked to setup authentication for a Spring Boot-based REST application. “Easy-peasy” I said to myself. I’ve been coding in Java for many years. I’ve been using Spring framework since the very early version when you had to love the XML. I took into account all the requirements and proposed a solution with OAuth 2 as an authentication framework. I was happy to start a development.

Continue reading

The Business Case for Serverless Architecture

Motivation Can we use a functional programming language with AWS Lambda? Someone in our team, a year ago It is incredible how a single question can direct you into an exciting place. Journey through that rabbit hole turned out to be a crazy, but excellent chance to build know-how which we can leverage for our clients. Today I do not tell you how much yak-shaving is required to use our beloved functional languages in serverless.

Continue reading

The last thing that I missed in the CloudFormation

We don’t need expressive language, except when we need it By the end of August AWS released a developer preview of the Cloud Development Kit (aws-cdk in short), which allows you to codify infrastructure code in your language of choice. A real programming language. You may ask: why is it a big deal? Imagine that you have to prepare 30 IAM user accounts and S3 buckets with the following permissions:

Continue reading

We've got it! 2nd place at the Cloud Olympics Finals in Warsaw

What is it? If you have not heard about Cloud Olympics organized by Chmurowisko I encourage you to check our review of the qualification round here. If you read that one, you noticed that I did not make it to the finals (I was 3rd in the Cracow’s qualification round, just first two places were promoted to finals). But… life is full of surprises! It turned out that one of the guys from the first two places could not make it.

Continue reading

What is wrong with gen_event?

gen_event confused me from the beginning, so I wanted to investigate the topic more deeply. I did that here. Then I left that topic, and it returned recently to me when I was wondering how the situation changed since then. Here is the updated version of the initial investigation, which started with the following statement: I never used a gen_event, I think it is a bad pattern. At first, it may look like a controversial statement, but I heard a lot of those complaints from other people.

Continue reading

Microservices: What Makes Developer Happy?

What is this about? You may want to check our previous article to gather some insights about Microservices in general. In this blog post, I’d like to present my very subjective view on 10 traits that when present, will make Microservices much pleasant to use by developers … and ultimately put a smile on their faces :) Ten traits of Microservices that make developers happy Recently I had a meeting with experienced architects - we wanted to define what Microservice means.

Continue reading

Microservices: Ultimate Compilation of Valuable Resources

Motivation In this blog, we want to gather valuable resources about Microservices in a single place. Bookmark it, because we update it in the future. Theory Martin Fowler described Microservices well, and we believe it is a good start. The best way to start with microservice topic is following presentation: Above presentation is an excellent introduction to Fowler’s article available here. Keep in mind that presentation does not cover the whole article, so we encourage to read a whole article.

Continue reading