[dancer-users] Dancer2 0.159000 waiting for you on CPAN!

Sawyer X xsawyerx at gmail.com
Tue Mar 3 20:36:53 GMT 2015


On Wed, Feb 25, 2015 at 12:42 AM, Warren Young <wyml at etr-usa.com> wrote:
>
> > On Feb 24, 2015, at 6:21 AM, Sawyer X <xsawyerx at gmail.com> wrote:
> >
> > "Delayed respones":
> > https://metacpan.org/pod/distribution/Dancer2/lib/Dancer2/Manual.pod#Delayed-responses-Async-Streaming.
> >
> > We will provide more examples in the near future.
>
> Wow!  That one feature might be enough to get me to switch to Dancer 2.
>
> I would like to use it to implement a login throttling mechanism.  Something like, “Aha, this guy has attempted to log in more than 5 times in the past minute; I’m going to sleep for a few seconds before I answer."  Is that an appropriate use for this feature?


Sure.

You would keep a watcher and have every request noted there with the
IP so you could decide if someone's hitting the server. You would need
to clean up the cache for that. You could use CHI for it. :)


More information about the dancer-users mailing list