老布這麼說
Yet another bootstrap theme.
2022-12-01
Read More
2022-11-29
最近使用 SNS 搭配 SQS 的方式,來進行 upload file 的處理流程
- Amazon SNS event sources - Amazon Simple Notification Service
- Amazon SNS event destinations - Amazon Simple Notification Service
code 參考
- Code examples for Amazon SNS using AWS SDKs - Amazon Simple Notification Service
- Amazon SQS examples using SDK for Python (Boto3) - AWS SDK Code Examples 滿好的參考範例
- AWS SDK for Python (Boto3) code examples
Reference
- Walkthrough: Configuring a bucket for notifications (SNS topic or SQS queue) - Amazon Simple Storage Service
- 演練:設定儲存貯體的通知 (SNS 主題或 SQS 佇列) - Amazon Simple Storage Service
- Event-Driven Computing with Amazon SNS and AWS Compute, Storage, Database, and Networking Services | AWS Compute Blog
- 可參考 Storage services 中 Amazon S3 這段
- Receive S3 event notifications to an Amazon SQS queue that uses SSE
2022-11-23
2022-10-31
最近在針對 api gateway 的部分,進行安全性的加強
有部分的 API 只希望給內部的 service 使用,就來用看看 private api gateway 的方法囉
Reference
2022-10-27
最近將改為使用 sqs 來 trigger lambda 程式,為之記錄
主要是將 events 改為是用聽 sqs event
有 fanout 需求時
- 搭配 SNS 使用
- Common Amazon SNS scenarios - Amazon Simple Notification Service
- Event-driven architecture🪐. Implement the fan-out messaging pattern… | by Tirlea Ionut | AWS in Plain English
Reference
- Serverless Framework - AWS Lambda Events - SQS Queues 官方 sqs event
- AWS Lambda SQS events with Serverless Framework | by marcin piczkowski | Marcin Piczkowski | Medium
進階閱讀
2022-10-21
2022-10-21
使用 aws api-gateway 時,前面有加一層 WAF 來進行 rate limit 是一個滿好的選擇
此篇記錄 serverless framework 加上 AWS WAF 的整合方式
Tips
- 使用的 serverless plugin
Reference
- Serverless Framework: Plugins serverless plugin 說明
- Attach a WAF to API Gateway using the Serverless Framework | by Lindsey Tam | AWS Tip
- Connecting AWS WAF to API Gateway via Serverless Framework | Serverless Guru
同場加映
- 我是用 apache ab 來做 stress testing
- Artillery | Cloud-scale Testing for DevOps & SRE artillery 也可以試試看
2022-10-19
用 apache ab 來打 post API 的方式
ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 2000 http://example.com/api/v1/locations/
Reference
2022-10-17
Read More
2022-10-14
最近在看 aws cost 時,常會看到滿多沒有下 tag 的 aws resources
之前的習慣不好,都是手建的,就沒有下 tag
就找找看要如何查沒有下 tag 的 aws resources 囉