Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CR comments from Robey & Kyle

  • Loading branch information...
commit b52604ea4609aea14ba6bbcfd4bd366cb6f904a1 1 parent e43f20c
@dloft authored
Showing with 12 additions and 9 deletions.
  1. +12 −9 lib/template/TUTORIAL.md
View
21 lib/template/TUTORIAL.md
@@ -21,6 +21,14 @@ or you can ask sbt to run your service:
$ sbt 'run -f config/development.scala'
+### View the Thrift IDL for your service
+
+The IDL for your service is in src/main/thrift/birdname.thrift. The
+Thrift compiler uses the IDL to generate bindings for various
+languages, making it easy for scripts in those languages to talk to
+your service. More information about Thrift and how to write an IDL
+for your service can be found [here](http://wiki.apache.org/thrift/Tutorial)
+
### Call your service from ruby
Your service implements simple get() and put() methods. Once you have
@@ -33,14 +41,6 @@ your server running, as above, bring up a different shell and:
$ $client.put("key1", "valueForKey")
$ $client.get("key1")
-### View the Thrift IDL for your service
-
-The IDL for your service is in src/main/thrift/birdname.thrift. The
-Thrift compiler uses the IDL to generate bindings for various
-languages, making it easy for scripts in those languages to talk to
-your service. More information about Thrift and how to write an IDL
-for your service can be found [here](http://wiki.apache.org/thrift/Tutorial)
-
### Look at the stats for your service
By default, your project is configured to use
@@ -91,7 +91,10 @@ your stats:
You can also time various things that your server is doing, for
example:
- Stats.time("birdname.put.latency){ database(key) = value }
+ Stats.time("birdname.put.latency") {
+ Thread.sleep(10) // so you can see it
+ database(key) = value
+ }
### Specs: let's add some tests
Please sign in to comment.
Something went wrong with that request. Please try again.