Browsed by
Tag: aws

How to offload cpu heavy code to lambda with Nodejs

How to offload cpu heavy code to lambda with Nodejs

The title, says it all, but basically if you have a small service (in this case written with nodejs) running on a server with limited capabilities, you might run into problems if you want to do processor/memory heavy computations. For this can be a solution to offload the work to lambda, which can scale automatically, and you only have to pay for computation, so basically if you rarely need the computation, instead of renting a server you can do this…

Read More Read More

Nginx https load balancer with lets encrypt cert (On AWS)

Nginx https load balancer with lets encrypt cert (On AWS)

Part 1: Create a working http load balancer I’v decided to use amazon for hosting my (Ubuntu 14.04 trusty) server (t2.nano (still an overkill, anything with 256 mb ram is more than sufficent)) you have to create a security profile which opens port 22 for ssh, 80 for http, and 443 for https. ssh into your server. Fetches the updates from the server, downloads nginx, apt-get update & upgrade, sudo apt-get install nginx Backup the config file, it is always…

Read More Read More