Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets vs CGI with Perl

 
Srikanth Devaraju
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,
I am a UNIX & C programmer working in North West Airlines Minneapolis, USA. I want shift my carrier towards Web technology.
I welcome people to join with this discussion. I want to discuss following concepts.
1. Web Server.
2. CGI.
3. Servlets.
I will give my understanding of above three.
Web Server: Web server is a software, which constantly polls the HTTP port (80) or any configured port to receive requests for URL and if the URL is present then it sends same back to the requester. Means it is a sophisticated socket server program receives requests from different browsers(Clients).
CGI (Common Gateway Interface): It is an interface to the Webserver. Upon a request from a web browser this program will be kicked off by web server as child process. Conceptually CGI programs can be written in any programming language, but Perl is predominant choice may be because of its capability of text processing.
Servlets: Servlets are extension to the webserver as oppose to the interface to the Webserver. So servlets can use server resources. This may dramatically increase the Web server performance.
Please post your thoughts. Together we all can clear our concepts. And keep discussion going.
Regards,
Srikanth

 
Ashok Shenoy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am working extensively with servlets on health care
intranets. Even though my own code is 99% accurate, there
are times when the servlet engines bugs hits me in the face
and I have to find a fix! This set me thinking that compared
to the old days when you wrote native .exe programs, the dependency of current progs on server software etc does carry
some risk on a major project (Its not entirely your code!)
I also dabble in C++ as a hobby and I have written a native tcp/ip server program which on request can instantiate a C++
class from a dynamically loaded library, thread the same and
call service method just like a servlet engine and eliminate
the drawacks of cgi.
I wonder why the big guns dont explore this possibility ...
Any comments?
Ashok
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic