# **Focus: Managed services** --- * Lambda * EBS * ECS VS EKS * SQS and SNS * Dev tools: * Mobile Services ![](https://i.imgur.com/6zFtWil.png) --------------------------------------------------------------------- ### The fundamental notion of software refactoring is to change application code for the better. ![](https://i.imgur.com/MuOF8DP.png) * Take monolithic apps and convert each service into microservices Benifits Microservices (Service oriented Architecture) * Agility * Technology Freedom * Flexible scaling * Reusable code * Easy Development * Resilience Best Pratices * Chaning components withut breaking them * Use a simple API. * Servers should be stateless * it should be seen as interchangeable members of a group * focus on determining if you have enough capacity to handle your workload. * Adding/removing instances with auto scaling is much easier with a stateless approch. ![](https://i.imgur.com/oMRnYZv.png) **From Microservices** ![](https://i.imgur.com/MuOF8DP.png) * servers(orange boxes) **To Serverlesss** ![](https://i.imgur.com/2HIaCfX.png) * Serverless applications are ones that don't require you to provision or manage any servers. Architectural Evolution **EC2 --> ECS --> Lambda** EC2 -> VM ECS -> (Container) Task Lambda -> Function EC2 Pricing * As of last week a reservered instances are legacy * Reserved instances are turned into savings plan (kinda like paying monthly service fee)