Hey, fellas:) Today we talk about how we can benefit from code generation.
Every software engineer and every company at some point tries to preserve the knowledge of best practices and know-how-s, in order to prevent making the same mistakes or extra work over and over again.
I was thinking about this problem as well, so during my career, I have tried:
Personally, I am extremely fascinated with a container-based approach. I try to ship every application as a Docker container because in this case, the application becomes an infrastructure provider agnostic. So this time we will see how to deploy a dockerized application to Heroku — a famous cloud platform.
My application’s code is as simple as 5 cents:
It is written in NodeJS, but it really does not matter, it could be anything else.
⚡ The first important thing: internally Heroku chooses a random port to hang the container on, so your application should look at PORT environment variable.
Let’s create a Dockerfile and put it next to the…
Serverless lambda is stateless. It means it does not share any data between two calls of the same function, so now we need to find out how to actually store the data.
When it comes to AWS, we have multiple choices:
Today we will talk about DynamoDB. Facts you should know about DynamoDB before you proceed: