Lewis
Lewis

Reputation: 481

Advice on the best project type to use for an RSS reader

So this is more of an advice question.

We have a project that involves an RSS feed and the reports from the feed being saved to a database. This will need to have a Job service so either quartz or chron.

My question is that there are many types of project that we use as developers but in my line of work these are normally web API with MVC hooked up to an angular front end.

With this project we do not need any end points so no need for MVC. Just after some advice as to what others would recommend.

The flow will be 1. c# call to rss feed with a parameter (5 per second max) 2. xml returned 3. xml mapped to a DTO/Modal 4. DTO/modal saved to Database 5. External reporting tool will handle data.

Any help is appreciated.

Thanks in advance

Upvotes: 0

Views: 55

Answers (2)

Debashish Sarkar
Debashish Sarkar

Reputation: 67

You may also consider a windows service project.

https://i.sstatic.net/WIAWC.jpg

  1. Make it a purely background process.
  2. You don’t have to worry about console windows appearing in a user session and taking measures to keep it hidden.
  3. There are few operational tasks - like managing the service through service management console, out of box support for logon and failure recovery etc. which can be leveraged too.

Upvotes: 1

Kevin LaBranche
Kevin LaBranche

Reputation: 21088

I would recommend a console application for the following reasons:

  1. Requirement for a job. Console apps can easily be ran via scheduled tasks/jobs.
  2. Lack of requirement for User Interface. Perhaps you might need to pass in a few parameters, not sure. Perfect for a console application.
  3. The requirements for retrieving and storing of the rss feeds XML can all be handled in C#, nothing special needed from a framework perspective that the console app can't easily do.

Upvotes: 2

Related Questions