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

Update moderation method to a non blocking implementation #114

Open
4 tasks
bhaskarkishore opened this issue Nov 7, 2022 · 0 comments
Open
4 tasks

Update moderation method to a non blocking implementation #114

bhaskarkishore opened this issue Nov 7, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@bhaskarkishore
Copy link
Contributor

bhaskarkishore commented Nov 7, 2022

The implementation for the moderate method is currently blocking where in results for new content are only returned to the client after the content is fetched and moderated. This can sometimes take several seconds and results in poor UX. The following changes will remove lag and make the proxy appear a bit more response:

  • Moderate method should no longer offer content in any circumstance.
  • The method should immediately return and not block. For new content the method should return an appropriate busy or moderation pending state.
  • Should the moderation fail due to a temporary failure, the proxy should track the failure and retry after a while.
  • If repeated failures occur, the proxy should stop attempting moderation and log the error. The tracking state should clear after a predefined interval.
@bhaskarkishore bhaskarkishore added the enhancement New feature or request label Nov 7, 2022
@bhaskarkishore bhaskarkishore added this to the Release 2.0.0 milestone Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant