Answer the question
In order to leave comments, you need to log in
Two projects on one database, or make an API?
Now there is a telegram bot that works with the database. I want to make a web version of the same project that will work with the same database, and now I’m thinking how it would be better to do it: use one database for two projects, or make another separate API project, and use endpoints in the web version? (You never know, suddenly in the future you will need another version for mobile phones). What is the best way to do it in terms of architecture?
Answer the question
In order to leave comments, you need to log in
Usually they write API-frontend (its instances), whose clients are content consumers. Well, behind the API is its own database and caching, if necessary.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question