Skip to content

Commit 0ee0e48

Browse files
authored
Update README.md
1 parent d99ea3e commit 0ee0e48

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Then we do base62 encoding ([A-Z, a-z, 0-9]) of the ID. In 7 bytes we can get ov
3333

3434
Since our data is fully placed in RAM, the natural choice is a fast no only sql storage that is completely in RAM - **Redis**.\
3535
Since we don't need complex statistical queries with filtering and conditions, we can only stay on Redis.\
36-
If in the future we need such statistics, then we can additionally use the relational database (for example **PostgreSQL**).\ The data can be transferred from Redis to Postgres periodically by cron jobs (for example once a day).\
36+
If in the future we need such statistics, then we can additionally use the relational database (for example **PostgreSQL**). The data can be transferred from Redis to Postgres periodically by cron jobs (for example once a day).
3737

3838
### Ruby framework selection
3939

@@ -47,7 +47,7 @@ For background jobs i chose the **Sidekiq**.
4747
### How do i find a country by ip
4848

4949
I use gem [maxminddb](https://github.com/yhirose/maxminddb) and [free GeoIP2 database](https://dev.maxmind.com/geoip/geoip2/downloadable/)\
50-
Country determination by ip occurs in separately background job.
50+
Country determination by ip occurs in separate background job.
5151

5252
### What should we do if the data no longer fits in RAM
5353

@@ -66,11 +66,14 @@ Despite the fact that I requested the same address, all the operations performed
6666
>➜ ~ hey -n 20000 http://localhost:4567/c
6767
6868
>Summary:
69-
Total: 134.3142 secs
70-
Requests/sec: 148.9046
69+
70+
>Total: 134.3142 secs
71+
72+
>Requests/sec: 148.9046
7173
7274
>Status code distribution:
73-
[200] 20000 responses
75+
76+
>[200] 20000 responses
7477
7578
### What did not go well?
7679

0 commit comments

Comments
 (0)