Automatically translated.View original post

Don't let there be another second.

On September 12, 2025, Cloudflare experienced a headache because its dashboard system and API had crashed for over an hour, not due to an external attack, but purely a bug that the dev team wrote.

.

The problem comes from the wrong way to use the React hook (useEffect). Usually, useEffect works when the specified conditions change, but the team pushes constantly changing variables into the dependency array, resulting in the function being recursed non-stop. Every time the dashboard rendering page is like firing an API into the Tenant Service API, which should only run once per page load. Finally, the API cannot be loaded. It spreads to authentication and causes other APIs to collapse.

.

At first, the team tried to solve the problem by adding resources to the Tenant API, but it didn't help because the request kept coming in and reverting the wrong code until finally having to pry the global rate limit to reduce the system load to recover the situation.

.

Tom Lianza, vice president of engineering at Cloudflare, acknowledged that this is a classic example of unguarded useEffect, although the React document itself warns against this, so it turned out to be an expensive lesson, and it also reinforces that even though it's a company known for global DDoS protection, it still misses its own DDoS.

.

Source: theregister

# IT News # Includes IT matters # Cough to know # IT

2025/9/30 Edited to

... Read moreเหตุการณ์ที่ Cloudflare ประสบพบปัญหาระบบล่มครั้งใหญ่จากบั๊กการเขียนโค้ด useEffect ของ React เป็นตัวอย่างที่ชัดเจนว่าการดูแลและทดสอบโค้ดอย่างระมัดระวังเป็นสิ่งสำคัญมากในวงการเทคโนโลยีสมัยใหม่ ในเชิงเทคนิคแล้ว useEffect เป็น hook สำคัญที่ช่วยให้สามารถจัดการผลกระทบ (side effects) ในแอปพลิเคชัน React ได้ เช่น การเรียกข้อมูลจาก API หรือการตั้งค่าบางอย่าง เมื่อใช้ผิดวิธี เช่น ใส่ dependency ที่เปลี่ยนแปลงบ่อย ๆ ลงใน dependency array ฟังก์ชันจะถูกเรียกซ้ำไม่หยุด ทำให้ระบบถูกยิง request อย่างไม่หยุดยั้ง เหมือนเกิด API flood attack ภายในระบบเอง ซึ่งครั้งนี้เรียกว่าเป็น DDoS attack ที่มาจากภายใน (self-inflicted DDoS) สำหรับผู้พัฒนาระบบ การเข้าใจอย่างลึกซึ้งเกี่ยวกับการทำงานของ hook แต่ละตัวรวมถึง lifecycle ของ React component เป็นเรื่องจำเป็น เพื่อหลีกเลี่ยงปัญหาการทำงานซ้ำซ้อน นอกจากนี้ การใช้เครื่องมือ monitoring และ rate limiting อย่างเหมาะสมก็เป็นแนวทางที่ช่วยลดความเสี่ยงที่ระบบจะถูกโจมตี หรือ overloaded โดย request ใด ๆ จากกรณีนี้ เห็นได้ชัดว่าบริษัทที่มีชื่อเสียงด้านความปลอดภัยและป้องกัน DDoS อย่าง Cloudflare ยังไม่อาจรอดพ้นจากข้อผิดพลาดที่เกิดจากทีมพัฒนาของตนเอง ซึ่งเป็นบทเรียนสำคัญที่องค์กรอื่น ๆ ต้องให้ความสำคัญกับการทดสอบโค้ด (code review) และการศึกษาเอกสารทางเทคนิคอย่างเคร่งครัด สุดท้าย ปัญหา API ล่มครั้งนี้ยังชี้ให้เห็นถึงความสำคัญของ global rate limit ที่เป็นเหมือนเกราะป้องกันขั้นสุดท้าย ซึ่งช่วยลดโหลดระบบและฟื้นฟูสถานการณ์ให้กลับสู่สถานะปกติเร็วขึ้นผู้พัฒนาจึงควรวางแผนมาตรการเหล่านี้ควบคู่ไปกับการพัฒนาระบบ เพื่อป้องกันเหตุการณ์ซ้ำรอยและรักษาเสถียรภาพของบริการให้ดีที่สุด

Related posts

Let’s Learn a New Language This Year!!
Ok girlies, this is the year that we are actually going to do what we've been saying we're gonna do... We are gonna learn a new language!! I don't know about you but I have been wanting to learn a second language for as long as I can remember! And this is the year that I do it! Let m
CompSkyy

CompSkyy

1910 likes

Let’s Talk: That Itchy Feeling Down There
What many girls don’t realize is — the fabric of your underwear can make a huge difference. Synthetic materials, like polyester or nylon blends, might look cute, but they trap heat and moisture, creating the perfect home for bacteria to thrive. That can lead to itchiness, odor, even infection
FEELITS_SilkPanties

FEELITS_SilkPanties

1028 likes

A MacBook Pro displays the Roam Research app with a graph overview of interconnected notes, including 'Daily Notes' and 'Morning Review'. The screen is titled 'SECOND BRAIN APPS To organise your digital life', with a white rabbit figurine in the background.
The Roam Research app interface is shown, highlighting its bidirectional linking system with a 'Graph Overview' and 'Daily Notes'. The image also features the Roam Mobile app icon and text describing its focus on connecting ideas.
The Obsidian app interface is displayed, showcasing its powerful linking system with a 'Graph of Writing is telepathy' and a note titled 'Writing is telepathy'. The image also includes the Obsidian app icon and a description of its note-connecting capabilities.
Second Brain Apps to organise your digital life
Just think about having a second brain to help you remember important stuff like notes, ideas, and tasks, so you can think more freely. The main idea of this "second brain" is to let your real brain focus on being creative and smart, instead of worrying about remembering and organizing e
Reverelia

Reverelia

402 likes

Another Lazy Girl Dinner ❤️
We call this goulash in the south but I’ve heard it called chili Mac and chop suey. What do you call it?? #easydinnerrecipe #quickdinner #cookingathome #lazygirldinner
Farm & Table

Farm & Table

22.8K likes

What’s in my hospital bag as a SECONDTIME mama🤍👶🏻
As a second time, mom, there are essentials that I think that every month should I post postpartum and here are a few. I believe that every hospital gives some postpartum essentials to mom’s. However, I left do I bring my own to to be prepared and to make sure I have everything that I need.
marycheyenne🕊️

marycheyenne🕊️

75 likes

Let’s get real here for a second ❗️❗️
Alrighty, let’s get a little vulnerable.. Just like most of you who deal with our sweet friend (eczema 🙄), I’ve had eczema since I was a little one. My skin is sensitive but my eczema has never been bad (thankfully 🙌🏾) but as of late, I had a little area become dryer than the rest of skin. I kno, i
TiahAuB

TiahAuB

97 likes

I can't let him go.....help
I'm 19. Here's a little short story of me and his story it's called: A Love That Felt Like Forever By Alyssa Hines It started with a random add on Snapchat on April 1st—a moment that would unknowingly alter two lives forever. Tokyo (not his real name) and I met with the kind of ea
Alyssa Hines

Alyssa Hines

7 likes

why I let my cats sleep in my bed with me.
#storytime #lemon8contest Many of you loved my cat story about why I got my second cat. I thought it would be great to tell another story about my little angels from above. The sweet boy you see in the photo above is my little one Ziggy. If you read my other cat story, you know my mom f
Hailey Guldin

Hailey Guldin

51 likes

What connects us to one another.
#habit #respect #socials #selfimprovement #selfgrowth
leslieharvin377

leslieharvin377

6 likes

A pregnant woman takes a mirror selfie, holding her baby bump. Text overlay reads 'Let's Talk Gender Disappointment' with pink female and blue male gender symbols, reflecting the article's theme.
A pregnant woman takes a mirror selfie, holding her baby bump. Text overlay expresses her dream of being a girl mom and her genuine upset about her second baby being a boy.
A pregnant woman takes a mirror selfie, holding her baby bump. Text overlay discusses her feeling that her dream of having a daughter was shattered and her uncertainty about having more children.
let’s talk about GENDER DISAPPOINTMENT🥲
hello ◡̈ I think there's a lot of negativity thrown at people for experiencing gender disappointment when discovering their baby's gender, and I find that so silly. It's perfectly normal to feel a little upset if you dreamed of having a daughter and end up with a son, or vice versa.
mom | sierra ◡̈

mom | sierra ◡̈

197 likes

Can I Be Honest With You For a Second?
You’re not scared to start. You’re just comfortable staying the same. You say you want to make money online. You say you want a side hustle. You say you’re ready to change your situation. But when it’s time to actually move… You pause. You overthink. You tell yourself “maybe next week
Kelly Hare

Kelly Hare

7 likes

Don’t Let Your Fears Hold You Back
Okay first of all, b-roll waits for no one. Not even sharkira the robot vac. And second of all, let’s be real. I don’t LOVE every minute of my life. I’m a mom of 2 littles who runs a 6 figure business from home with no outside help. Life is HARD and I have a little menty b at least 1-2x a month.
TannerClemensCo

TannerClemensCo

