mail.google.com-_3
mail.google.com-_3
ByteByteGo
Mar 22
Redis VS Memcached
SPONSOR US
1/6
Step 1: A user visits Gmail, or any email service. Gmail finds the user is
not logged in and so redirects them to the SSO authentication server,
which also finds the user is not logged in. As a result, the user is
redirected to the SSO login page, where they enter their login
credentials.
Steps 4-7: Gmail validates the token in the SSO authentication server.
The authentication server registers the Gmail system, and returns
“valid.” Gmail returns the protected resource to the user.
Steps 9-10: YouTube finds the user is not logged in, and then requests
authentication. The SSO authentication server finds the user is already
logged in and returns the token.
2/6
Step 11-14: YouTube validates the token in the SSO authentication
server. The authentication server registers the YouTube system, and
returns “valid.” YouTube returns the protected resource to the user.
The process is complete and the user gets back access to their account.
Virtual Threads do not map 1:1 to OS Threads and do not replace the original
Platform Threads. The Platform Threads are backed by the OS Threads and
are sometimes also known as Carrier Threads in this context.
3/6
1. Virtual Threads run on top of Platform Threads. The JVM schedules
them onto a small number of Platform Threads.
3. Virtual Threads can also handle CPU-intensive work, but their real
advantage is in scenarios with a high number of I/O-bound or
concurrent tasks.
Redis VS Memcached
The diagram below illustrates the key differences.
4/6
Recording the number of clicks and comments for each post (hash)
Sorting the commented user list and deduping the users (zset)
Here’s the Shopify Tech Stack, which powers more than 600,000 merchants
and serves 80,000 requests per second during peak traffic.
1. Programming Languages & UI: They use Ruby, Typescript, Lua, and
React
5/6
2. Backend & Servers: They use Ruby on Rails, Nginx, OpenResty, and
GraphQL.
6/6