ACDB  Log In
Search
Random
Light/Dark Theme
Site Map
SMASH or PASS

Welcome to Anime Characters Database

The visual search engine for animated characters. We index characters by eye color, hair color, hair length, age, gender, and animal ears.

Characters 138 this month
Titles 7 this month
Members 145 this month
Quotes 321 this month
Voice Actors 14 this month

News | Aug 31, 2024 | ACDB, Bots, Performance

One down side of adding additional translations to the site is: web spiders, bots, and crawlers end up having index entire copies of the site. This has been pushing daily page requests near 3,000,000. while Google Analytics reported requests have remained around 100,000.

This works out to for every 1 request by a member, there are 30 requests by bots.

Our web server Nginx allows for rate limiting either at an IP level or a server level.

ACDB makes a lot of use of redirects so I can't really rate limit people to 1r/s without

1) Breaking the lounge
2) Making redirects take 2 seconds for the page to respond

I also can't give members more than 3r/s without risking race conditions.

This left me wanting a solution where I could have more generous rate limits for members and stricter rate limits for everyone else.

Unfortunately Nginx has some serious hatred problems for simple conditionals. They live under a mantra of "IfIsEvil".

Luckily, the world of programing is one where if you have a will, there is always a way.

Pushing aside useless AI summaries, I eventually landed on https://nginx.nginx.narkive.com/tRRv3Xv8/limit-req-inside-a-if-block-not-allowed

While this page's solution made use of a user agent check; that conditional could easily be replaced with a cookie test. A few tweaks later, the setup is live on ACDB. Members will enjoy a fast and responsive site as it should be while the bots will be limited to an amount of requests that shouldn't gum up the site again for a while.

--
Rei

Spy vs Spy

Arrested!
Otti Respighi was Arrested! for indecent exposure by Pipotoast

06:57 am
Arrested!
Reina Itsutsuboshi was Arrested! for bank burglary by Pipotoast

06:56 am
Arrested!
Yuanwu was Arrested! for counterfeiting by Pipotoast

06:55 am
Arrested!
Ren Kagaya was Arrested! for computer crimes by Pipotoast

06:54 am
Arrested!
Masamune Izumi was Arrested! for larceny by Pipotoast

06:53 am

Happy Birthday To

Games

Kawaii or NOT and Smash or Pass are quite popular! Or test your knowledge witch Series Quizzes.

Family Tree

Latest Family Tree Relations

Ah Duo
plipplop spent time with their Waifu

2 minute(s) 22 second(s) ago


Tilty Claret
plipplop spent time with their Waifu

8 minute(s) 52 second(s) ago


Laini Cyan
plipplop spent time with their Waifu

8 minute(s) 52 second(s) ago


Hibari Oozora
plipplop spent time with their Waifu

8 minute(s) 52 second(s) ago


Mirelia Q. Melromarc
plipplop spent time with their Waifu

8 minute(s) 52 second(s) ago


Quick Links for members.

Logs

09:51 am RinaK modified a title 09:51 am RinaK modified a title 09:50 am RinaK modified a title 09:49 am RinaK modified a title 09:49 am RinaK modified a title 08:55 am NatsumiSawada new character Hunter R 08:24 am NatsumiSawada modified a title Yesterday 10:13 pm Pipotoast modified a character Yesterday 10:09 pm Pipotoast added an extra detail Yesterday 10:09 pm Pipotoast added an extra detail Yesterday 10:08 pm Pipotoast added an extra detail Yesterday 10:08 pm Pipotoast added an extra detail Yesterday 10:07 pm Pipotoast added an extra detail Yesterday 10:07 pm Pipotoast added an extra detail Yesterday 10:06 pm Pipotoast added an extra detail Yesterday 10:06 pm Pipotoast added an extra detail Yesterday 10:05 pm Pipotoast added an extra detail Yesterday 10:04 pm Pipotoast added an extra detail Yesterday 10:03 pm Pipotoast added an extra detail Yesterday 10:01 pm Pipotoast added an extra detail Yesterday 10:01 pm Pipotoast added an extra detail Yesterday 10:01 pm Pipotoast modified a character Yesterday 09:59 pm Pipotoast added an extra detail Yesterday 09:58 pm Pipotoast added an extra detail Yesterday 08:49 pm yASSHI uploaded a character Yesterday 08:34 pm yASSHI uploaded a character Yesterday 06:17 pm Juan_Elric added new voice actor Yesterday 06:13 pm Leon18 uploaded a character Yesterday 06:13 pm RinaK modified a character Yesterday 05:46 pm RinaK modified a character

Go Top

Anime Characters Database Logo Links

Contribute

This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more [close]

Who Board | New Thread

07:58 am
Anonymous
Who is this?

Latest Comments


Karen

This is a literal child - Anonymous

Quotes

Look! It's making such an
adorable, but impudent face!
- Funifura

It's terrifying! A perfect innocent-kitty act - Funifura

to hide her intention to steal
our lunches for her mistress!
- Funifura

Buy Me a Coffee at ko-fi.com

Increase your fun by becoming a member today! Login | Register

10 fun things to do on ACDB

Advertise - Share - Mascot - Contact - Discord - API - Wiki - Site Map - Change Log - Twitter - Instagram - Privacy Policy - Rules
All images are copyright of their respective owners. Copyright © Goral Software

Rendered in 166.6 ms. R-27-W-1-M-3177.8 KB