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.…

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…

Netflix OSS: A beginner's guide [pt1]

In this series of posts, I'll try to get you inside the Netflix stack: understand how it works and get your feet wet in the microservices world. So, to begin, we need to know the first component of the Netflix stack: Eureka The Eureka is described by Netflix as a…