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
also curious ^^
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
ok cool
thanks
just like load in from fs?
Commit it and just use import syntax
Or make it a js file the exports a const
wdym commit it?
Like git
I'm assuming you use git for your software?
oh yea of course
yea thats prob what im gonna do