Best way to store static data?

I'm working on a project for my microservices class, and one of the services is a message moderator. It takes in a message that is sent, and does checking to see if it should be allowed/disallowed. I'm planning on just having a banned words list, but I'm unsure on the best way to store this list, Mongo? just like a .txt/.json file that reads in at app start? Postgres with an index on the term column for fast lookup (seems a bit overkill)? any ideas are appreciated 🙏
7 Replies
Perfect
Perfect2y ago
also curious ^^
needmorewood
needmorewood2y ago
Banned words Json is fine for something like this. Unless for some reason u need/want a record for every word for some other reason or functionality
jack
jack2y ago
ok cool thanks just like load in from fs?
needmorewood
needmorewood2y ago
Commit it and just use import syntax Or make it a js file the exports a const
jack
jack2y ago
wdym commit it?
needmorewood
needmorewood2y ago
Like git I'm assuming you use git for your software?
jack
jack2y ago
oh yea of course yea thats prob what im gonna do
Want results from more Discord servers?
Add your server