Server Module

Server modules handle data exchange between the application and the database.

As you can see, two server modules were created for the Contacts application:

 

Server modules run on the app server. They contain routines which are invoked from the client:

Client

 

Data

 

App Server

 

Web pages, views and dialogs run on the client inside the browser.

Server Modules are executed on the app server.                              

 

 

Note that for instructional reasons, in these tutorials a server module is created for every file, but that is not how a web app is typically built.  There are better ways of organize server modules, for example you could organize them by business process, and name them by the data they are processing or by the data they need to return.  You should avoid writing code where you call many different server routines from the client for each file.