106
Autosustainable Services JeLindsay @progrium

Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

AutosustainableServices

Jeff Lindsay@progrium

Page 2: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

1.

2.

3.

Public Infrastructure

Autosustainable Services

Airscript Demo

Page 3: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

1.

2.

3.

Public Infrastructure

Autosustainable Services

Airscript Demo

Page 4: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

WARNING

This talk contains big ideas and is not really

specific to Python at all

Page 5: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Throwing Together Distributed Services with geventhttp://www.youtube.com/watch?v=tYk4_Nzl-Gg

Page 6: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Distributed Systems with ZeroMQ and geventhttp://www.infoq.com/presentations/Distributed-Systems-with-ZeroMQ-and-gevent

Page 7: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Web

API

Client

TwiML

Page 8: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Distributed Systems

Page 9: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Distributed Systems

Internal System

Page 10: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

External Ecosystem

Distributed Systems

Internal System

Page 11: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

External Ecosystem

Distributed Systems

Internal SystemMicro level

Macro level

Page 12: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services
Page 13: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services
Page 14: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services
Page 15: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services
Page 16: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services
Page 17: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Data

Page 18: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Data

Communications

Page 19: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Data

Communications

Operations

Page 20: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Data

Communications

Operations

Real world

Page 21: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Data

Communications

Operations

Real world

Everything as a Service

Page 22: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

What I want is to...

Page 23: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Program the WorldWhat I want is to...

Page 24: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services
Page 25: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services
Page 26: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services
Page 27: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

cat

xargs

wc

mailecho

grep

wget

Page 28: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

cat

xargs

wc

mailecho

grep

wget

Page 29: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

grepcat

xargs

wc

mailecho

wget

Page 30: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

mailgrepcat

xargs

wc

echowget

Page 31: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

More ComposableWebhooks and “Evented Web”

Page 32: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

More ComposableWebhooks and “Evented Web”

Page 33: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

More ComposableWebhooks and “Evented Web”

Page 34: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

More ComposableWebhooks and “Evented Web”

Page 35: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

More ComposableWebhooks and “Evented Web”

Page 38: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Smaller PiecesTiny Apps and Micro APIs

Page 39: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Smaller PiecesTiny Apps and Micro APIs

Page 40: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Smaller PiecesTiny Apps and Micro APIs

Page 43: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Why aren’t there more?

Page 44: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Why aren’t there more?Economics

Page 52: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

App Engine

Page 53: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Open Source

Page 54: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Open SourceMajority are tools and libraries

Page 55: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services
Page 56: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Project

Page 57: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Project

Page 58: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Project

Page 59: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Project

Project

Page 60: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Project

Project

Page 61: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Project

Project

Page 62: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Project

Project

Project

Page 63: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Web ServicesMore leverage, more power

Page 64: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Software has open source.SaaS has no equivalent...

Page 65: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Why?

Page 66: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Operations and Cost

Why?

Page 67: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Solution:

Page 68: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Autosustainable Services

Solution:

Page 69: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Operations

Page 70: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Operations

• Use PaaS, embrace NoOps / DevOps

Page 71: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Operations

• Use PaaS, embrace NoOps / DevOps

• Design for simplicity and scalability

Page 72: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Operations

• Use PaaS, embrace NoOps / DevOps

• Design for simplicity and scalability

• Aggressively avoid state

Page 73: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Operations

• Use PaaS, embrace NoOps / DevOps

• Design for simplicity and scalability

• Aggressively avoid state

• Automate maintenance tasks

Page 74: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Operations

• Use PaaS, embrace NoOps / DevOps

• Design for simplicity and scalability

• Aggressively avoid state

• Automate maintenance tasks

• Make metrics public

Page 75: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Operations

• Use PaaS, embrace NoOps / DevOps

• Design for simplicity and scalability

• Aggressively avoid state

• Automate maintenance tasks

• Make metrics public

• Give deploy access to maintainers

Page 76: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Cost

Page 77: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Cost

• Leverage volunteer community

Page 78: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Cost

• Leverage volunteer community

• Use cloud and/or PaaS services

Page 79: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Cost

• Leverage volunteer community

• Use cloud and/or PaaS services

• Design to minimize resources usage

Page 80: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Donations

Page 81: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Donationswith a twist

Page 82: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Donations

• Automated, ongoing fundraising

with a twist

Page 83: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Donations

• Automated, ongoing fundraising

• Calculate cost to run in real-time

with a twist

Page 84: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Donations

• Automated, ongoing fundraising

• Calculate cost to run in real-time

• Know dollar amount in funding source

with a twist

Page 85: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Donations

• Automated, ongoing fundraising

• Calculate cost to run in real-time

• Know dollar amount in funding source

• Show users how long it will survive

with a twist

Page 86: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Donations

• Automated, ongoing fundraising

• Calculate cost to run in real-time

• Know dollar amount in funding source

• Show users how long it will survive

• Remove yourself from funding path

with a twist

Page 87: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

$10 DonateThis service can run for 132 more days.

Page 88: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

$20 DonateThis service can run for 60 more days.

Page 89: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

$30 DonateService shutting down in 10 days without your support

Page 90: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

$10 DonateThis service can run for 132 more days.

Page 91: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

What does this get us?

Page 92: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services
Page 93: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Service

Page 94: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Service

Page 95: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Service

Page 96: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Service

Service

Page 97: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Service

Service

Page 98: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Service

Service

Page 99: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Service

Service

Service

Page 100: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Service

Service

Service

Page 101: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Service

Service

Service

Page 102: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

No economic friction to building

small, composableservices

Page 103: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services
Page 104: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Program the World

Page 105: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

AirscriptDemo

Page 106: Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Questions

Jeff Lindsay@progrium