Latest Articles
Mainstream Algorithms in Recommendation Systems
Recommendation systems are information filtering systems designed to suggest potentially interesting content to users based on their preferences and behavioral data. From product recommendations on e-commerce websites to personalized playlists on streaming platforms, recommendation systems have perm
...
More >>
2024-11-08
Algorithms
How to create a Flutter app
Introduction
Flutter is an open source user interface (UI) toolkit developed by Google for building high-performance, beautiful, and smooth mobile applications on multiple platforms. It uses the Dart programming language and provides a wealth of UI components and tools to quickly build modern applic
...
More >>
The implement of a simplified version of "promise"
promise Key pointsThe ‘Promise’ object represents an asynchronous operation with three states: ‘pending’ (in progress), ‘fulfilled’ (successful), and ‘rejected’ (failed)
A Promise must be in one of the following states:
pending: An initial state that is neither cashed nor rejected.
fulfilled: The o
...
More >>
2024-10-09
promise
How to deal with heavy traffic and high concurrenc
The so-called high concurrency refers to: at the same time or within a very short period of time, there are a large number of requests to reach the server, each request requires the server to spend resources to process, and make the corresponding feedback.
Commonly used ideas and tools for high conc
...
More >>
2024-09-30
high concurrenc
/
heavy traffic
Understanding Nginx: A Comprehensive Guide
IntroductionNginx (pronounced “engine-x”) is an open-source web server that also functions as a reverse proxy, load balancer, mail proxy, and HTTP cache. Created by Igor Sysoev and publicly released in 2004, Nginx has grown in popularity due to its high performance, stability, rich feature set, simp
...
More >>
2024-09-20
Nginx
Usage of UIStackView
In the past, iOS page layout was relatively traditional, and most people used Frame or AutoLayout for layout. After iOS9, UIStackView was introduced. UIStackView is a control for linear layout that can automatically manage subview layout and automatic filling. It draws on the front-end layout algori
...
More >>
2024-09-06
iOS
/
UIStackView
Android Communication Security
Component Communication SecurityWhat is local denial of service?Before understanding local denial of service, let’s briefly understand denial of service attacks (dos attacks) and distributed denial of service attacks (ddos).
The so-called denial of service attack is to occupy all the service threads
...
More >>
2024-08-30
Android
An Introduction to Time Wheels
1.conceptThe Timing Wheel is the result of George Varghese and Tony Lauck’s 1996 paper [Hashed and Hierarchical Timing Wheels: data structures to efficiently implement a timer facility], which is widely used in the Linux kernel and is one of the implementations and foundations of Linux kernel timers
...
More >>
2024-08-20
Timing Wheel
About the TIME-WAIT state
Let’s rewind a bit and have a close look at this TIME-WAIT state. What is it? See the TCP state diagram below:
TCP state diagram
Only the end closing the connection first will reach the TIME-WAIT state. The other end will follow a path which usually permits it to quickly get rid of the connection.
...
More >>
2024-07-22
TIME-WAIT
/
TCP
Take You Step by Step to Implement the Simplest Distributed System Log: Full Link Tracking
backgroundWith the popularity of microservices, many companies have split the system into many microservices according to business boundaries, when troubleshooting and checking logs. Because business links run through many microservice nodes, it becomes very difficult to locate the logs of a certain
...
More >>
2024-06-26
Distributed System
/
Full Link Tracking