Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
Dynamo: How to Design a Key-value Store? | |
Amazon’s Dynamo : https://www.allthingsdistributed.com/2007/10/amazons_dynamo.html | |
Eventually Consistent : https://www.allthingsdistributed.com/2007/12/eventually_consistent.html | |
Bigtable : https://research.google/pubs/pub27898/ | |
DynamoDB : https://www.allthingsdistributed.com/2012/01/amazon-dynamodb.html | |
CRDT : https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type | |
A Decade of Dynamo : https://www.allthingsdistributed.com/2017/10/a-decade-of-dynamo.html | |
Riak : https://docs.riak.com/riak/kv/2.2.0/learn/dynamo/ | |
Dynamo Architecture : https://www.youtube.com/watch?v=w96lLsbI1q8 |
// allows YYYY/M/D and periods instead of slashes | |
// http://stackoverflow.com/questions/24989065/trying-to-validate-yyyy-mm-dd | |
/^\d{4}[\/.]\d{1,2}[\/.]\d{1,2}$/ | |
// YYYY-MM-DD and YYYY-M-D | |
// http://stackoverflow.com/questions/6177975/how-to-validate-date-with-format-mm-dd-yyyy-in-javascript | |
/^\d{4}\-\d{1,2}\-\d{1,2}$/ | |
// YYYY-MM-DD | |
// https://gist.github.com/arth2o/8471150 |
Picking the right architecture = Picking the right battles + Managing trade-offs
1) see re: increasing shmmax http://stackoverflow.com/a/10629164/1283020 | |
2) add to postgresql.conf: | |
shared_preload_libraries = 'pg_stat_statements' # (change requires restart) | |
136 pg_stat_statements.max = 1000 | |
137 pg_stat_statements.track = all | |
3) restart postgres | |
4) check it out in psql |