https://github.com/nodesocket/express-rethinkdb-logger
An example express web server with middleware that logs all requests to RethinkDB
https://github.com/nodesocket/express-rethinkdb-logger
Last synced: 9 months ago
JSON representation
An example express web server with middleware that logs all requests to RethinkDB
- Host: GitHub
- URL: https://github.com/nodesocket/express-rethinkdb-logger
- Owner: nodesocket
- Created: 2015-06-01T00:36:11.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-04T04:29:30.000Z (almost 11 years ago)
- Last Synced: 2025-05-07T17:05:12.125Z (11 months ago)
- Language: JavaScript
- Size: 1.04 MB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# express-rethinkdb-logger
An example express web server with middleware that logs all requests to RethinkDB
## Example Document
{
"date": "2015-06-02T23:55:14.276Z" ,
"http_version": "1.1" ,
"id": "66946554-0482-4dfd-9ae7-04bb41cd3a3f" ,
"method": "GET" ,
"remote_addr": "::1" ,
"remote_user": "-" ,
"response_time": 13.236 ,
"status": 200 ,
"url": "/" ,
"user_agent": "curl/7.37.1"
}
## Benchmark/Performance
#### Using apache bench. Stable **1,434 requests per second**, no failed requests.
Server Software:
Server Hostname: localhost
Server Port: 3000
Document Path: /
Document Length: 48 bytes
Concurrency Level: 1
Time taken for tests: 139.439 seconds
Complete requests: 200000
Failed requests: 0
Keep-Alive requests: 200000
Total transferred: 58200000 bytes
HTML transferred: 9600000 bytes
Requests per second: 1434.32 [#/sec] (mean)
Time per request: 0.697 [ms] (mean)
Time per request: 0.697 [ms] (mean, across all concurrent requests)
Transfer rate: 407.61 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 0 1 0.8 1 56
Waiting: 0 1 0.8 1 56
Total: 0 1 0.8 1 56
Percentage of the requests served within a certain time (ms)
50% 1
66% 1
75% 1
80% 1
90% 1
95% 1
98% 1
99% 2
100% 56 (longest request)