Reputation: 85
I need to create a .net core web application (or some kind of .net core service) which do web scraping from various web sites, and writes result to database.
Then I need to create another .net core web app in which I will do some actions with data from the FIRST app. However I should be able to update database by starting FIRST application from SECOND app by clicking button.
What is the best way to do this? 1) I need to use .net core. 2) I need that it be two apps, because I should be able to use FIRST application somewhere else, for example in THIRD application. 3) Do I need to create some kind of .net core service. Or do separate apps, and then some how link them?
Upvotes: 0
Views: 296
Reputation: 10844
The questions is quite broad but goes my broad answer too ;-)
Write a .Net Core service that has two main methods: scrapData
and getData
, the the scrapData
puts data into the Database after the scrapping takes place
Second app references and uses the service you created on step 1 and calls the getData
method to obtain the scrapped data
Step 1 could also be a WebApi with a exposed method that you call from any other app when needed. This depends on your arquitecture limitations (but consier @ADyson comments regardin this option)
For more reference visit these sites
Upvotes: 1