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 6344687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:41:22+00:00 2026-05-24T20:41:22+00:00

I am currently developing a very simple web service and thought I could write

  • 0

I am currently developing a very simple web service and thought I could write an API for that so when I decide to expand it on new platforms I would only have to code the parser application. That said, the API isn’t meant for other developers but me, but I won’t restrict access to it so anyone can build on that.

Then I thought I could even run the website itself through this API for various reasons like lower bandwidth consumption (HTML generated in browser) and client-side caching. Being AJAX heavy seemed like an even bigger reason to.

The layout looks like this:

Server (database, programming logic)
|
API (handles user reads/writes)
|
Client application (the website, browser extensions, desktop app, mobile apps)
|
Client cache (further reduces server reads)

After the introduction here are my questions:

  1. Is this good use of API
  2. Is it a good idea to run the whole website through the API
  3. What choices for safe authentication do I have, using the API (and for some reason I prefer not to use HTTPS)

EDIT

Additional questions:

  1. Any alternative approaches I haven’t considered
  2. What are some potential issues I haven’t accounted for that may arise using this approach
  • 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-24T20:41:24+00:00Added an answer on May 24, 2026 at 8:41 pm

    First things first.

    Asking if a design (or in fact anything) is “good” depends on how you define “goodness”. Typical criteria are performance, maintainability, scalability, testability, reusability etc. It would help if you could add some of that context.

    Having said that…

    Is this good use of API

    It’s usually a good idea to separate out your business logic from your presentation logic and your data persistence logic. Your design does that, and therefore I’d be happy to call it “good”. You might look at a formal design pattern to do this – Model View Controller is probably the current default, esp. for web applications.

    Is it a good idea to run the whole website through the API

    Well, that depends on the application. It’s totally possible to write an application entirely in Javascript/Ajax, but there are browser compatibility issues (esp. for older browsers), and you have to build support for things users commonly expect from web applications, like deep links and search engine friendliness. If you have a well-factored API, you can do some of the page generation on the server, if that makes it easier.

    What choices for safe authentication do I have, using the API (and for some reason I prefer not to use HTTPS)

    Tricky one – with this kind of app, you have to distinguish between authenticating the user, and authenticating the application. For the former, OpenID or OAuth are probably the dominant solutions; for the latter, have a look at how Google requires you to sign up to use their Maps API.

    In most web applications, HTTPS is not used for authentication (proving the current user is who they say they are), but for encryption. The two are related, but by no means equivalent…

    Any alternative approaches I haven’t considered

    Maybe this fits more under question 5 – but in my experience, API design is a rather esoteric skill – it’s hard for an API designer to be able to predict exactly what the client of the API is going to need. I would seriously consider writing the application without an API for your first client platform, and factor out the API later – that way, you build only what you need in the first release.

    What are some potential issues I haven’t accounted for that may arise using this approach

    Versioning is a big deal with APIs – once you’ve created an interface, you can almost never change it, especially with multiple clients that you don’t control. I’d build versioning in as a first class concept – with RESTful APIs, you can do this as part of the URL.

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

Sidebar

Related Questions

I am currently developing a very simple database that tracks people and the company
I am currently developing an approval routing WCF service that will allow an user
I am currently developing a query builder application, basically, a simple graphical interface that
I am currently developing a Rails application using a database that was designed before
I'm currently developing a PHP application that's using an Access database as a backend.
I'm currently developing an application that is comprised of five separate executables that communicate
We're currently developing a new piece of hand-held software. I cant discuss the nature
I'm currently developing a web application in ASP.Net with SQL Server and I would
I am currently developing some user controls so that I can use them at
I'm currently involved with developing a C# CMS-like web application which will be used

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.