10 likes

Ways to Turn Down A Second Date
Not all dates lead to a second one. Instead of ghosting, it's better to be honest and polite when declining further dates. Ghosting is not always the answer. If someone expresses interest in another date, it's respectful to provide a clear response. However, if the vibe was off and neither
Milaidy🫧🌺🍕

Milaidy🫧🌺🍕

66 likes

A green play table filled with sand, dirt, and various toys, including an orange bucket and a red shovel. A text overlay reads: 'The 30 second rule for toddler parents'.
A green play table with sand and toys, featuring text that advises parents to count 30 seconds before repeating a question to a child, asking 'Why?' with a yellow arrow.
A green play table with sand and toys, overlaid with text explaining that a child's brain processes information slower, requiring more time to hear, process, consider, and provide a response.
30 Second Rule for Toddler Parents
I can’t remember where I read this, but it made so much sense to me when I did. I started trying it out and realized 2 things: 1. 30 seconds can feel like forever! 2. My child almost always responded when I slowed down and gave her more time. Something to keep in mind: Another thing I noticed
Kris

Kris

182 likes

let me help you clear your skin sis🫶🏾
i love skin & everything about it! that’s why i wanna help yall who struggle with ingrowns & darkspots. i personally have had my struggle moments where it seemed like everytime i looked down i had a new ingrown😭😭 but now that i have a set regimen i maybe get 1 or 2 if any between waxes &
justbree🩷

justbree🩷

13 likes

A hand holds a partially open book, with a bookshelf in the background. Text overlay reads "IDK HOW I FEEL... If He Had Been With Me Sequel," expressing uncertainty about the book.
A hand holds the book "If Only I Had Told Her" by Laura Nowlin, featuring a red rose on its cover. Text describes the book's plot from Finn's perspective, detailing his unexpressed love for Autumn.
A hand holds two books: "If He Had Been With Me" and its sequel "If Only I Had Told Her." Text expresses the reader's excitement for the sequel from Finn's POV, but ultimately feeling let down.
I Don’t Know How I Feel…
I was a big fan of If He Had Been With Me by Laura Nowlin … minus the tiara (if you know you know). When I heard there was going to be a second book from Finny’s point of view, I was so excited and fully expected my heart to be broken again. I didn’t make it very far into If Only I Had Told
Khloemyers

Khloemyers

34 likes

Stop Working Second Jobs Just to Afford the Holida
Because I used to think hustle was the only solution too. Work more hours → earn more money → barely stay afloat. But all it really did was give me less time with the people I was working for. And I see so many parents doing the same thing — running delivery apps after bedtime taking weekend
DS 💰 Making Money Online

DS 💰 Making Money Online

1 like

