In this blog post I want to talk about APIs, and how to design your API when working with microservices.
The project’s source code can be found here
Until fairly recently, the go-to approach to building applications was creating a single-tiered and indivisible unit that handles multiple related tasks. This is the Monolith pattern.
This pattern was by far the most common back then, it still works well in many cases and is still widely used in the industry today.
I wanted to publish this article during the early days of the NBA Playoffs, when Damian Lillard was balling. Although it’s a bit too late now, he still deserves a big shout out.
Most of us have probably worked on large projects where parts of the code were so difficult to extend, understand and sometimes even maintain. …
In this post I am going to cover some common cases and incidents that you are likely to experience when using goroutines and how to deal with them.
First, what’s a goroutine?
Golang is concurrent by nature.
To achieve concurrency, Go uses goroutines — functions or methods that run concurrently with other functions or methods.
Yes, even Golang’s main function is a goroutine!
goroutines can be viewed as lightweight threads, but unlike threads, they are not managed by the operating system, but by Golang’s runtime.
Around 9 months ago I started making the transition from Python to Golang, mainly due to the technology stack used in my company.
One difficult spot I found was mocking AWS services.
In this article I am going to demonstrate how to mock AWS services using Golang.
In the previous article, I demonstrated how to build, deploy and test a Lambda with Python and Pytest.
During an application development life cycle we want to make sure that the code we write is working properly, and that we’re not breaking other components while adding new ones. …
Update 07.09.2020: Added an AWS DynamoDB.
In this article we will build, test and deploy an example lambda using SAM, Python3 and Pytest, while maintaining maximum code coverage, development velocity and simplicity.
AWS provides an open source framework for building serverless applications — Serverless Application Model.
SAM allows you to easily deploy lambdas on AWS, simplifies the process and saves you lots of time and headache with zipping, installing dependencies and etc.
While there are…