General website setup discussion (client, server, database) in preparation for hosting your machine learning model (MLOPs).
There are many popular front-end frameworks (Angular, Vue, etc), but I recommend React.
First, get as far as you possibly can with serverless frameworks, like AWS Amplify or GCP Firebase. Or if you prefer to use individual serverless components rather than an all-in-one package, see AWS Serverless (which are the components used underneath Amplify's hood).
When you've hit the ceiling on Amplify and need custom server code, still try serverless. AWS Lambda lets you write individual routes as Node/Python functions.
Finally, after you've hit the serverless ceiling (Amplify handling most leg-work, Cognito handling authentication, Lambda for one-off routes) and you really need custom server code for edge-cases, do the following.
mla-012 for more information.
All that said, the main reason I like Postgres over its competition is it can replace 2 & 3 for you. You can run a job-queue via Postgres's select for update
feature, and pub/sub via listen/notify
.