Home > other >  Is it possible to connect a project to different BDs, as you'd connect it to different APIs?
Is it possible to connect a project to different BDs, as you'd connect it to different APIs?

Time:11-16

As a college student I did some deployment diagrams of a Spring Boot project I'm making, and in them I stated that I would fetch stock data from 3 sources: web scrapping, API connection and DB connection. Deploy diagram:

Deploy diagram

As development team we've already done web scrapper and API connector components (they are not 'artifacts', diagram's wrong there), but when it comes to DB connection I can't seem to find any source to connect to. Every web page that offer connection to a DB are eventually, API connections.

Is it even possible to connect to a DB the way I modeled it?

Any orientation appreciated.

CodePudding user response:

Because of security issue, you will not find any web site that provide you a way to connect directly to their database. The only way to access the database is throught an API (provided by the web site) or hack the web site (what I would not recommand).

Also to answer you question as mentionned in the title : Yes! You can connect to any number of databases, but it depends if you are allowed to do it.

  • Related