Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3489630
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:25:05+00:00 2026-05-18T11:25:05+00:00

I need to provide (to myself) a way to grab some data from the

  • 0

I need to provide (to myself) a way to grab some data from the database in order that I can easily build static html pages so I can relieve the server of processing them (as I’m having 80Gb of bandwidth wasted per day).

My question is simple

should I create a WCF service (or ASMX Web Service) to pull this data (WCF will be in the same server, so I still use it, though much less as I’m just getting what I really need and don’t waste to process pages)

or I should create a simple controller like:

public class ServiceApiController : Controller
{
    public ActionResult GetPrizes(string calendarGuid)
    {
        return Json("...");
    }
    public ActionResult GetWinners(string calendarGuid)
    {
        return Json("...");
    }
    public ActionResult AddSubscriber(string calendarGuid, string[] args)
    {
        return Json("...");
    }
    public ActionResult ReclaimSubscriberEmail(string calendarGuid, string email)
    {
        return Json("...");
    }
    public ActionResult RequestContact(string calendarGuid, string[] args)
    {
        return Json("...");
    }
}

and just call it directly from whatever Javascript Framework I would use (err, off course my lovely jQuery).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T11:25:05+00:00Added an answer on May 18, 2026 at 11:25 am

    Depends. A WCF Service is more flexible as you don’t have to rely on HTTP and can instead use direct TCP Connectivity, also I believe it’s really easy to have it expose SOAP. Just the web.config setup for behavior, endpoint etc. is a bit more complex than it should be.

    On the other hand, MVC is possibly quicker to setup like that because you don’t have to deal with the sometimes a bit hard to change DataContracts (as they require re-deployment of the shared assembly).

    WCF = more “solid” with a lot more protocol to it to make it “stable”, that is: You can establish a hard contract between Provider and Consumer.

    MVC = more flexible and possibly easier to setup, but no hard contract – if you change the format of the Json, your clients may break without you initially noticing it, so it’s a lot more keeping up with stuff.

    Overall, I use MVC unless I have a reason to use WCF as outlined above (requirement for a stable/guaranteed/discoverable contract between client and server, requirement to have SOAP, or when it’s inconvenient/unnecessary to setup an IIS Website, for example because my server runs as a Windows Service)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to provide some passwords, API keys and similar sensitive data in my
I need to provide our web developers an easy and quick way to test
I have a few large forms that I need to provide visual cues about
When I write SQL queries, I find myself often thinking that there's no way
I'm using Zend_Db to query a table. I have some WHERE clauses that need
I see that grails-audit plugins provide way of logging onCreate() onUpdate() events, but I
Looking for some help and advice please from Super Guru MySQL/PHP pros who can
I have some CRC methods that I need to test. These methods were not
I've been doing some Web-Projects lately that rely on heavy Data-Binding and have been
How can I log out user from facebook without authorizing him myself? I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.