How should my dotnet 6.0 WPF application interface with a Mongo database in prod environment?
was thinking of a more solid 3 tier architecture with having my application interface with some sort of intermediary API with Node & ExpressJS, instead of having the bare connection string in the app.config or hardcoded into the application, obfuscating it and praying no one decompiles it into readable code which is obviously not practical but definitely easier
5 Replies
yes, your frontend should not be able to talk directly to the database
always have an API in the middle
Node.js seems to be an interesting choice here. I assume a data access layer should be performant and C#/Go might be more suitable.
I'm a noob, and recently have been learning the MERN stack
I was hoping I could make an API in express to handle the data for the application
since it would be quicker for me to use it as I already know the base syntax
thanks for the clarification!
No worry. For prototyping you can use anything you feel comfortable with.
alrighty