On this publication, we’ll cowl the next subjects:
-
Algorithms you must know earlier than taking System Design Interviews
-
How you can retailer passwords safely within the database? (YouTube video)
-
How do push notifications work?
-
Matters for subsequent week
Algorithms you must know earlier than taking System Design Interviews
What are a few of the algorithms you must know earlier than taking system design interviews?
I put collectively an inventory and defined why they’re essential. These algorithms will not be solely helpful for interviews however good to know for any software program engineer.
One factor to bear in mind is that understanding “how these algorithms are utilized in real-world programs” is usually extra essential than the implementation particulars in a system design interview.
What do the celebs imply within the diagram?
It’s very troublesome to rank algorithms by significance objectively. I’m open to solutions and making changes.
5-star: Crucial. Attempt to perceive the way it works and why.
Three-star: Essential to some extent. Chances are you’ll not must know the implementation particulars.
One-star: Superior. Good to know for senior candidates.
Over to you: did I miss something essential on the listing? Which of them have you learnt and which you don’t?
How you can retailer passwords safely within the database? (YouTube video)
Our YouTube video:
How are notifications pushed to our telephones or PCs?
A messaging resolution (Firebase) can be utilized to assist the notification push.
The diagram beneath exhibits how Firebase Cloud Messaging (FCM) works.
FCM is a cross-platform messaging resolution that may compose, ship, queue, and route notifications reliably. It gives a unified API between message senders (app servers) and receivers (shopper apps). The app developer can use this resolution to drive consumer retention.
Steps 1 – 2: When the shopper app begins for the primary time, the shopper app sends credentials to FCM, together with Sender ID, API Key, and App ID. FCM generates Registration Token for the shopper app occasion (so the Registration Token can be referred to as Occasion ID). This token should be included within the notifications.
Step 3: The shopper app sends the Registration Token to the app server. The app server caches the token for subsequent communications. Over time, the app server has too many tokens to take care of, so the advisable follow is to retailer the token with timestamps and to take away stale tokens once in a while.
Step 4: There are two methods to ship messages. One is to compose messages instantly within the console GUI (Step 4.1,) and the opposite is to ship the messages from the app server (Step 4.2.) We are able to use the Firebase Admin SDK or HTTP for the latter.
Step 5: FCM receives the messages, and queues the messages within the storage if the gadgets will not be on-line.
Step 6: FCM forwards the messages to platform-level transport. This transport layer handles platform-specific configurations.
Step 7: The messages are routed to the focused gadgets. The notifications could be displayed based on the configurations despatched from the app server [1].
Over to you: We are able to additionally ship messages to a “matter” (identical to Kafka) in Step 4. When ought to the shopper app subscribe to the subject?
Reference Materials: Google firebase documentation
Subsequent week, we are going to cowl:
-
What occurs while you swipe your Visa/Grasp card?
-
How does 2-factor authentication work?
-
Design a proximity service. Crucial for interviews. Subscribe to our YouTube channel so that you gained’t miss it.
-
search engine marketing
-
How does QR code cost work?
Our bestselling e book “System Design Interview – An Insider’s Information” is on the market in each paperback and digital format.
Paperback version: https://geni.us/XxCd
Digital version: https://bit.ly/3lg41jK
New System Design YouTube channel: https://bit.ly/ByteByteGoVideos