ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

[AWS DA Guru] Serverless compute Exam Tips

2021-04-16 03:32:25  阅读:231  来源: 互联网

标签:Serverless use compute Exam Gateway API Ray your Lambda


API Gateway

  • Provides an endpoint to your applications running in AWS
  • It is Serverless: Low cost and scales automatically
  • You can throttle API Gateway to prvent your application from being overloaded by too many requests.
  • Intergate with CloudWatch

 

Lambda

Lambda Versions

  • $LATEST is always the last version of code you uploaded to Lambda.
  • Use Lambda Versioning and Ailases to point to your applications to a specific version if you don't want to use $LATEST

  • If your application uses an alias, instead of $LATEST remember that it will not automatically use new code when you upload it.

 

Weighted alias

It is possible do A/B testing by using Weighted alias:

 

Lambda Concurrent Executions Limit

  • Default is 1000 per region pre second
  • TooManyRequestsExpection
  • HTTP Status Code: 429
  • Request throughput limit exceeded
  • Reserved concurrency guarantees a set number of concurrent executions are always available to a critical function.

 

Lambda an VPCs

In some cases, your Lambda need to access VPCs and Subnet.

Enable Lambda to access VPC

 

 

 

Step Functions

Provide a visual interface for serverless applications which enables you to build, and run serverless applications as a series of steps.

Each step in your application executes in order, as defined by your business logic.

The output of one step can be the input of next step.

  • It uses CloudFormation to generate whole stack. 
  • If you want to delete Stack that generated, delete it from CloudFormation

 

X-Ray

X-Ray is a tool which helps developers analyze and debug distributed applications. It allows you to troubleshoot the root cause of performance issue and error.

Provides a visualization of your application's underlying components.

Yellow color means Error... So it has error for SNS. Mainly because IAM role is not assigned. From the "Source Map" can easily see each AWS service status.

 

Integrations

  • AWS Services
  • Integrate with your Apps
  • API Calls

 

X-Ray Configuration

If you want to use X-Ray on Premise. You need to use X-Ray Daemon as well

 

Annotations

If you want to also record application specific information in th eform of key-value pairs, useannotations to add user defined key-value pairs to your X-Ray data - allow you to filter, index and search within X-Ray, eg game_name=TicTacToe, game_id=34345124212

 

Advanced API Gateay

Importing APIs into API Gateway

  1. Importing API Definition file
  2. Supported Protocols: OpenAPI suchas Swagger
  3. Create new and update Existing APIs: you can use an OpenAPI definiton file to create a new API or update an existing API.

Legacy Protocols

  1. you can configure API Gateway as a SOAP web service passthrough
  2. You can also use API Gateway transform the XML response to JSON

https://rubix.nl/how-configure-amazon-api-gateway-soap-webservice-passthrough-minutes/

 

API Gateway Caching

Mainly for improve the performance.

 

API Gateway Account Level Throttling

Prevent your API from being overwhelmed by too many requests

  • 10,000 requsts pre second
  • 5000 concurrent request
  • 429: too many reuqests

 


 

 

 

 

标签:Serverless,use,compute,Exam,Gateway,API,Ray,your,Lambda
来源: https://www.cnblogs.com/Answer1215/p/14657966.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有