Web server deployment

I liked to implement my own web server in pure Java, the web server should only support static resources (i.e. html, js, css, pics, movies, etc.)

Can you recommend a tutorial or article on how to implement such a thing? should I use multiple processes or a thread pool or should I consider a circular event oriented like NodeJS?

I know that there are free web servers that do exactly what I am looking for, but I wanted to do it as an existence for myself.

+3
source share
5 answers
+1

, , .

, , - HTTP-, , concurrency, , , , , MIME-... , , - .

, !

+3

I would suggest Apache MINA to do the job. It allows you to specify encoders / decoders to work correctly with the HTT protocol and calls the method when a request is received, etc. It handles the flow control inside. I never start a network project without it.

0
source

Source: https://habr.com/ru/post/1757144/


All Articles