Killer APIs (All About the Strangler Pattern)

Post on 09-Apr-2017

200 views 4 download

Transcript of Killer APIs (All About the Strangler Pattern)

Killer APIs(All About the Strangler Pattern)

DC API Meetup, 7/5/16

How do you replace legacy systems?

When do you pull the plug?

Maybe you don’t.

Strangle them.

The Strangler Vine

Strangler Fig, final stagePhoto credit: Prashanthns - Own work, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=9567936

StranglerApplication PatternMartin Fowler, 2004

http://www.martinfowler.com/bliki/StranglerApplication.html

Case Study:OpenFEC

OpenFEC: Old to New

PostgreSQL RDSGolden Gate

replicationMaterialized views

Oracle Data WarehouseNo direct accessComplex data model

OpenFEC Architecture

OpenFEC’s ResultsModern, free database (Postgres)In the cloud (easy backup and replication)Simplified and optimized data modelAccurate dataSpeedy performanceEasy maintainability

Database strangulation.(Achievement unlocked!)

Killer APIhttps://github.com/18f/openfec

@arowlaAlison RowlandFormerly Presidential Innovation Fellow, 18F;Currently Development Lead,Commerce Data Servicehttps://github.com/arowla