Intern Track Roadmap

Computer architecture

This course explains the hardware that runs your Ruby and Rails code. It covers the CPU and its fetch-decode-execute cycle, clock speed, cores and Ruby's GVL. It then looks at RAM, the Ruby heap and the garbage collector, followed by HDDs, SSDs and database indexes. The bus lessons cover bandwidth, latency and caching layers. The last lesson traces a Rails request from boot to rendered page and maps common performance problems to the component that causes them.

What you'll learn

  • ✓How the CPU, RAM and storage pass data to each other
  • ✓How the fetch-decode-execute cycle, cores and Ruby's GVL affect your code
  • ✓How Ruby objects use RAM and how the garbage collector frees it
  • ✓Why SSDs, HDDs and database indexes change query speed
  • ✓How bandwidth, latency and caching layers shape performance
  • ✓How to map common Rails problems to a hardware cause
Free preview · Lesson 1 4 min read

What is a computer?

Every time you type ruby app.rb and press Enter, something extraordinary happens. Your human-readable Ruby code gets turned into electrical signals that switch billions of times per second inside silicon chips. But what is doing all that work?

Read the full lesson free →

Curriculum

6 lessons
Type to start searching...