api management and internet of things

25
API Management and Internet of Things Sumedha Rubasinghe Director, API Architecture

Upload: wso2

Post on 08-Sep-2014

573 views

Category:

Technology


1 download

DESCRIPTION

-

TRANSCRIPT

Page 1: API Management and Internet of Things

API Managementand

Internet of Things

Sumedha RubasingheDirector, API Architecture

Page 2: API Management and Internet of Things

**

Things, Devices

Source: http://www.control4.com/blog/2014/03/the-internet-of-things-and-the-connected-home

Page 3: API Management and Internet of Things

**

APIsSource : http://blog.programmableweb.com/2011/05/25/who-belongs-to-the-api-billionaires-club/

Source : http://blog.programmableweb.com/2011/05/25/who-belongs-to-the-api-billionaires-club/

Page 4: API Management and Internet of Things

**

Anatomy of a Device

● Piece of hardware● Built for a purpose● Capable of a limited functionality● Control interface● Input/output● Power

Page 5: API Management and Internet of Things

**

Apps & APIs

Page 6: API Management and Internet of Things

**

Drivers for API Economy

● Mobile Applications● Internal Innovation● Unleash External Developer Innovation● New Channels● New Business Models

Page 7: API Management and Internet of Things

**

API Management

● Dumb API -> Intelligent API● Authentication & Authorization○ Subscription Management○ Access Provisioning

● How to control access?○ Throttling

● Monitoring & SLA

Page 8: API Management and Internet of Things

**

Devices as APIs

● will provide more creative combinations of Apps

Page 9: API Management and Internet of Things

**

Anatomy of a Device (Functional)

● Functional Capabilities● Administration Capabilities● Monitoring Capabilities

Page 10: API Management and Internet of Things

**

Need of standard access layer (API)

● Heterogeneous Devices● In large numbers too● Proprietary ...○ Protocols○ Access Control Mechanisms○ Data Models

Page 11: API Management and Internet of Things

**

Modeling Device capabilities as HTTP Resources● Temperature Sensor

○ http://{ip}/{locationid}/sensors/temperature1 - GET

● Motor○ http://{ip}/{locationid}/actuators/motor1/rotate/{turns}/

{direction} - GET○ http://{ip}/{locationid}/actuators/motor1/status - GET

Page 12: API Management and Internet of Things

**

Using OAuth2 to Authorize Device Access● OAuth2● Token per Sensor endpoint● Token provisioning● Revocation/Refreshing

Page 13: API Management and Internet of Things

**

API should be ‘Managed’

● Why?○ Exposing raw device○ With no control

● Managed API○ proper access control○ subscription capabilities

Page 14: API Management and Internet of Things

**

Devices need more services..

● Throttling● Caching● Request Routing● Buffering● Stats collection & monitoring● Alerting● Decision Making

Page 15: API Management and Internet of Things

**

API Management @ the edge

● More closer to where device is● Or inside device itself● Several patterns

Page 16: API Management and Internet of Things

**

Pattern #1

Device

Single device, having all API Management capabilities.

Page 17: API Management and Internet of Things

**

Pattern #2

Authorization Manager

Device

1

2

Page 18: API Management and Internet of Things

**

Pattern #3

Apps End Users Devices

Device Gateway/Authorization

Device

1

2

4

3

Page 19: API Management and Internet of Things

**

Pattern #4

Apps End Users Devices

DeviceGateway

Authorization Manager

Device

Stats Collection & Processing

1

2

3

6

5

4

Page 20: API Management and Internet of Things

**

Pattern #5

Apps End Users Devices

DeviceGateway

Mediation/Routing

Authorization Manager

Device

Stats Collection & Processing

1

2

3

4

8

7

6

5

Page 21: API Management and Internet of Things

**

Pattern #6Apps End Users Devices

DeviceGateway

Mediation/Routing

Authorization Manager

MessageQueue

Device

Stats Collection & Processing

1

2

3

4

5

9

8

7

6

10

Page 22: API Management and Internet of Things

**

Pattern #7Apps End Users Devices

DeviceGateway

Mediation/Routing

Authorization Manager

MessageQueue

Device

Identity Mgt

Stats Collection

& Processing

DeviceManagement

Device Device Device

Register

1

2

3

4

5

9

8

7

6

10

RegisterRegister

Register

Page 23: API Management and Internet of Things

**

WSO2 Platform Support

● API Manager● Identity Server● Business Activity Monitor● Complex Event Processor● Enterprise Mobility Manager● Enterprise Service Bus● Support for Cloud

Page 24: API Management and Internet of Things

**

Barcelona Digital - Case Study

Page 25: API Management and Internet of Things

Contact us !