Aleary we having C.G.I as Severside Component and why we are going for Servlets ?
>> Tuesday, May 31, 2011
C.G.I: It is a sever side component,which was designed on the basis of 'C' and 'Scripting Language'.
Where 'C' is process based technology.If we deploy any C.G.I application on server ,for each request it will create a process.Where process is heavy weight.
If we send more n.o request from client machine to server machine,more n.o of process are created on server which gives burden to server.In order to overcome the above problem we goes to servlet.
SERVLET: Servlet is a server side component ,and it is dependent on java technology.Where java is thread based technology.If we deploy any SERVLET application on server ,for each request it will create a Thread.Where Thread is a light weight.If we send more n.o request from client machine to server machine,more n.o of threads are created on server which doesn't provide burden to server.When compared to C.G.I ,Servlet is Preferable.
0 comments:
Post a Comment