Daily Shaarli
All links of one day in a single page.
Stateless (JWT)
How it works:
User logs in, server creates a JWT containing user data
Server signs the JWT with a secret key
Server sends JWT to client
Client sends JWT with every request
Server verifies the signature and trusts the data inside
Why it scales:
Any server can validate a JWT using the shared secret key
No database lookup needed per request
If you add 100 more servers, they all work immediately
Today, I will focus mostly on Time Complexity from the Perl point of view.
- O(1) - Constant Time
- O(n) - Linear Time
- O(log n) - Logarithmic Time
- O(n ^ 2) - Quadratic Time
- O(n log n) - Linearithmic Time
- O(sqrt n) - Square Root Time
- O(n ^ 3) - Cube Time
- O(2 ^ n) - Exponential Time
- O(n!) - Factorial Time