Rate limiting ajax requests in WordPress

I have setup the google recaptcha in form once form submitted I’ll validate the recaptcha in the ajax request in functions.php. So spam requests are neglected.