A running example of the code from:
- http://marcio.io/2015/07/handling-1-million-requests-per-minute-with-golang
 - http://nesv.github.io/golang/2014/02/25/worker-queues-in-go.html
 
Small refactorings made to original code:
| http { | |
| log_format json_combined escape=json | |
| '{' | |
| '"time_iso8601":"$time_iso8601", "remote_addr":"$remote_addr", "remote_user":"$remote_user", "request":"$request",' | |
| '"status": "$status", "body_bytes_sent":"$body_bytes_sent", "request_time":"$request_time","http_host":"$http_host","host":"$host",' | |
| '"args":"$args",' | |
| '"connection":"$connection","content_length":"$content_length","content_type":"$content_type","uri":"$uri","request_filename":"$request_filename",' | |
| '"http_referrer":"$http_referer", "http_user_agent":"$http_user_agent",' | |
| '"upstream_connect_time": "$upstream_connect_time", "upstream_response_time":"$upstream_response_time"' | |
| '}'; | 
A running example of the code from:
Small refactorings made to original code: