App architecture

R

rarahim

Hi,

I'm trying to develop a school management system. It's a database app that
is accessible from multiple remote locations. My questions:

1) Which is better for this situation, client-server or web-based app? or
smart client app?

2) Can this app be developed as a simple client-server app i.e. the app as
the client and SQL server as the server, no web service whatsoever?

Thanks.
 
J

Jason Keats

rarahim said:
Hi,

I'm trying to develop a school management system. It's a database app that
is accessible from multiple remote locations. My questions:

1) Which is better for this situation, client-server or web-based app? or
smart client app?

2) Can this app be developed as a simple client-server app i.e. the app as
the client and SQL server as the server, no web service whatsoever?

Thanks.

A web-based solution is generally usable across all operating systems,
and it's easier and quicker to roll-out new updates/versions

Client-server is the easiest to develop, but has the disadvantage (if
you're not using web services) that your users will probably require a
VPN to connect to the server - for security reasons. Installation is
obviously more difficult and time-consuming than a web application.

A smart-client (just like a client-server app) will usually only operate
on a single operating system. You don't want to have to write/maintain a
different version for each O/S - iPhone, Symbian, RIM, Android.

Client-server (if not using VPN) and smart-client applications should
both use web services.
 
R

rarahim

My application will access the database server only to get and push
data. How will web service benefit me in this situation?

And why did you say, use web service for client-server only when VPN
is not used?

Thanks.
 
J

Jason Keats

rarahim said:
My application will access the database server only to get and push
data. How will web service benefit me in this situation?

And why did you say, use web service for client-server only when VPN
is not used?

Thanks.

If you have a client application that needs to use a database over the
internet then the best way is via web services.

There is obviously less code to write if you don't use web services.
But, as I said, connecting to the database directly is not safe. No one
(with any brains) exposes their database ports (eg 1433 for SQL Server)
to the internet. If you do, then you will have a large number of hackers
using password cracking tools trying to get at your data.

That's why some people use a VPN if they require access to their
database - and don't want to rewrite their application. You can use a
VPN as well as web services if you really want to - but there's not much
point.
 
R

rarahim

There is obviously less code to write if you don't use web services.
But, as I said, connecting to the database directly is not safe. No one
(with any brains) exposes their database ports (eg 1433 for SQL Server)
to the internet. If you do, then you will have a large number of hackers
using password cracking tools trying to get at your data.

That's why some people use a VPN if they require access to their
database - and don't want to rewrite their application. You can use a
VPN as well as web services if you really want to - but there's not much
point.

I see.. so the benefit of using a web service in this case is for
security reasons.

Is there any benefit to be gained as far as performance is concerned?

Thanks.
 
R

rarahim

I see.. so the benefit of using a web service in this case is for
security reasons.

Is there any benefit to be gained as far as performance is concerned?

Thanks.

Also, in terms of the saving on the bandwidth, is the amount of data
transported back and forth the client and server any different when
accessing via web service?
 
J

Jason Keats

rarahim said:
Also, in terms of the saving on the bandwidth, is the amount of data
transported back and forth the client and server any different when
accessing via web service?

A VPN uses encryption to safeguard data being passed between the client
and server (like HTTPS does for web sites). It takes time and processing
power to encrypt/decrypt data - which tends to decrease scalability.

When you connect directly to a database server you will probably be
passing datasets back and forth. You could create a web service that did
the same thing - just for the added security. However, normally web
services are not used just to retrieve and save datasets. In fact, as a
dataset is not a cross-platform datatype, you're not supposed to use web
services for that purpose.

Really, you should create web services that contain some of your
application's business logic - to reduce the need to pass data to and
from your client. This will save on bandwidth, but put a greater
processing load on your "application" server - as you're transferring
processing that would have been done on the client to the server.

When you need to support more users you should just be able to add an
application server - using load balancing - which you can do if you've
structured your application well.

So, it's very difficult to tell whether you will gain an increase in
performance. That will largely depend on the design/architecture of your
application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top