Systems | Development | Analytics | API | Testing

Ruby Security Week: What To Patch In Rails And Puma Now

Two of the most load-bearing gems in a Ruby web stack, Rails and Puma, each shipped a coordinated security release within the same few days. If you run Ruby in production, this is a patch-this-week pair rather than a routine bump. Scout Monitoring instruments both Rails and your Puma workers out of the box, so the clean way to confirm an upgrade changed nothing you care about is to watch your endpoints before and after. Set that up with Scout for free while you plan the rollout.

Tracking Ecto Queries and HTTP Calls in Scout APM for Elixir

If you’ve spent any time debugging slow endpoints in a Phoenix application, you know the pattern: something is slow, you open your APM, you see a big chunk of time attributed to “Ecto” or maybe just “Controller,” and then you go make coffee while you grep through logs trying to figure out what actually happened. With v2.0 of the Scout APM Elixir agent, we’re closing that gap.

Caching Strategies for Ultra-High Performance in Ruby on Rails, Part 2

In the part 1 of this series, we covered the fundamentals of caching (like fragment and Russian Doll caching). Before continuing, read that post here. This time, we’ll look at understanding Rails cache stores at a deeper level, so let’s jump in! Before we start part 2, let’s note that another way to make sure your Rails apps are ultra-fast is with Scout’s integrated monitoring and logging, so you can spot problems before your users do.

Caching Strategies for Ultra-High Performance in Ruby on Rails, Part 1

When it comes to optimizing web applications, a proper caching strategy is critical because it can significantly reduce load times and improve the overall user experience. This is especially true for Ruby on Rails applications, where performance can often experience bottlenecks due to heavy database queries or complex view rendering.

Setting Up A RESTful API With Ruby on Rails

Ruby on Rails is an excellent choice for building a REST API, stemming from its design principles and robust feature set. It encourages a resource-oriented architecture, including built-in routing, migrations, and task tools. Rails also includes Active Record, an Object-Relational Mapping (ORM) layer, which simplifies database interactions.

Event-Driven Architectures with Django

Imagine you're building an e-commerce application. You want to use Django and bring all the benefits of that framework. But there are issues. Django's service-oriented architecture doesn’t play well with the event-driven nature of what you need to build. You need to automatically send a welcome email when a new user registers, instantly update inventory levels when an item is purchased, and notify users when their orders are shipped.

Will AI coding create more monoliths?

Let’s start with a statement everyone can agree on: AI coding is now a permanent fixture of the software development lifecycle. Even if your team hasn’t introduced it officially yet, it’s only a matter of time before one of your peers kicks off the discussion or pushes a PR that, perhaps even unbeknownst to you, is entirely AI-generated. Now, let’s rub some folks the wrong way: AI coding in a microservices architecture is a recipe for disaster.

Integrating Ollama with a Ruby on Rails Application

Check out Scout Monitoring's ollama-rails GitHub repo for samples on how to use ollama-ai to communicate with Ollama. Large Language Models (LLMs) have emerged as a game-changer, enabling machines to understand, generate, and process human language with unprecedented accuracy and fluency. One such tool that has gained significant attention is Ollama, a cutting-edge platform that allows developers to run LLMs locally without relying on cloud services.

Building AI With Ollama and Django

If you’re not building with AI, are you even building these days? Sometimes, it seems not. AI has become such an integral part of workflows throughout many tools that a clear understanding of integrating it into your product and framework is critical. Django is such a framework that powers thousands of products across the web: Instagram, Pinterest, and Mozilla are all services built on Django.