Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
* |
[22:52|jerith@kilrah] ~% virtualenv -p pypy fooenv | |
Running virtualenv with interpreter /usr/local/bin/pypy | |
New pypy executable in fooenv/bin/pypy | |
Installing setuptools, pip, wheel...done. | |
[22:53|jerith@kilrah] ~% . ./fooenv/bin/activate | |
(fooenv)[22:53|jerith@kilrah] ~% python | |
Python 2.7.9 (295ee98b69288471b0fcf2e0ede82ce5209eb90b, Jun 02 2015, 18:26:45) | |
[PyPy 2.6.0 with GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>>> |
def GetLuckyTriple( self ): | |
""" | |
Метод, который ищет отрезок, содержащий минимум функции. | |
""" | |
start = -1 | |
end = self._accuracy * 2 - 1 | |
for i in range( 10000 ): | |
middle = ( start + end ) / 2 | |
if self._IsTripleLucky( start, end, middle ): |
Posted by gregyoung on February 16, 2010
Many people have been getting confused over what CQRS is. They look at CQRS as being an architecture; it is not. CQRS is a very simple pattern that enables many opportunities for architecture that may otherwise not exist. CQRS is not eventual consistency, it is not eventing, it is not messaging, it is not having separated models for reading and writing, nor is it using event sourcing. I want to take a few paragraphs to describe first exactly what CQRS is and then how it relates to other patterns.
Starting with CQRS, CQRS is simply the creation of two objects where there was previously only one. The separation occurs based upon whether the methods are a command or a query (the same definition that is used by Meyer in Command and Query Separation, a command is any method that mutates state and a query is any method that returns a value).