Java Tips and Tricks: Protecting Spring Boot Restful API from DDoS Attack with Bucket4j in 5 minutes

preview_player
Показать описание
Bucket4j is a Java rate limiting library based on token-bucket algorithm provided by Vladimir Bukhtoyarov and Maxim Bartkov
In additional to basic features described above, Bucket4j provides ability to implement rate-limiting in cluster of JVMs:

Bucket4j out of the box supports any GRID solution which compatible with JCache API (JSR 107) specification.
Bucket4j provides the framework that allows to quickly build integration with your own persistent technology like RDMS or a key-value storage.
For clustered usage scenarios Bucket4j supports asynchronous API that extremely matters when going to distribute world, because asynchronous API allows avoiding blocking your application threads each time when you need to execute Network request.

#java
#javaprogramming
#springboot
Рекомендации по теме
Комментарии
Автор

If you need to know how to use bucket4j for api client and pricing plan please comment and tell us to make more videos on bucket4j

virtual_learning
Автор

Finally someone who explains this in a clear way. Thank you

R.T-user-eneimtg
Автор

Excellent video about implementing a custom annotation, great content, keep going!

NazNaziiii
Автор

Please make more videos, your videos are very useful. You explain it very good.

NazNaziiii
Автор

Please make more videos, your videos are very useful. You explain it very good.☘🌹

Rozblue-kyuyrpq
Автор

Thanks a lot! That was a superb explanation!😍😇🙂

Rozblue-kyuyrpq
Автор

Thank you so much :)
you are a saviour !!!

o.h
Автор

hey can you provide the source code... same implementation but it doesnt work

tmadan
Автор

I have my redis running, i have added the shown dependencies in my gradle, and added the mentioned properties in application.properties file. But the code still allows multiple hits to API endpoints with 200 status code. Do i have to do anything extra? Any annotation needs to be added in main class?

supritavenkat
Автор

do you have solution for bucket4k on kotlin spring boot rest api?

KraisornApisaranont