'Updating text moderation in real time
I am implementing a real time chat with text moderation. I'd like for moderators to be able to add words to the filter and have it be applied to the Google Cloud function instantly.
Two ideas I had:
- I could make a HTTP request on start up that retrieves an updated word list from my site, but that's not exactly real time.
- Checking a Firebase database in onWrite and if the text is there, delete. I am under the impression this scenario would be quite expensive, as each chat sent would cost multiple reads.
Not sure what to do, thoughts?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
