Skip to content

Instantly share code, notes, and snippets.

View service-checklist.md

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?
View postmkvirtualenv
#!/bin/bash
# This hook is sourced after a new virtualenv is activated.
POST_INSTALL_PKGS="pylint pudb"
PIP=$(which pip)
$PIP install $POST_INSTALL_PKGS
View slave_gevent.py
from __future__ import with_statement
from kombu import BrokerConnection
from collections import defaultdict
import gevent
from gevent import monkey
monkey.patch_all()
class WorkerHub():
"""
WorkerHub controls the local mailboxes that the @worker decorator assigns.