feat: add internal rate limit for rdap queries

This commit is contained in:
Maël Gangloff
2025-10-28 12:09:38 +01:00
parent 12c1a9bb97
commit 98d92ce8f8
17 changed files with 203 additions and 92 deletions

View File

@@ -2,7 +2,7 @@
namespace App\Command;
use App\Message\ProcessWatchlistTrigger;
use App\Message\ProcessAllWatchlist;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
@@ -33,7 +33,7 @@ class ProcessWatchlistCommand extends Command
{
$io = new SymfonyStyle($input, $output);
$this->bus->dispatch(new ProcessWatchlistTrigger());
$this->bus->dispatch(new ProcessAllWatchlist());
$io->success('Watchlist processing triggered!');

View File

@@ -3,7 +3,7 @@
namespace App\Command;
use App\Entity\Watchlist;
use App\Message\SendDomainEventNotif;
use App\Message\DetectDomainChange;
use App\Repository\DomainRepository;
use App\Service\RDAPService;
use Random\Randomizer;
@@ -64,7 +64,7 @@ class RegisterDomainCommand extends Command
/** @var Watchlist $watchlist */
foreach ($watchlists as $watchlist) {
$this->bus->dispatch(new SendDomainEventNotif($watchlist->getToken(), $domain->getLdhName(), $updatedAt));
$this->bus->dispatch(new DetectDomainChange($watchlist->getToken(), $domain->getLdhName(), $updatedAt));
}
}
} catch (\Throwable $e) {