Traefik v2 with Lets Encrypt on Amazon’s Elastic Container Service (ECS)

In this post, we will learn how to setup Traefik v2 on ECS with built in LetsEncrypt SSL. Before I start, I would like to mention that Traefik is awesome reverse proxy & load balancer. Steps which we will follow: Build docker image for Traefik on our local machinePush it on Amazon's Elastic Container Registry (ECR)Use pushed image in Task … Continue reading Traefik v2 with Lets Encrypt on Amazon’s Elastic Container Service (ECS)

FastJsonparser, Fastest JSON parser for Ruby

FastJsonparser is ruby wrapper for simdjson which is written in c++. "JSON is de facto standard for exchanging data between web server and browser." If your application is parsing large JSON data then you must consider optimising it for better performance. I came across Simdjson which claims to parse gigabytes of JSON per second, It also claims to be over … Continue reading FastJsonparser, Fastest JSON parser for Ruby

When not to use Memoization in Ruby on Rails

Memoization is a wonderful concept in programming world. It helps in writing clean code which execute faster. Example: def slow_method @result ||= perform_slow_method end In the above code, slow_method will cache perform_slow_method in @resultvariable, therefore perform_slow_method will execute only once. So, if memoization is wonderful then why not to use it always? that’s the question I am going to answer … Continue reading When not to use Memoization in Ruby on Rails