Slide 1

Slide 1 text

Building APIs as Micro- services Sokari, Tams

Slide 2

Slide 2 text

What are Micro-Services?

Slide 3

Slide 3 text

Micro-services are simply component units of a larger service.

Slide 4

Slide 4 text

A Sound System with different components Example Illustration

Slide 5

Slide 5 text

If we wish to be technical, Micro-services are a software architecture style in which complex apps are composed of small independent processes communicating with each other. Micro-services implement the much talked about Single Responsibility Principle (SRP).

Slide 6

Slide 6 text

Why Micro-services?

Slide 7

Slide 7 text

Pros of Micro-services • Ease of Development. • Ease of Deployment. • Scalability. • Flexibility with Choice of Tools. • Ease of Maintenance.

Slide 8

Slide 8 text

Cons of Micro-services • Costs more to start up. • Increased number of requests. • Takes more memory.

Slide 9

Slide 9 text

How we build Micro-service APIs

Slide 10

Slide 10 text

Building APIs in the Micro-Service pattern requires two main layers: 1. The Service/Resource APIs. 2. The Gateway API.

Slide 11

Slide 11 text

Micro-services API structure

Slide 12

Slide 12 text

When do we build Micro- Service APIs?

Slide 13

Slide 13 text

• Micro-Service APIs can be used when you have a large API. • If you envision a large API, it is best to start by building in the Micro-services pattern.

Slide 14

Slide 14 text

Note-Worthy • Service APIs may or may not be made public for consumption. • Cross Origin Resource Sharing (CORS) is a means of limiting access. • It is best practices to limit access to the Gateway API when building APIs in the Micro-service Pattern.

Slide 15

Slide 15 text

Questions???

Slide 16

Slide 16 text

Resources • www.microservices.io • Software Architecture Patterns: http:// www.oreilly.com/programming/free/files/software- architecture-patterns.pdf