In Ruby, you have a choice: define classes or modules either inline or nested within another module. While both approaches achieve similar results, there are key functional differences to consider, making nesting the preferred approach. The Subtle Distinction in Referencing Let’s look at an example using User and Admin::User classes: module Admin class Nested #…
Tag: deployment
When Kubernetes is not the right choice?
As with anything in the technology field, there is no one size fits all solution… And even kubernetes solving a big amount of problems you might have when exposing and scaling your application, it also brings some problems that you need to weight before deciding if this is the right technology for you or not….
Rails from “zero” to kubernetes – horizontal autoscaling
Following up on our previous post, we’ll now make kubernetes work for us, and automatically scale our application.
One of the really cool kubernetes features is the ability to automatically span new pods for your deployment based on the CPU usage of your pods. This is kinda simple, but very useful.
Rails from “zero” to kubernetes – a service to access your pod
In the previous post, we created our first kubernetes pod, but one important part is missing, it is not possible to access that application, we’ll solve this with a service now….
Rails from “zero” to kubernetes – first pod
Last year I wrote about using docker-compose to have a test/development environment similar to your production environment (you can check the post here) My environment kept growing and becoming more complex, and I started using docker swarm to deploy the applications, and after some time I started using kubernetes, I’ve learnt something about kubernetes in…
What do you need to know to put your app in production in Ruby, Python, .NET, Java, …
Ok, this is just my opinion, and if you are a junior developer you do not need to know how to put anything in production, but it is your responsibility to learn before you get promoted to anything else than Junior. And I’m not talking just about Ruby developers here, any developer that is not…