David Behroozi's Avatar

David Behroozi

@rootothez.bsky.social

Solo developer. Doing the impossible; faster. https://speedrun.cc AWS Community Builder.

611 Followers  |  123 Following  |  280 Posts  |  Joined: 22.10.2024
Posts Following

Posts by David Behroozi (@rootothez.bsky.social)

For example, if x-forwarded-for is set to 127.0.0.1,205.33.27.32 you get 127.0.0.1 at Lambda. Lambda doesn't seem to mess with other headers that are comma separated, just x-forwarded-for.

26.02.2026 16:19 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I discovered that if you use Lambda furls, the x-forwarded-for header is truncated to the leftmost value. If you front your furl with CloudFront, the ip in that header is spoofable. CloudFront appends the viewer ip to the value of x-forwarded-for. Workaround is: github.com/aws-samples/...

26.02.2026 16:19 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
2012553 - Firefox reliably negotiates HTTP/3 on 0 of 7 H3-capable sites on cold navigations (1 with DoH), while Chrome negotiates 7 of 7 NEW (nobody) in Core - Networking: HTTP. Last updated 2026-02-12.

TIL I was still using http 1.1 to connect to my api which supported http3. Because http3 is still kind of broken in Firefox: bugzilla.mozilla.org/show_bug.cgi... and when you enable http3 in CloudFront using the CDK, it disables http2. github.com/aws/aws-cdk/...

25.02.2026 20:24 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

TIL you can get edge location in your CloudFront Functions. docs.aws.amazon.com/AmazonCloudF...

21.02.2026 19:06 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Hello darkness my old friend. I just updated to JQuery 4.0.0. Ready for 10 more years of $.

18.02.2026 18:03 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Just turned it on, TIL too, thanks!

18.02.2026 17:42 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

The places where nexus share breaks the thread into posts always seems unnatural. Consider breaking it on sentence boundaries or something more organic.

12.02.2026 15:47 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Fwiw, when I was in this situation, Fi support did some things but nothing changed and ultimately I had to wait 7 days before I was able to resubscribe. I didn't lose my storage however, it was still there when I resubscribed.

11.02.2026 19:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

They really do need to do this instead of letting Fi takeover the subscription. I causes problems like when you downgrade Fi and lose a benefit, you can't resubscribe (i.e. Google One) for 7 days until Fi releases the hold. And while you can't resubscribe they tell you you will lose your storage!

11.02.2026 17:28 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

PSA: There is a performance penalty when using named exports with ESM import vs. require on built-in node modules. This is why the AWS JavaScript V3 SDK has 50 ms slower Lambda coldstarts on Node 22+. Some notes here: github.com/aws/aws-sdk-...

10.02.2026 18:57 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Look, the plating and bread choice leaves room for improvement. But the flavor of my latest Persian-American cuisine; the sumac avocado toast slaps.

03.02.2026 16:45 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

After many exasperated console.log's I looked at the docs and discovered CloudFront functions don't run on responses with a status code >= 400. So my edge metrics only work on successful requests. docs.aws.amazon.com/AmazonCloudF...

24.01.2026 15:54 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

Seeing some Dr. Suess bird in my latte this morning

23.01.2026 16:13 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

When I tried in us-east-2 I got an error that it wasn't enabled for my account. Both via cloudformation and the console.

19.01.2026 19:11 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Aaron's foray into the fast and furious franchise.

14.01.2026 21:37 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
2025 year in review - Speedrun A fun look back on 2025

Ode to 2025. My pithy year in review. "May your 2026 involve some hand-written code and may it compile without errors." speedrun.nobackspacecrew.com/blog/2026/01...

09.01.2026 23:13 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

It's important to know someone in London. Eventually you'll need their help unsubscribing from Domino's UK marketing because the US is region blocked πŸ˜‚.

09.01.2026 18:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

I swear AWS had some hero image on a docs site with this hotel carpet vibe once.

05.01.2026 22:03 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Specification: Embedded metric format - Amazon CloudWatch Explains the format of the specification for CloudWatch embedded metric format.

The embedded metrics format allows me to combine metrics with metadata. I mainly use metrics and request logs only, never traces so it's a good encapsulation of what I need: docs.aws.amazon.com/AmazonCloudW...

05.01.2026 17:16 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Rerun the benchmark? Β· Issue #1166 Β· awslabs/llrt Is it possible to rerun the benchmark with the latest release? Since January 2024, the llrt binaries have grown 2+ MB. I've been doing some coldstart benchmarking to compare LLRT standard sdk with ...

E2E can vary across runtimes because there is overhead not measured in init duration. I.e. pulling the bits from s3 is not included. So something that has 61ms init could actually be 225ms to the client. See llrt/node comparison here: github.com/awslabs/llrt...

03.01.2026 21:45 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I'm using LLRT with hono for my REST api. For SSR, I do it manually (using template literals). I don't have an immediate need for this, but always appreciate new fast ways of doing things. Have you measured E2E time from the client in addition to Init Duration?

03.01.2026 17:11 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Took a quick break from the curiosities of London to have a curry and a pint with Cloudflare's lord of logs and corduroy trousers @ankcorn.dev

31.12.2025 16:35 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

A short story:

1. This showed up in the group chat
2. Replied with "Nicolas UNCAGED?"
3. Checked El goog to see if this pun was a world first
4. Alas

28.12.2025 13:08 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Logging for scale - Speedrun Using request logs to understand your service at scale

That way you can validate the logs have the necessary fields to answer operational questions. There's lots of material out there on wide events: speedrun.nobackspacecrew.com/blog/2023/09...

22.12.2025 04:33 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

So the wide events that Boris discusses largely have that context (with error_code remediation described in an easily editable doc like a wiki). If your devs aren't giving the context, you might request they submit sample logs for successful and failed requests during qa/code review.

22.12.2025 04:33 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Boris is still at it and still gets it. Logging properly is on you and rn your: loggingsucks.com

21.12.2025 21:00 β€” πŸ‘ 15    πŸ” 4    πŸ’¬ 1    πŸ“Œ 1

The answer to why account based endpoints didn't reduce the blast radius of the DynamoDb Oct event was in DAT458. They don't point to cells yet, they still point to the regional endpointπŸ€¦β€β™‚οΈ. youtu.be/YZUNNzLDWb8?...

17.12.2025 07:42 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Being able to deeplink would be useful too, like cloudwatch insights.

14.12.2025 20:39 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

I'm relishing using AI to click the bait for me.

09.12.2025 19:41 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Clearly the old spice product marketing team was cut from the same cloth as me.

08.12.2025 20:15 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0