C
C#8mo ago
DjangoCodes

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
jcotton42
jcotton428mo ago
yes, your frontend should not be able to talk directly to the database always have an API in the middle
Lex Li
Lex Li8mo ago
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.
DjangoCodes
DjangoCodesOP8mo ago
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!
Lex Li
Lex Li8mo ago
No worry. For prototyping you can use anything you feel comfortable with.
DjangoCodes
DjangoCodesOP8mo ago
alrighty
Want results from more Discord servers?
Add your server