DEV Community

Discussion on: How to implement login limits if rest apis are stateless?

Collapse
 
devdrake0 profile image
Si

The API's are stateless, that doesn't mean they cannot communicate with databases. One simple way is to increment a database count, when an incorrect password is used, and have the API check it.

That also answers your question about load balancing, as they'll check the same database.