I am trying to create webapp using Go , I am using net/http package to serve files. I am curious to know how net/http in Go is different from others like Apache , Nginx in terms of performance,security,flexibility etc.,
2 Likes
skillian
(Sean Killian)
August 28, 2019, 1:31am
2
This is the kind of stuff I found by Googling “Go vs. Nginx:”
benchmark+go+nginx.md
# Benchmarking Nginx with Go
There are a lot of ways to serve a Go HTTP application. The best choices depend on each use case. Currently nginx looks to be the standard web server for every new project even though there are other great web servers as well. However, how much is the overhead of serving a Go application behind an nginx server? Do we need some nginx features (vhosts, load balancing, cache, etc) or can you serve directly from Go? If you need nginx, what is the fastest connection mechanism? This are the kind of questions I'm intended to answer here. **The purpose of this benchmark is not to tell that Go is faster or slower than nginx. That would be stupid.**
So, these are the different settings we are going to compare:
* Go HTTP standalone (as the control group)
* Nginx proxy to Go HTTP
* Nginx fastcgi to Go TCP FastCGI
* Nginx fastcgi to Go Unix Socket FastCGI
This file has been truncated. show original
I didn’t have as much luck finding actual statistics Googling “Go vs. apache”
4 Likes
Thank you so much for your response.
2 Likes
system
(system)
Closed
November 26, 2019, 6:32pm
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.