Slides from my Talk on JRuby and Threads

March 23, 2012 📬 Get My Weekly Newsletter

Here’s a link to download from my talk on JRuby and Threads.

If you just want the “exercises”, here they are:

Echo Server

  • Listen on a port
  • Respond to each request in a new Thread
  • Extra Credit: Record stats on requests in a shared data structure

Connection Pool

  • Allow N clients to access X shared instances of, say, Redis (where N > X)
  • Clients “check out” a connection and get exclusive access
  • Clients “check in” when done
  • Instances get re-used