microservices

35
Microservices Mateus Prado Systems Engineer Walmart.com LATAM

Upload: mateus-prado

Post on 17-Jul-2015

131 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Microservices

Microservices

Mateus PradoSystems Engineer

Walmart.com LATAM

Page 2: Microservices

$ whoami

Hi, i’m Mateus,Software and infrastructure architect.

I like Java, Ruby, C, Python, Cloud and Unix.

Page 3: Microservices

Frontend components Business

Data layer

Messaging

Common application architecture

L B

Page 4: Microservices

Easy to deploy

Page 5: Microservices

New devs

Page 6: Microservices

Continuous Delivery

Page 7: Microservices

Try new technologies

Page 8: Microservices

Scalability

Page 9: Microservices

Monolithic

Page 10: Microservices

Microservices

Page 11: Microservices

The Unix Philosophy

Page 12: Microservices

The Unix Philosophy

Page 13: Microservices

Characteristics of

Microservices

Page 14: Microservices

Small, single responsibility

Fit in your head

“If a class is bigger than my head then it is too big”

You can throw them away - rewrite, maintain

Easy to test.

Page 15: Microservices

Resilience

Yes, they will fail, inevitably happen when least desired.

Failures test in production?

Yes.

If you do not find, your customer will.

Deploy automation, continuous delivery…

Page 16: Microservices

Scale

…what you need to scale.

Run on multiple regions.

Page 17: Microservices

Many technologies

Use Ruby for GET /users/login

Use Java for POST /checkout

Use C for GET /metrics/time-first-byte

Use .Net for GET /about-us :)

Try languages, db, queue

Page 18: Microservices

–Johnny Appleseed

“Type a quote here.”

MICROSERVERMICROSERVICES

Page 19: Microservices

MicroservERS

Page 20: Microservices
Page 21: Microservices

Forever

Page 22: Microservices

sysadmin troop

Page 23: Microservices

...

Page 24: Microservices

Do not fear

Page 25: Microservices

Jenkins

Chef

Capistrano

Puppet

Rundeck

own scripts

Automate all the things

Page 26: Microservices

Too many log files

Page 27: Microservices

Log aggregation

Page 28: Microservices

Application

NFS to /var/www

VM0 VM2 VM3

Storage volumes

NFS to /var/lib/rabbitmq/mnesia

Page 29: Microservices

S3

Distributed storages

Page 30: Microservices

Ah, so, look well…

Monitoring

Page 31: Microservices

Email

SMS

Twitter, Facebook

Smoke

own remediation scripts.

efficient

Notifications and auto-remediation

Page 32: Microservices

Cloud

Page 33: Microservices

Homemade

Page 34: Microservices

"They need to play." - lorieri

Page 35: Microservices

Q&A