Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support batched creation of Captchas #73

Open
hrj opened this issue Apr 2, 2021 · 0 comments
Open

Support batched creation of Captchas #73

hrj opened this issue Apr 2, 2021 · 0 comments

Comments

@hrj
Copy link
Contributor

hrj commented Apr 2, 2021

For providers such as LabelCaptcha, a set of generated Captchas might be only valid for the state of the system at generation time. As the state changes, for example when the set of known and unknown words changes, the older Captchas might become irrelevant.

So, to address this, I propose creating Captchas in batches. For example, one possible design could be:

  • When running low on Captchas, a Captcha provider which has no unsolved captchas is picked for generating more captchas.
  • A NewBatch message is sent to the provider. In its handler, the provider might update its state, for example, reclassify known and uknown words.
  • the CreateChallenge message is then sent N times to this provider, where N is configurable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant