Development is Production Too

Preview:

DESCRIPTION

 

Citation preview

Development is Production Too

Goulah / Kastner

Why?

How is development different than production?

How is development like production?

Automation!

Expertise

“Knowledge, by definition, is specialized”

Peter Drucker

Leverage

Business Value!

Lack of Tooling

Dear Team....

Tools!

Tools!

Tools!

Tools!

Tools!

Tools!

Bad Abstractions

What are You Optimizing For?

“I don’t know”

“I don’t know”

Optimize for… Day 1

ApplicationCode

ApplicationCode

Data

ApplicationCode

Data Environment

Consistency

ENVIRONMENT=prod

• Resource handles to DB/Memcached/Search

• Resource handles to DB/Memcached/Search

• Credentials to external services (S3, Twitter, etc)

• Resource handles to DB/Memcached/Search

• Credentials to external services (S3, Twitter, etc)

• Per deploy values (canonical hostname)

• Resource handles to DB/Memcached/Search

• Credentials to external services (S3, Twitter, etc)

• Per deploy values (canonical hostname)

• Config/feature flags

Optimize for… Changability

Inconsistent Environments

Development Production

Shared Config Management

VM Templates

Data is Different

Local vs. Shared

Where Does Data Come From?

Copy Prod to Dev

Fixture Data

Subsets of Data

Use Production?

step 0: make sure you can survive

catastrophic failure

step 1: test data in production

Text

Prod

Prod

Dev

Prod

Dev

Text

incognito=true

Prod

Dev

incognito=true

Dev

select * from user where id=10 and incognito=false

Prod

Dev

incognito=true

Dev

Prod

Dev

incognito=true

Dev

The Three Rs

Reduce

Reuse

Recycle

Thank You

Thank You

@johngoulah / @kastner

Recommended