Module 14

Oonuh wan fi deal wit nuh serva

Using Microservices instead of full servers is much more efficient in regards to management and cost

Benefits:

  • No server management

  • Continuous scaling

  • Pay-for-value services

  • Built-in high availability

  • Suitable for event-driven and microservice architectures

AWS Serverless services

Example: Serverless Three-Tier Design

Microservices

Microservices are autonomous and specialized in their field

Example of breaking down a big service into microservices

Lambda

  • Simply compute code for a simple task. Same thing as Azure Functions

  • Can be event-driven and even layerd

AWS Step Functions

  • Is a serverless orchestration service to manage workflows between multiple AWS services

  • Has state machines (workflows) that contain a series of event-driven states (steps)

  • Manages each workflow’s state, checkpoints, and restarts

  • Provides error handling capability

  • Can transfer data between states\

  • States can filter and manipulate data

Just like python story games. Depending on the the action/result different functions will be executed. All start with the initial task

Each one of these steps can be a Lambda function

Use cases

Amazon API Gateway

  • Provides the ability to create, publish, and maintain REST, HTTP, and WebSocket APIs

  • Configurable traffic management, authorization, and resource access control

  • Provides access to AWS services and publicly accessible endpoints

  • Hosts multiple versions and stages of an application’s API

  • Establishes client usage plans to monetize and control APIs •Can cache common responses

Benefits

API Types

Rest API's
HTTP API's
WebSocket API's

Collection of routes and methods

Collection of routes and methods

Collection of WebSocket routes

For apps that require API management features, such as usage plans, payload validation, private API endpoints, and resource policies

For Microservices

For real-time applications

Supports cross-origin resource sharing (CORS

Suppors CORS

Establishes a session between client and backend services

Stateless

Lower latency and lower cost than REST APIs

API management features are validate payload schema and data transformations

Stateless

Stateful

API Gateway Backend Integration

How a traditional application can be made better with Microservices and API Gateway

Shopping Cart

Payments

Delivery

Last updated

Was this helpful?