21
©2015 Apigee Corp. All Rights Reserved. 1 ARE YOUR MICROSERVICES

Are Your Microservices Naked and Afraid?

  • Upload
    pivotal

  • View
    220

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved. 1

ARE YOUR MICROSERVICES

Page 2: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

First a Story……

2

Page 3: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Microservices on the Internet

3

Page 4: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved. 4

?

Page 5: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved. 5

Amazon Internal Datacenter circa 2008

Page 6: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

SOLUTION :

Zero-Trust Microservices

6

Page 7: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

5 steps to make this better

NO CODE CHANGES NECESSARY !!

7

Page 8: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Step 1: Setting up a Pass-Through proxies

8

API Gateway

Microservice

Microservice

Page 9: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Step 2: Stay on the lookout

9

Page 10: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Step 3: Protect your backend

10

= BAD

Page 11: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Micro-circle of doom

11

Spike in Traffic

100% CPU Utilization

Poor response time

Users Press Refresh /Retry Logic

Page 12: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Spike Arrest Filtering

12

Spike Arrest Filter

Page 13: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Step 4: Catch bad API bots

13

Page 14: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Solution = Machine Learning + Crowdsourcing

14

Company 1Microservice

sCompany 2Microservice

s

Traffic Analytics with Machine Learning

Page 15: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Step 5 – Cache it Don’t Waste it

15

Page 16: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Joint probability governs microservice behavior

16

# of App Server calls3

Availability:97%

Assume each service has 99% availability

Page 17: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Caching the Edge = Instant Cost Reduction & Availability

17

Cache# of App Server calls

1.5 vs 3

Availability:98.5% vs 97%

50% Cache hit rate

Page 18: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Cache Analytics

18

Page 19: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Caching all layers = Instant Cost Reduction & Availability

19

Cache

# of App Server calls1 vs 3

Availability:99.25% vs 97%

50% Cache hit rate Cache

Cache

Page 20: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved.

Recap of Benefits

1. Proxy with no code changes2. Find easy opportunities to improve

performance3. Guard against traffic spikes4. Guard against bots5. Cache to improve availability + costs

20

Page 21: Are Your Microservices Naked and Afraid?

©2015 Apigee Corp. All Rights Reserved. 21

COME BY APIGEE BOOTH TO LEARN MORE