From | To | Expression |
---|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== PostgreSQL | |
Braintree | |
* https://www.braintreepayments.com/braintrust/scaling-postgresql-at-braintree-four-years-of-evolution | |
* http://www.databasesoup.com/2012/04/sharding-postgres-with-instagram.html | |
* http://media.postgresql.org/sfpug/instagram_sfpug.pdf | |
* http://instagram-engineering.tumblr.com/post/10853187575/sharding-ids-at-instagram#_=_ | |
* http://instagram-engineering.tumblr.com/post/40781627982/handling-growth-with-postgres-5-tips-from-instagram |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
object GatlingPlugin { | |
val gatling = TaskKey[Unit]("gatling") | |
val gatlingVersion = SettingKey[String]("gatling-version") | |
val gatlingResultsDirectory = SettingKey[String]("gatling-results-directory") | |
val gatlingDataDirectory = SettingKey[String]("gatling-data-directory") | |
val gatlingConfigFile = SettingKey[String]("gatling-config-file") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package akka.unfiltered | |
import akka.actor._ | |
import akka.dispatch.Future | |
import akka.pattern.ask | |
import akka.util.duration._ | |
import akka.util.Timeout | |
import unfiltered.Async | |
import unfiltered.request._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Lazy load assets, call callback fn after all assets have loaded. | |
* | |
* Requires: jQuery or Zepto | |
* | |
* Usage: | |
* Lazy.load({"js": ["js/file.js"], | |
* "tpl": [{"src": "tpl/event.tpl", "id": "event-view"}], | |
* "css": ["css/file.css"] | |
* }); |