-
Links
Resumegoogle drive第三人称:Chris Zhong is a Software Engineer with 2 years of experience in software development. At BOCUSA and Fiserv, he worked on scalable microservices, Kafka, and CI/CD pipelines, improving API latency and system reliability. He h...…
-
StreamBuffer
Scannertry to aviod using scanner, because read each line contains an I/O operation.BufferReader will preload a batch of data. (efficient)// 此种情况适用于按token读取,如果有换行符和空格则无法区别行public static int[][] mat;public static void main() { BufferReader br = ...…
-
Kafka Dead Letter Queue
OverviewA Kafka Dead Letter Queue is an essential part of building robust, fault-tolerant data pipelines. Kafka’s distributed nature makes it highly reliable, but that does not mean every message will be successfully processed. Data errors, consum...…
-
System design - Url Shorterner
clairify requirements & back-of-the-envelope estimationurl shortern basiclly need to handle 2 flow: user give a long url, return a short url user type a short url, redirect to original urlWill cover this later, focus on algorithm & deep ...…
-
System design basic - Unique ID generator
Common way to generate Unique ID in distributed systemIn distributed system, it is not enough to rely on auto_increment provided by a transactional database.multi-master replication:Suppose we have k databases, each database increase by k, there w...…
-
System design basic - consistent hasing
Round RobinserverIndex = hash(key) % n: you have n cache servers, want to balance the load, then use: serverIndex = hash(key) % nIt is simple but when there is a server offline, n changed, it need rehashing and all server are routed to different c...…
-
System design - Rate limiter
Rate Limitera rate limiter is used to control the rate of traffic sent by a client or aservice.why prevent Dos attach to prevent prevent server overload reduce cost if using third party api, like retireve balanceimplement client side: throttle ...…
-
System design basic - Concurrency Race Condition
Race Condition…
-
System design - Payment - Amazon
Payment System - payment backend of e-commenrce appfunc: pay-in flow pay-out flownonfunc: reliability: handle failed payments reconciliationdeepDive: PSP integration reconciliation handle payment processing delays h...…
-
System design - Uber
System Design - UberReferenceFunctional Requirements1.Users should be able to see all the cabs available with minimum price and ETA2.Users should be able to book a cab for their destination3.Users should be able to see the location of the driver4....…