ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 28th, 2013, 05:41 AM
Krammig Krammig is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2011
Posts: 3 Krammig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 54 sec
Reputation Power: 0
Web Service vs ASP page

Thanks for reading. To date I have been using ASP server side pages to accept communication from my VB apps and also of late a couple of Mobile apps I have.

The ASP pages accept http / xml and do the processing, returning a response to the remote apps.

One of the mobile apps does use a web service that I set up, written in VB.Net

My question now relates specifically to the mobile apps and the expected increase in users. Specifically ;

a) response time
b) server load
c) security

What I would like to know is, taking into account the above 3 items, with the expectation of say 100,000 users devices, what is best for ;

i) minimal server load
ii) best response time
iii) best security

While I am reasonably technical I know very little about how a web service runs compared to an ASP page.

For example, is an instance of the web service loaded every time a user hits that service ?
and how does that compare to an ASP approach if say 300 requests come in at the same moment.

Appreciate any comments and thoughts,

thanks

Reply With Quote
  #2  
Old January 28th, 2013, 07:59 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Click here for more information.
 
Join Date: Dec 2004
Posts: 7,931 E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 7 h 48 m 54 sec
Reputation Power: 7053
A "web service" has no precise technical meaning beyond being something that is accessed over the internet, although it tends to be more commonly used to describe a service that is accessed over HTTP as opposed to a service that uses a long-lasting socket connection with a custom protocol. You could write a web service in ASP if you wanted.

There are no inherent security differences between any type of web service. The service will be secure as you program it to be, regardless of which language it is written in or what communication architecture you use to build it.

Whether an HTTP-based web service or a long-lasting socket based web service is more effective depends on the application.

If the application communicates infrequently with the server, then an HTTP-based web service will be able to handle more users. For example, if your application has 600 users who, on average, send 1 request per minute, then an HTTP server needs to be able to handle 10 requests per second. However, a long-lasting socket based web service would need to be able to handle 600 active connections at once. So in this case, an HTTP-based service is more efficient.

However, if your application involves 600 users sending 1 request per second, then your HTTP server would need to handle 600 requests per second. In this case, it would be more efficient to use a long-lasting socket based service.

Sending a message over an HTTP request has a much higher per-request load cost than sending a message over an existing socket. So, a long-lasting socket based service will normally have lower latency for communication. However, when the connection is not in use you still have to maintain it, unlike an HTTP connection. A long-lasting socket type application is often more expensive to build, deploy, test and maintain.
__________________
PHP FAQ
How to program a basic, secure login system using PHP

Quote:
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Web Service vs ASP page

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap