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 154 this month
Titles 7 this month
Members 163 this month
Quotes 321 this month
Voice Actors 30 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!
Katue Pearson was Arrested! for counterfeiting by Anonymous

Yesterday 05:07 pm
Murdered!
MIchelle Liedbulk was Murdered! for bank burglary by Anonymous

Yesterday 03:47 pm
Murdered!
Kikkou Sadamune was Murdered! for indecent exposure by Anonymous

Yesterday 05:29 am
Arrested!
Weiszenmina von Waldeck was Arrested! for indecent exposure by Anonymous

Yesterday 05:27 am
Arrested!
Hanying Lou was Arrested! for indecent exposure by Pipotoast

Sep 15, 2024

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

Gabi Braun
Marc spent time with their Waifu

55 minute(s) 53 second(s) ago


Inko Midoriya
Marc spent time with their Waifu

55 minute(s) 53 second(s) ago


Catalina Devon
Marc spent time with their Waifu

55 minute(s) 53 second(s) ago


Tsunade
Marc spent time with their Waifu

55 minute(s) 53 second(s) ago


Hanabata Nohkins
Tassen spent time with their Waifu

1 hour(s) 9 minute(s) 48 second(s) ago


Quick Links for members.

Logs

12:46 am SPRIGHTLYMAIDEN modified a character 12:44 am SPRIGHTLYMAIDEN modified a character Yesterday 07:44 pm RinaK new character Youko Numata Yesterday 07:16 pm RinaK new character Moi Yesterday 06:45 pm Juan_Elric modified a character Yesterday 06:38 pm Juan_Elric added new voice actor Yesterday 05:36 pm Juan_Elric added a relation Yesterday 05:35 pm Juan_Elric added a relation Yesterday 05:35 pm Juan_Elric added a relation Yesterday 05:35 pm Juan_Elric added a relation Yesterday 05:34 pm Juan_Elric modified a character Yesterday 05:33 pm Juan_Elric added a relation Yesterday 05:33 pm Juan_Elric added a relation Yesterday 05:32 pm Juan_Elric added a relation Yesterday 05:31 pm Juan_Elric added a relation Yesterday 05:31 pm Juan_Elric added a relation Yesterday 05:31 pm Juan_Elric modified a character Yesterday 01:43 pm Langa added a relation Yesterday 12:45 pm RamRol97 added a relation Yesterday 12:45 pm RamRol97 added a relation Yesterday 12:40 pm TsundereChan uploaded a character Yesterday 11:38 am RamRol97 modified a character Yesterday 11:34 am RamRol97 added new voice actor Yesterday 11:34 am RamRol97 added new voice actor Yesterday 11:33 am RamRol97 added new voice actor Yesterday 11:31 am RamRol97 added new voice actor Yesterday 11:30 am RamRol97 added new voice actor Yesterday 11:29 am RamRol97 added new voice actor Yesterday 11:28 am RamRol97 added new voice actor Yesterday 11:28 am RamRol97 added new voice actor

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

01:13 am
Anonymous
Who is this?

Latest Comments


Ryo Yamada

Good. - Anonymous

Quotes

But... - Julis Alexia von Riessfeld

Explode! - Julis Alexia von Riessfeld

All right! - Julis Alexia von Riessfeld

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 98 ms. R-27-W-1-M-3177.8 KB