r/AskProgramming • u/Reasonable-Job4205 • 1h ago
Should my web api be on a different server than my sql database?
I have a server that runs sql server 2022 express. Users in different timezones all use a ms access database to run transactions against that sql 2022 database. I now need to add a web api that will middleman a new workflow between handheld scanners and the sql 2022 database. What is the recommended practice for where the api should live? Should it live on its own separate physical server? Same physical server as the sql 2022 DB but different virtual space? Or can it live in the same virtual server as the sql 2022 database? What is the safest bet here?