4 tips on how to make more out of Sidekiq

Without a doubt, Sidekiq is one of the most popular Ruby gems. Next to Shoryuken and Resque its main purpose is processing background jobs. Almost every Ruby application I have worked with had sidekiq listed in its Gemfile. In this article, I would like to share some insights that I have learned about over time Read more…

Read more...
 

Sharding

Sharding and partitioning are both about breaking up a large data set into smaller subsets. The difference is that sharding implies the data is spread across multiple computers while partitioning does not. Partitioning is about grouping subsets of data within a single database instance.

Read more...
 

Distributed cache

Distributed cache is an extension of the traditional concept of cache used in a single locale. A distributed cache may span multiple servers so that it can grow in size and in transactional capacity

Read more...
 

Ephemeral environment

It is a short-lived environment that mimics a production environment.

Read more...
 

Method overloading

A feature that allows a class to have more than one method having the same name, if their argument lists are different. add(int, int) add(int, int, int)  

Read more...
 

A brief refresher about Rails `ActiveSupport::Concern`

ActiveSupport::Concern is a Rails built-in module which adds some magic to the plain Ruby Module. To take usage of it, a module should extend it: module M extend ActiveSupport::Concern end What kind of magic we talk about? It defines class_methods method which defines class methods from a given block: # A plain module module M def Read more…

Read more...
 

CIDR (Classless Inter-Domain Routing)

CIDR notation is a compact representation of an IP address and its associated routing prefix. 192.168.100.14/24 represents the IPv4 address 192.168.100.14 and its associated routing prefix 192.168.100.0, or equivalently, its subnet mask 255.255.255.0, which has 24 leading 1-bits. The number of addresses of a subnet may be calculated as 2address length − prefix length, where Read more…

Read more...
 

Copy public SSH keys to clipboard

pbcopy < ~/.ssh/id_rsa.pub

Read more...
 

Kubernetes: Force recreate a pod

kubectl get pod [POD] -n coral -o yaml | kubectl replace –force -f –

Read more...
 

Kubernetes: Get deployments with current image version

kubectl get deployments -n [NAMESPACE] -o wide

Read more...