Hw17uydtvkdfeu2totqw

Making sense of ActiveRecord joins, includes, preload, and eager_load

BY Derek Haynes

Like a pair of jumper cables, ActiveRecord's joins , includes , preload , and eager_load methods are incredibly useful, but also very dangerous when used incorrectly. Knowing when and where to use each approach - and even when to combine them - can save you considerable trouble as your app ...

Read More →

 
3txymmjsumsywq91cxcq

Understanding Heroku Error Codes with Scout APM

BY Matthew Chigira

If you are hosting your application with Heroku, and find yourself faced with an unexplained error in your live system. What would you do next? Perhaps you don’t have a dedicated DevOps team, so where would you start your investigation? With Scout APM of course! We are going to show you how you can use Scout to find out exactly where the problem lies within your application code. We are going to walk through two of the most common Heroku error codes and show you how to diagnose the problem with Scout quickly and efficiently.

Read More →

 
Ipbn0oeqs9yeuocsv0yz

How to use Mint, an awesome HTTP library for Elixir - Part 02

BY Minhajuddin Khaja

In our previous post we looked at how to set up and use Mint to make a simple GET request to fetch the contents of a README file from a Github repository. In this post let us continue building our Awesome Toolbox and add some more functionality.

Read More →

 
Zxuj52wdtkyxs4dt1gff

Prometheus and Docker: Monitoring Your Environment

BY Erik Jacobsen

What Are We Doing Here? Coming back from Monitorama last week, I had a chance to sit back and start playing with some tools to see how they worked. Prometheus is a pretty ubiquitous tool in the monitoring space, is pretty easy to spin up, and most importantly (for this ...

Read More →

 
7bceia3psoqhulnnamep

Monitorama 2019 - Portland, Oregon

BY Erik Jacobsen

Talks from industry experts and community leaders discuss the newest approaches in monitoring and observability. Find out which tools and techniques are in use at some of the largest web architectures in the world.

Read More →

 
Ochsjxabrj6nxpxy4wla

Debugging with Rails Logger

BY Matthew Chigira

If you’re a Rails developer, then you’ve probably used Rails Logger on at least one occasion or another. Or maybe you have used it without even realizing, like when you run ‘rails server’ and it prints information to the terminal window, for example. Rails Logger provides us with a powerful way of debugging our applications and gives us an insight into understanding errors when they occur. But are you using all of the Rails Logger features? There’s a good chance you are not! So let’s take a more in-depth look at the logging system in Rails, look at some of its more unknown features, and establish some best practices for our log creation in the future.

Read More →

 
57ws3kyys1elmfjgqneb

Which Ruby background job framework is right for you?

BY Doug Breaker

If you've been around the Ruby/Rails ecosystem for a bit you've likely heard the term 'background job' or 'offline processing'. But what does that actually mean? How do you know which tasks are suitable to be processed 'in the background'? Once you define those tasks, how do pick the right ...

Read More →

 
N7lexv4oqykjfw2a4c0b

Understanding Linux CPU stats

BY Derek Haynes

Your Linux server is running slow, so you follow standard procedure and run top . You see the CPU metrics: But what do all of those 2-letter abbreviations mean? The 3 CPU states Let's take a step back. There are 3 general states your CPU can be in: Idle , ...

Read More →

 
2ormjdmtzw3op2dmxvvo

Container Orchestration in 2019

BY Matthew Chigira

How are you deploying your applications in 2019? Are you using containers yet? According to recent research over 80% of you are . If you are within this group, were you initially sold on the idea of containers but found that in reality, the complexity involved with this approach makes it a difficult trade-off to justify? The community is aware of this and has come up with a remedy to ease the pain, and it’s called container orchestration. So whether you are using containers or not, let’s take a closer look at container orchestration and find out what you need, what its used for and who should be using it.

Read More →

 
Wu80kzu7tc6iakegmbxp

Building Docker Containers for our Rails Apps

BY Matthew Chigira

How can we take our existing Ruby on Rails applications and run them inside a Docker Container? In a recent post, we talked about Docker containers, and what you should know about them. Hopefully we cleared up any confusion you might have had about the Docker ecosystem. Perhaps with all that talk, it got you thinking about trying it out on one of your own applications? Well in this post we’d like to show you how easy it is to take your existing Ruby on Rails applications and run them inside a container. So, let’s assume you have an existing Rails project with a PostgreSQL database, and let’s walk you through the steps it would take to run this in a container instead. It’s a lot easier than you probably think!

Read More →