|
🔗 Stories, Tutorials & Articles |
|
|
|
AWS Lambda Layers Best Practices |
|
|
This blog post discusses AWS Lambda layers and provides best practices for their use.Ran Isenberg explains that Lambda layers can reduce deployment time and increase production efficiency, but they are often misunderstood and underutilized. The post covers the basics of Lambda layers, their pros and cons, and recommended best practices. Ran recommends building Lambda layers in the same repository as the code that uses them to optimize deployment time and reduce complexity. The post also includes tips for using multiple layers, and emphasizes the importance of security when using Lambda layers. |
|
|
|
|
|
|
Why Use Message Brokers ✅ |
|
|
Message brokers are useful for several reasons, including:- reducing back pressure from downstream services,
- preventing data loss by offering retry and replay functionality,
- allowing for parallel processing through pub/sub patterns,
- reducing knowledge of systems by decoupling architecture,
- and providing extra resources such as books and messaging patterns for further learning.
Message brokers can improve system reliability and scalability while also simplifying architecture design. |
|
|
|
|
|
|
|
Don't be fooled by serverless |
|
|
An blog post by creator of Ruby on Rails: Don't be swayed by the hype around serverless computing. While it can be a cost-effective solution for sporadic function executions, it's a bad deal for those needing the constant performance of an entire computer. Serverless setups can also lead to lock-in issues and hinder future migration. Remember that cloud computing is best suited for businesses with varying usage patterns or smaller operations. |
|
|
|
|
|
|
How we built an open-source SEO tool using Workers, D1, and Queues |
|
|
The blog post describes how Cloudflare used their developer tools, D1andQueues, to build an open-source SEO tool called Prospector. Prospector allows Cloudflare's SEO experts to monitor their blog and marketing site for specific keywords and receive notifications via email when a keyword is matched on a page. The tool uses Cloudflare Workers as the user-facing API, D1 to store and retrieve data in real-time, and Queues to handle the fetching of all URLs and the notification process. The blog post also highlights the use of Hono, an Express-style API for Workers, to quickly map out a REST API in just a few lines of code, and the improved TypeScript bindings for Workers, which make it easy to define the types for environment variables and use them in the application. |
|
|
|
|
|
|
AWS Lambdas - Python vs Rust. Performance and Cost Savings. ✅ |
|
|
The author of the article is exploring the possibility of using Rust instead of Python for AWS Lambdain order to achieve cost savings and better performance. They provide a real-life use case of converting fixed-width compressed flat files to tab-delimited files using an AWS Lambda triggered by an S3 bucket. The author implements the solution in Python, which they find to be simple and easy to reason about, but it runs slowly and uses a lot of memory. They then write the same solution in Rust, which they find to be faster and use less memory. However, the Rust code is more verbose and has more lines of code, although this may be due to the author's relative inexperience with Rust. |
|
|
|
|
|