<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -24,13 +24,15 @@ end
 
 count_per_worker = $options[:count] / $options[:concurrency]
 
+requests = (1..10).to_a
+
 benchmark = Benchmark.measure do
   threads = []
-  $options[:concurrency].times do |request|
+  $options[:concurrency].times do
     threads &lt;&lt; Thread.new do
       socket = TCPSocket.new($options[:host], $options[:port])
       count_per_worker.times do
-        socket.print(&quot;#{request}\n&quot;)
+        socket.print(&quot;#{requests.rand}\n&quot;)
         socket.readline
       end
     end</diff>
      <filename>jb</filename>
    </modified>
    <modified>
      <diff>@@ -1,24 +1,26 @@
-Theme #1: Distribution, Balance, and Locality
+# Distribution, Balance, and Locality
 
-Introduction: A Basic Network Service
+# Introduction:
+Who am I?
+Talk outline
 
 # Distribution
+Simple Network Service with EventMachine
 Load Test Service
 Explain concept of IO vs CPU time
+Collect statistics
 Calculate the optimal # of workers per core
 
 # Load Balancing
+Alternatives: proxy, ketama, dns, p2p
 Write a Proxy
-Show Round-Robin, Random, and By-busyness
+Propagate transaction-id through system
+Show Round-Robin, Random, and LeastConnections strategies
 
 # Locality
+Distributed Memory Hierarchy / Computation Hierarchy
 Cache results in-process
-Fallback to network cache
-Compute
-Proxy without stickyness
-Proxy with stickyness
+Examples of Locality
+Achieve locality with Sticky strategy
 
-# Other Balancing Schemes
-Client-side Partitioning
-Peer-to-Peer
-Name Server
\ No newline at end of file
+Questions?
\ No newline at end of file</diff>
      <filename>talk_outline.txt</filename>
    </modified>
    <modified>
      <diff>@@ -5,14 +5,14 @@ module InProcessLRUCache
       data == key
     end
     if !cache_hit
-      $stats.set('cache_hit', 0)
+      $stats.set('cache_hit', 0.0)
 
       result = yield(data)
       @cache.unshift([data, result])
       @cache.slice!(2..-1)
       result
     else
-      $stats.set('cache_hit', 1)
+      $stats.set('cache_hit', 1.0)
 
       cache_hit[1]
     end</diff>
      <filename>util/in_process_lru_cache.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>472ce9df62bf0db5fa04f2f7cdd62d7052cf9feb</id>
    </parent>
  </parents>
  <author>
    <name>Nick Kallen</name>
    <email>nkallen@yahoo.com</email>
  </author>
  <url>http://github.com/nkallen/gogaruco/commit/645ff5705c986b38f7a6c27e95c85e0c411a52dd</url>
  <id>645ff5705c986b38f7a6c27e95c85e0c411a52dd</id>
  <committed-date>2009-04-17T09:40:37-07:00</committed-date>
  <authored-date>2009-04-17T09:40:37-07:00</authored-date>
  <message>notes</message>
  <tree>08df2d59fe1b2e32a17ab0a96f2c028ce52cf55c</tree>
  <committer>
    <name>Nick Kallen</name>
    <email>nkallen@yahoo.com</email>
  </committer>
</commit>
