Ratelimiting Your APIs With Redis (The Theo-Proof Way)

Ratelimiting Your APIs With Redis (The Theo-Proof Way)

Theo - t3․gg

1 год назад

45,275 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@DanWalshTV
@DanWalshTV - 31.08.2022 08:58

Looks like they've censored the password in the examples since you've uploaded this lol - that was fast

Ответить
@greendesertsnow8441
@greendesertsnow8441 - 08.11.2023 22:44

why are you selling upstash?

Ответить
@owenwexler7214
@owenwexler7214 - 01.07.2023 09:53

I'm assuming it's possible to use Upstash for rate-limiting and also for caching external API responses (Star Wars/weather API or whatever) at the same time... correct?

Ответить
@real23lions
@real23lions - 27.05.2023 09:13

Excellent. I was searching about Redis and rate limiting. This is a good intro

Ответить
@slapxxi
@slapxxi - 28.01.2023 19:16

this Ludwig wannabe be spittin

Ответить
@okopyl
@okopyl - 11.12.2022 07:12

Bro, why using upstash when you have Redus Cloud lol?

Ответить
@aaaaanh
@aaaaanh - 24.10.2022 01:50

came across the npx vercel command, thanks for letting me know that exists so I don't have to manually go to vercel and get the env secrets like a 0.01x dev pleb 😭😭

Ответить
@jelsonrumuar9028
@jelsonrumuar9028 - 08.09.2022 04:44

I can say this is 100% safe and easy to use! (Also wouldn't mind any future cracks lol)

Ответить
@PokemonAmazing
@PokemonAmazing - 07.09.2022 06:51

This is actually so fucking cool, I'm gonna start using this

Ответить
@abdouyamani990
@abdouyamani990 - 02.09.2022 01:57

I am

Ответить
@Trzimajewski
@Trzimajewski - 01.09.2022 16:10

That's some XGH methodology down here

Ответить
@blabla-kk8bl
@blabla-kk8bl - 01.09.2022 00:20

too much work, with django it is soo easy.

Ответить
@21Blankenship
@21Blankenship - 31.08.2022 20:40

“It doesn’t show it!”

**looks closer at the redis-cli connection string

edit: nvm he catches it like a minute later lol

Ответить
@skully8471
@skully8471 - 31.08.2022 19:40

what vs-code theme is he using?

Ответить
@bblatnick1
@bblatnick1 - 31.08.2022 18:33

What’s the difference between redis and dynamo? Why would you use one and not the other?

Ответить
@mazwrld
@mazwrld - 31.08.2022 18:17

🔥🔥

Ответить
@stitches123
@stitches123 - 31.08.2022 17:00

So many things wrong with this video. Rate limiting in the application layer... probably not advice I would be giving out unless you are charging for an API and need precision usage limits. If all you are doing is spam prevention, this is best done as part of a firewall.. potentially a load balancer. Also, the usage of Redis for this is probably overkill if you are not concerned with precision rate limiting, just use application memory.

Ответить
@softwareadministrato
@softwareadministrato - 31.08.2022 16:49

Such a click-bait...I like it

Ответить
@abel090713
@abel090713 - 31.08.2022 16:22

damn was expecting raid shadow legends sponser

Ответить
@MichaelBazzanti
@MichaelBazzanti - 31.08.2022 15:59

That was really cool! I need to look into upstash

Ответить
@jude4628
@jude4628 - 31.08.2022 12:13

I've rate limited the Next API before with some express code I found and it was even simpler, what would the advantages be to doing this upstash redis method other than speed? Love the videos btw!

Ответить
@DaxSudo
@DaxSudo - 31.08.2022 10:45

Shiiiit. It’s been a year since roundest?!

Ответить
@dixztube
@dixztube - 31.08.2022 10:20

This is hilarious

Ответить
@EDIIIZ
@EDIIIZ - 31.08.2022 10:09

Does it work? I can still spam it 😅

Ответить
@naruclon
@naruclon - 31.08.2022 10:05

I am the guy who did the tabs vs spaces poll website in the stream of FreckleBytes. I tried to go with the same solution as you did here to avoid spammers, but i think the fanaticism for tabs/spaces is way bigger than pokemon, because someone somehow manage to spam the uptash redis app and make me hit the 10k max limit request daily 💀💀

Ответить
@markogartnar5658
@markogartnar5658 - 31.08.2022 09:38

This is useful, do more database stuff.

Ответить
@cdv130
@cdv130 - 31.08.2022 09:32

Where the heck are you finding these awesome shirts you wear?!?

Ответить
@echoptic775
@echoptic775 - 31.08.2022 09:25

2 times "My" and 1 time "I" in the title.

Ответить
@affluent3364
@affluent3364 - 31.08.2022 09:10

hey theo, im 21 and in school for CS, you've taught me so much about modern tech and SWE in general. Thank you so much man. Keep doing your thing! <3

Ответить
@matkopis
@matkopis - 31.08.2022 09:03

Such a nice video! I often check out your videos to get some ideas I could share with my team in the educational sessions we have on a weekly or biweekly basis. This one will make an appearance for sure! Thank you for the content.

Ответить
@zakuguriin4521
@zakuguriin4521 - 31.08.2022 08:58

I did also noticed that your app did repeat some of the Pokémon when I tested it

Ответить
@zakuguriin4521
@zakuguriin4521 - 31.08.2022 08:58

This is so great! 🤣 I literally watched that video last week and visited the website and saw the Pokémon results had Zapdos at the top and was like "wha...?"

Ответить
@connormc711
@connormc711 - 31.08.2022 08:42

Railway redis all the way

Ответить
@stephan3199
@stephan3199 - 31.08.2022 08:18

viewers are a double edge sword lol

Ответить
@bradscoolio
@bradscoolio - 31.08.2022 08:10

You need CrowdSec

Ответить