loige Profile Banner
Luciano Mammino ๐• Node.js Design Patterns Profile
Luciano Mammino ๐• Node.js Design Patterns

@loige

Followers
9K
Following
35K
Media
3K
Statuses
35K

#AWS #Serverless Hero & MVP. Senior Architect @fourTheorem, author of ๐Ÿ“• https://t.co/Vhhe4G4GCN & โœ‰๏ธ https://t.co/XMK2BWythj #Nodejs, #JavaScript, #Rust ๐Ÿฆ€ & #Cloud โ˜๏ธ

eu-west-1
Joined April 2009
Don't wanna be here? Send us removal request.
@loige
Luciano Mammino ๐• Node.js Design Patterns
3 years
Node.js Design Patterns (the book ๐Ÿ“™) is currently #9 in the WebServices category and #15 in the JavaScript category on Amazon!. I am really proud of these results! ๐Ÿคฉ. Thanks to everyone who has kindly left us a review โค๏ธ.
Tweet media one
17
10
118
@loige
Luciano Mammino ๐• Node.js Design Patterns
7 days
RT @matteocollina: ๐Ÿงต At JSNation, I showed graphs that honestly left me speechless about Node.js upgrade patterns. Let me break down why I'โ€ฆ.
0
6
0
@loige
Luciano Mammino ๐• Node.js Design Patterns
10 days
RT @astuyve: NEW: AWS is rolling out a new free tier beginning July 15th!!. New accounts get $100 in credits to start and can earn $100 expโ€ฆ.
0
4
0
@loige
Luciano Mammino ๐• Node.js Design Patterns
25 days
Just made my first contribution to #Nextjs!. Itโ€™s a small docs fix, but hopefully itโ€™ll save someone a bit of time down the road: Big or small, every contribution counts. thatโ€™s the power of open source! ๐Ÿ’ช. #Nextjs #OpenSource #DevLife #JavaScript.
Tweet card summary image
github.com
Example function in App Router > Guides > Backend For Frontend > Public Endpoints should be async (since using await)
0
0
5
@loige
Luciano Mammino ๐• Node.js Design Patterns
25 days
PS: Recognize the meme that inspired our episode art? ๐Ÿ˜. Bonus points if you spot it ๐Ÿ™ƒ. #AWS #AuroraDSQL #ServerlessSQL #PostgreSQL #CloudComputing #Fastify #DrizzleORM #Lambda #DevOps #MultiRegion #CostOptimization.
0
0
1
@loige
Luciano Mammino ๐• Node.js Design Patterns
25 days
๐ŸŽง Watch the full episode:. โ–ถ๏ธ Let us know if you're trying DSQL. What's your experience so far? ๐Ÿคจ.
1
0
0
@loige
Luciano Mammino ๐• Node.js Design Patterns
25 days
๐Ÿ”น Is it right for you?. โœ… Great for greenfield and serverless-first projects.โš ๏ธ Avoid if you rely on foreign keys, triggers, or complex extensions. or if the migration cost might be too high!.
1
0
0
@loige
Luciano Mammino ๐• Node.js Design Patterns
25 days
๐Ÿ”น Cost in focus:. DSQL uses DPUs (Distributed Processing Units), but billing isโ€ฆ a bit fuzzy ๐Ÿ˜…. CloudWatch helps, and @marcbowes has a great cost estimator tool ๐Ÿ’ธ.
1
0
0
@loige
Luciano Mammino ๐• Node.js Design Patterns
25 days
๐Ÿ”น We built & tested a real app:. โžก๏ธ Lambda + Api Gateway.โžก๏ธ Fastify + Drizzle + CDK.โžก๏ธ k6 load testing.โžก๏ธ AWS X-Ray tracing. Full code + infra:
1
0
1
@loige
Luciano Mammino ๐• Node.js Design Patterns
25 days
๐Ÿ”น But itโ€™s not perfectโ€ฆ. No foreign keys, special async-only indexes, no stored procs, no support for the SERIAL type. We cover what this means for real-world apps and if you are using various Postgres tools or ORMs.
1
0
0
@loige
Luciano Mammino ๐• Node.js Design Patterns
25 days
๐Ÿ”น True serverless SQL?. DSQL delivers active-active multi-region setup with 99.999% availability, zero patching, and no manual sharding. DBA nightmares = gone (almost).
1
0
0
@loige
Luciano Mammino ๐• Node.js Design Patterns
25 days
๐Ÿš€ New AWS Bites episode!. We tried Amazon #DSQL so you donโ€™t have to (but you might want to) ๐Ÿ‘€. Luciano and Eoin put Aurora DSQL through its paces in #AWS Bites #Podcast Episode 145. ๐Ÿงต Hereโ€™s what we found:
Tweet media one
1
0
4
@loige
Luciano Mammino ๐• Node.js Design Patterns
1 month
Credit to Joe on BlueSky for reporting this!
0
0
0
@loige
Luciano Mammino ๐• Node.js Design Patterns
1 month
Using `xxd` instead, it's clear that echo only adds a `\n` at the end:. ```.echo -n "banana" | xxd.00000000: 6261 6e61 6e61ย ย ย ย ย ย ย ย ย ย ย ย ย ย banana.```.VS. ```.echo "banana" | xxd.00000000: 6261 6e61 6e61 0aย ย ย ย ย ย ย ย ย ย ย ย banana. ```.
1
0
0
@loige
Luciano Mammino ๐• Node.js Design Patterns
1 month
โŒ ERRATA:. It turns out that NUL byte doesn't really exist in the input. it's just an artefact of hexdump (or I should say "it's me, I can't read hexdump output")!.
1
0
0
@loige
Luciano Mammino ๐• Node.js Design Patterns
1 month
Hope this saves someone else 20 minutes of confused debugging ๐Ÿ˜…. And if notโ€ฆ maybe you picked up a couple of handy shell tricks along the way ๐Ÿš๐Ÿ’ก. #NodeJS #JavaScript #Hashing #Crypto #WebDev #Debugging #CLI #DevTips #LearnByDoing #TIL.
1
0
2
@loige
Luciano Mammino ๐• Node.js Design Patterns
1 month
๐Ÿ” Lesson learned:.Invisible bytes are still bytes. They might not be printable, but they are part of the input. And when hashing, every byte matters. Even a single-byte difference gives you a completely different result. Thatโ€™s not a bug, thatโ€™s the whole point!.
1
0
1
@loige
Luciano Mammino ๐• Node.js Design Patterns
1 month
Using "-n" with echo keeps the input clean, no extra bytes added!. Now with the corrected command:. $ echo -n "banana" | sha1.250e77f12a5ab6972a0895d290c4792f0a326ea8.๐Ÿ’ฅ Same hash as Node.js!. Mystery solved.
1
0
3
@loige
Luciano Mammino ๐• Node.js Design Patterns
1 month
Letโ€™s look at the bytes ๐Ÿ‘‡. $ echo "banana" | hexdump.0000000 6162 616e 616e 000a โ† includes 00 (NUL) and 0a (newline).Compare with:. $ echo -n "banana" | hexdump. 0000000 6162 616e 616e โ† clean input!.
1
0
0
@loige
Luciano Mammino ๐• Node.js Design Patterns
1 month
Turns out, echo adds a few sneaky bytes to your input: a NUL byte and a newline (\n). That tiny difference is enough to throw off your hash completely. Because hashing is exact. thatโ€™s the whole point!.
1
0
1
@loige
Luciano Mammino ๐• Node.js Design Patterns
1 month
Node.js gave me this hash:. 250e77f12a5ab6972a0895d290c4792f0a326ea8. But the terminal?. 8a1aaf746ada2a80fab03a58c91575ffe82885ac. Same string. Different hashes. What gives? ๐Ÿฅธ.
1
0
0