DEV Community

Akshay Jain
Akshay Jain

Posted on • Updated on


Hosting a Sample Python Flask Application on AWS EC2 with AutoScaling and LoadBalancer(Ready CloudFormation)

  1. Open AWS Console (or aws cli)

  2. Create a new stack

  3. Use below cloud formation

Note- - Change the user data part to your custome code. A sample code is already added in this cloud formation template.
- Make sure you have atleast 1 public and 1 private subnet ready.
- Private subnet must be able to connect to internet (Use Internet Gateway or NAT for that)

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.