- golang
- docker
- docker-compose
- mmdb
The root of project directory to execute the command.
docker-compose up -d
- GET(query):
http://localhost:9999/search?ip=127.0.0.1,131.2.1.1,47.128.1.3
- POST(body):
{"ip": ["123.4.5.1", "181.4.5.2"]}
{"statusCode": 1, "data": [{"ip":"123.4.5.1", "isoCode": "US", "country": "United States"}], "msg": ""}
cpu | RAM | request count | elapsed time(ms) |
---|---|---|---|
i3-7100 3.90GHz x 2 | 8GB | 100 | 32ms |
i3-7100 3.90GHz x 2 | 8GB | 200 | 57ms |
i3-7100 3.90GHz x 2 | 8GB | 300 | 88ms |
i3-7100 3.90GHz x 2 | 8GB | 400 | 42ms |
i3-7100 3.90GHz x 2 | 8GB | 500 | 132ms |
i3-7100 3.90GHz x 2 | 8GB | 1000 | 148ms |
- auto update mmdb per month.