Skip to content

Instantly share code, notes, and snippets.

@thody
thody / service-checklist.md
Created September 12, 2016 20:20 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@thody
thody / gist:6685122
Created September 24, 2013 13:55
Snippet depicting usage of `DBIRule` with `DataSourceFactory` passed in via constructor.
private static DataSourceFactory dataSourceFactory;
@BeforeClass
public static void setUpClass() {
dataSourceFactory = new DataSourceFactory();
dataSourceFactory.setUrl("jdbc:h2:mem:DbTest-" + System.currentTimeMillis());
dataSourceFactory.setUser("sa");
dataSourceFactory.setPassword("");
dataSourceFactory.setDriverClass("org.h2.Driver");
}
@thody
thody / JdbiIntegrationTest.java
Last active December 18, 2015 12:19
Starting point for an abstract base class for Dropwizard JDBI integration tests.
public abstract class JdbiIntegrationTest {
private DBI dbi;
private Handle handle;
private Liquibase liquibase;
protected abstract DatabaseConfiguration getDatabaseConfiguration();