and you thought there were only 10
1. To know there is a God. (Exodus 20:2) 2. To have not other gods. (Exodus 20:3) 3. To know that He is one. (Deuteronomy 6:4) 4. To love Him. (Deuteronomy 6:5) 5. To fear Him. (Deuteronomy 10:20) 6. To sanctify His Name. (Leviticus 22:32) 7. Not to profane His Name. (Levit
TheVioletWitch

TheVioletWitch

12 likes

We let it end here
Friday Rest We let it end here. Not every thought needs revisiting. Not every moment needs to be analyzed again. Some things can be released without a second round, without another explanation, without carrying it into tomorrow We don’t have to keep holding what already passed through us.
bloomingmoore

bloomingmoore

2 likes

Let’s Talk: That Itchy Feeling Down There
What many girls don’t realize is — the fabric of your underwear can make a huge difference. Synthetic materials, like polyester or nylon blends, might look cute, but they trap heat and moisture, creating the perfect home for bacteria to thrive. That can lead to itchiness, odor, even infection
FEELITS_SilkPanties

FEELITS_SilkPanties

4 likes

A person's hand, wearing a gold ring, gently holds a baby dressed in a light blue ribbed outfit. The baby's head is partially visible. The image has text overlay "Baby Products I use EVERYDAY" and a Lemon8 watermark.
A hand holds a light beige portable sound machine with a circular design and a ring for attachment. The text overlay identifies it as a "Hatch Portable Sound Machine."
A first-person view shows a hand pushing a beige stroller with a baby inside, on a paved path in a park. The text overlay identifies it as a "Zoe Journey Stroller."
Products I use everyday as a Second Time Mom 🧸☁️✨
As a second time mama, I have used A LOT of baby products and only the best of the best have made the cut! So let’s talk about 4 products I use literally everyday ✨ Hatch Rest Go Portable Sound Machine I didn’t have this with my first but I am LOVING it for my second! My baby boy loves his whi
Mama Chels

Mama Chels

195 likes

A collection of medical supplies including skin cleanser, alcohol prep pads, petroleum jelly, syringes, needles, and a pink card stating "SMOOTH SKIN IS HEALTHY SKIN," laid out on a white surface, suggesting preparation for a medical or aesthetic procedure.
A "GLP-1 Double Check Tool" form with handwritten details about GLP-1 medications, alongside a syringe and a vial of Semaglutide, indicating preparation for a medication injection.
An aesthetic skin treatment machine with a screen displaying "Manifold Clean" and various solution bottles, including "GLYSAL PREP CLO," "RINSEAWAY," "Activ-4 Cleanse," and "Antiox+," used for facial procedures.
Survive Don’t Thrive: Non-Negotiables as a Nurse ✨
No matter how long I have been a nurse, some things in nursing are just non-negotiable — no matter what specialty you’re in 🩺✨. Whether you’re running around at the bedside or finessing injections as an aesthetic nurse, there are a few skills that I truly believe every nurse needs under their belt
Lynn

Lynn

23 likes

Don’t add shifts or a second job. Work Smarter
Instead if extra shifts or a second job, I found I can work from home and make more than my regular job. I have learned from a supportive group of Boss Women how to collectively have multiple streams of income that work for me. #workfromhomejobs💰 #workfromhomeforbeginners #highticketdigitalmar
Karen | Livey Haven Digital

Karen | Livey Haven Digital

0 likes

3 things they don’t tell you about Newborns
I feel like a lot of stress postpartum comes from false expectations. People talk like babies are meant to sleep really well on there on in a crib from day one, and people act like newborns are “needy” if they want to be held. This makes parents feel like they are doing something wrong if their bab
kellythedoula

kellythedoula

77 likes

This will lead you to a second chance
Most candidates disappear after a rejection. This message does the opposite. It shows emotional maturity. It shows respect for the decision. And it shows that your interest in the company is genuine — not desperate. You’re not asking for another interview. You’re not trying to change the
JobHire.ai

JobHire.ai

1 like

The Door That Shouldn’t Be There
When I moved in, I noticed the second door right away. Same paint, same handle as the front but it didn’t open. I tried the knob once, twice… locked tight. I figured it led to a closet or maybe another unit. The first few nights were quiet. Then, one night around 2 a.m., I heard it knocking. Three
Celeste✨

Celeste✨

7 likes

Don’t let another summer slip away!!
Today’s rapidly growing digital world makes it simple to work less and make MORE!! Especially when you follow a done-for-you program set on autopilot- There’s a reason why we are growing by the hundreds every single day! Jump in now, If I can do it, YOU CAN TOO! ⏬⏬⏬ #makemoneyonline
Melissa.SAHM

Melissa.SAHM

12 likes

Let’s talk about peptides for a second… 🧬
Because everybody’s hearing that word right now but not everybody understands what’s actually behind it. There’s kinda two different paths people are going down 👇 One side… lab-made, synthetic stuff injections, long names, all the things that make you go “uhhh what even is that?” And li
Amanda B

Amanda B

0 likes

how to smell and taste good down there secret tips
🍋change from dove to Dr bronners unscented it's more natural and doest have chemicals such as titanium dioxide which is used in paint 🍋 use slippery elm and marshmallow root cus it's been said to make it more 💦 and it's also good for balancing hormones 🍋 cotton underware is a mus
laylos

laylos

246 likes

How to be
Princess Tiana<3 If you came across this then you may love her or may resonate with her in many ways. She has a beautiful smile and inner beautiful soul at heart. Her story & journey helps her find balance within her dreams and what's she unexpectedly didn't know she wanted, finding
Stephanie Garci

Stephanie Garci

5933 likes

So let me get this straight...
Every year around this time, people start doing that “payday math” in their head. “If I buy this gift now… will I still have money for groceries?” “Can I squeeze this bill in before the 15th?” “Maybe I’ll just wait until next payday… again.” And listen — you’re generous. You’ve got a good h
Jackie Vangen

Jackie Vangen

76 likes

A pregnant woman in a bright pink dress with a floral sash sits on a green bench under a wooden arbor. The image features the title 'Why I'll never have another Baby Shower,' introducing the article's perspective on baby showers.
Why I’ll never have another Baby Shower
Don’t get me wrong, it was lots of fun and I’m so grateful for the love and everything we received! However, there are a few reasons why I wouldn’t do it again, in case anyone out there is having trouble debating to have one, maybe this could help! I’m not exactly a minimalist, but I don’t like
Alayna

Alayna

325 likes

See more