Jeff Lindsay: Building Public Infrastructure with Autosustainable Services

Preview:

DESCRIPTION

 

Citation preview

AutosustainableServices

Jeff Lindsay@progrium

1.

2.

3.

Public Infrastructure

Autosustainable Services

Airscript Demo

1.

2.

3.

Public Infrastructure

Autosustainable Services

Airscript Demo

WARNING

This talk contains big ideas and is not really

specific to Python at all

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

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

Web

API

Client

TwiML

Distributed Systems

Distributed Systems

Internal System

External Ecosystem

Distributed Systems

Internal System

External Ecosystem

Distributed Systems

Internal SystemMicro level

Macro level

Data

Data

Communications

Data

Communications

Operations

Data

Communications

Operations

Real world

Data

Communications

Operations

Real world

Everything as a Service

What I want is to...

Program the WorldWhat I want is to...

cat

xargs

wc

mailecho

grep

wget

cat

xargs

wc

mailecho

grep

wget

grepcat

xargs

wc

mailecho

wget

mailgrepcat

xargs

wc

echowget

More ComposableWebhooks and “Evented Web”

More ComposableWebhooks and “Evented Web”

More ComposableWebhooks and “Evented Web”

More ComposableWebhooks and “Evented Web”

More ComposableWebhooks and “Evented Web”

Smaller PiecesTiny Apps and Micro APIs

Smaller PiecesTiny Apps and Micro APIs

Smaller PiecesTiny Apps and Micro APIs

Why aren’t there more?

Why aren’t there more?Economics

App Engine

Open Source

Open SourceMajority are tools and libraries

Project

Project

Project

Project

Project

Project

Project

Project

Project

Project

Project

Project

Web ServicesMore leverage, more power

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

Why?

Operations and Cost

Why?

Solution:

Autosustainable Services

Solution:

Operations

Operations

• Use PaaS, embrace NoOps / DevOps

Operations

• Use PaaS, embrace NoOps / DevOps

• Design for simplicity and scalability

Operations

• Use PaaS, embrace NoOps / DevOps

• Design for simplicity and scalability

• Aggressively avoid state

Operations

• Use PaaS, embrace NoOps / DevOps

• Design for simplicity and scalability

• Aggressively avoid state

• Automate maintenance tasks

Operations

• Use PaaS, embrace NoOps / DevOps

• Design for simplicity and scalability

• Aggressively avoid state

• Automate maintenance tasks

• Make metrics public

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

Cost

Cost

• Leverage volunteer community

Cost

• Leverage volunteer community

• Use cloud and/or PaaS services

Cost

• Leverage volunteer community

• Use cloud and/or PaaS services

• Design to minimize resources usage

Donations

Donationswith a twist

Donations

• Automated, ongoing fundraising

with a twist

Donations

• Automated, ongoing fundraising

• Calculate cost to run in real-time

with a twist

Donations

• Automated, ongoing fundraising

• Calculate cost to run in real-time

• Know dollar amount in funding source

with a twist

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

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

$10 DonateThis service can run for 132 more days.

$20 DonateThis service can run for 60 more days.

$30 DonateService shutting down in 10 days without your support

$10 DonateThis service can run for 132 more days.

What does this get us?

Service

Service

Service

Service

Service

Service

Service

Service

Service

Service

Service

Service

Service

Service

Service

Service

Service

Service

No economic friction to building

small, composableservices

Program the World

AirscriptDemo

Questions

Jeff Lindsay@progrium

Recommended