51
A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture (3scale networks) . Jiří Vokřínek Department of Computer Science Faculty of Electrical Engineering, Czech Technical University in Prague [email protected] http://agents.fel.cvut.cz

10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

A4M36AOS – Architektury orientované na služby

10. Services, Apps and the Internet API

Inspired by Steven Willmott lecture (3scale networks) .

Jiří Vokřínek

Department of Computer Science Faculty of Electrical Engineering, Czech Technical University in Prague

[email protected] http://agents.fel.cvut.cz

Page 2: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

The Web is Dead, Long Live the Internet

Wired Magazine / Aug / 2010 (source: Cisco estimates based on CAIDA publications, Andrew Odlyzko)

Page 3: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

The Web is Dead, Long Live the Internet

Rob Beschizza at BoingBoing ‐> Account for Traffic Growth!

Page 4: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

The Web is Dead, Long Live the Internet

Page 5: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

The Web is Dead, Long Live the Internet

Page 6: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

The Web is Dead, Long Live the Internet

Page 7: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

The Web is Dead, Long Live the Internet

But right or wrong:

o The shift really about traffic or Megabytes

It’s structural:

o Where is the data?

o How does it get to people?

o How do people experience it?

This applies to e‐Commerce as well as Content

Page 8: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Internet in 2012

Page 9: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Internet in 2016

Page 10: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Internet in 2016

www.internetworldstats.com. Copyright © 2001 - 2016, Miniwatts Marketing Group. All rights reserved worldwide.

Page 11: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Internet in 2016

Page 12: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Smartphones in 2013 (estimated in 2010)

Mary Meeker / Web 2.0 Summit / Nov 2010 / San Francisco

Page 13: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Smartphones in 2016

Source: https://www.statista.com/statistics/263441/global-smartphone-shipments-forecast/ Source: https://www.statista.com/statistics/272595/global-shipments-forecast-for-tablets-laptops-and-desktop-pcs/

Page 14: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Mobile internet in 2014

Source: http://www.walkersandsdigital.com/Walker-Sands-Mobile-Traffic-Report

Page 15: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Tablets in 2014

Source: http://www.statista.com/statistics/273840/global-market-share-of-tablet-operating-systems-since-2010

Page 16: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Tablets in 2014

Source: http://www.alza.cz

Page 17: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Tablets in 2014

2005 2007 2010 2012

Page 18: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Internet in 2015 (estimated in 2012)

Page 19: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Internet in 2015

50% worldwide

2B

Did not happen …

Page 20: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Internet in 2018 (estimated in 2014)

Page 21: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Implications

Page 22: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Web Page ‐> App+API

The Web

Page 23: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Web Page ‐> App+API

Apps

Page 24: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

APPS & APIS

What’s really going on with Mobile Applications?

Application often calls “some backend somewhere”

-> Calling an API !

Page 25: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

APPS & APIS

Which means …

Page 26: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

APPS & APIS

RESTfull Web Services

o Resources

o Resources Identifiers (URIs)

o Representations

o Operators

o Response Codes

Page 27: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

APPS & APIS

Evolution of Web Technology

Page 28: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

APPS & APIS

Evolution of Web Technology

Page 29: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

APPS & APIS

Evolution of Web Technology

The Web is becoming Programmable

Anybody can open up their data / service for reuse

Apps Everywhere!

Page 30: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

API Economy

The “Dark Traffic” of the Web

Page 31: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture
Page 32: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Programmable Web Stats

May 2010

o 2000+ APIs

o 4800 Mashups

Nov 2012

o 7900 APIs

o 6832 Mashups

Dec 2016

o 16000+ APIs

o 7828 Mashups

Top Mashup Tags (all time) at 2012

http://www.programmableweb.com/

Page 33: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Programmable Web Stats

APIs usage by protocol: REST (69%), SOAP (22%), JavaScript (5%), XML-RPC (2%)

2418 of 6832 Mashups use GoogleMaps API

Page 34: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

APIs by Layer

Page 35: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Model / View / Controller

An architectural metaphor to help understand this evolution

Highly successful architectural pattern for application development

Page 36: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Model / View / Controller

Originally described for Smalltalk at Xerox Park

MVC has Revolutionized Software Web App Development

Page 37: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Model / View / Controller

Clear separation between Data, Presentation & Business Logic

First – MVC Applications:

Page 38: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Model / View / Controller

Clear separation between Data, Presentation & Business Logic

First – MVC Application

Then – MVC SAAS (software as a service):

Page 39: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Model = Data

Often most critical asset:

o Wealth of data which has value

o Real time / Reference data

o Sometimes unique / sometimes not

Often:

o has great value beyond the company that owns it

o AND value beyond the ways the company can effectively deliver it

Page 40: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

View = Form

This used to be the “company web site”

Now it could be your SAAS application interface

Increasingly on Android, iPhone …

Page 41: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Controller = Business Logic

Also known as the “smart stuff”

o Application logic

o Algorithms

o Secret sauce

o Housekeeping like user management / authentication / billing

Increasingly:

o Some companies allow others to apply smart stuff to their data

o Some companies apply their smart stuff to the data of others

Page 42: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

APIs enable Cloud Scale MVC

Page 43: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Impact on Their Business

Companies focus on core competence

Leverage their Ecosystem

Companies are successful when they:

o Define a clear center of gravity

o Proactively manage the interfaces with other parts of the value chain Originally

Page 44: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

APIs Make This Work: Models

Page 45: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

APIs Make This Work: Controllers

Page 46: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

APIs Make This Work: Views

Page 47: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

A Fourth Element

The Framework – The Internet Operating System

Page 48: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

A Fourth Element

Elements of the “Internet Operating System” already API Driven

The Internet Operating System Emerging

Page 49: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

To Help Keep the Web Moving Forward

Page 50: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Conclusion

The Web / Internet is rapidly becoming an open programmable computing system

Web Page Browsing will decline & Apps / APIs become the norm

In the near future will see dramatic changes in the structure of the Web & Internet

The shift from Web Pages to Apps + APIs is at the core of this change

Page 51: 10. Services, Apps and the Internet API · 2016-12-07 · A4M36AOS – Architektury orientované na služby 10. Services, Apps and the Internet API Inspired by Steven Willmott lecture

Conclusion

The Web / Internet is rapidly becoming an open programmable computing system

Web Page Browsing will decline & Apps / APIs become the norm

In the near future will see dramatic changes in the structure of the Web & Internet

The shift from Web Pages to Apps + APIs is at the core of this change

Move to the Internet of Things (Everything)