Validating Mandrill webhook signature on Ruby on Rails

I'm writing this post partially because I couldn't find anything exactly like this and to keep a log for me, in case I have to deal with this once again. Since Mandrill does not provide a way to authenticate their webhooks using, for example, a user/password combination, they came…

Encapsulation in Ruby on Rails

In Object-Oriented Programming, encapsulation is one of the fundamentals concept. Understand encapsulation will help you write concise and easy to maintain code. But what exactly is encapsulation? If you search on the Internet you might find something like this: encapsulation is hide the internal representation or state of an object.…

Deploying Spring Cloud Netflix apps on Kubernetes

If you are deploying containers on production, Kubernetes is a no-brainer solution. It takes some time to get familiar with all concepts but once you understand it, piece of cake 🍰. So today I wanna show you how to deploy an Eureka server, a Hystrix dashboard with Turbine and a microservice.…

Refactoring legacy Ruby on Rails apps

I have this idea: Chathub, an app that turns Github's organizations and/or repositories into chat rooms, pretty much like Gitter. I use this idea every time I want to build a new PoC. So I did it in Rails, in Java when I wanted to go deeper into Spring…

Netflix OSS: A beginner's guide [pt4]

When a system grows, you need some kind of monitoring as well. If you have a monolithic app, that is not really a hard task, but when it comes to microservices word, things change. How to keep track of hundreds of instances? How do you know if one of them…

Netflix OSS: A beginner's guide [pt3]

So far, we created an Eureka server, a microservice and registered it in Eureka. You can access this microservice directly through his IP, but later, when you service grow and you need to scale it, probably you'll want to load balance between two or more instances. So of course Spring…

Netflix OSS: A beginner's guide [pt2]

In the last post, I showed how to create a Eureka server. Now we'll go through the process of creating microservice and register it on Eureka. To begin, you can create a simple project with one entity, for example, a contact list. I will not spend time on the process…