Posts

Showing posts from October, 2023

QNAP NAS

QNAP online resources collection

Image
QNAP is the famous private cloud solution provider, the main product is NAS (Network attach Storage), this article collect QNAP online resources and help QNAPer / NAS beginner quickly know how to select NAS and find application information, if any suggestion website, welcome to comment and share with us. QNAP website  https://www.qnap.com/en/ Topic include NAS, Operation System, Application, Tutorial / FAQ , Forum and Customer Service.

[System Design] How would you design autocomplete for a search engine?

 Designing an autocomplete feature for a search engine involves understanding user behavior, optimizing for speed and relevance, and ensuring the system can handle a large number of requests. Here's a step-by-step guide on how you might approach this: 1. **Requirement Gathering (需求收集)**    - **User Experience (用戶體驗)**: Understand the latency requirements. Autocomplete suggestions need to be fast, typically returning in under 100 milliseconds.    - **Scale (規模)**: Predict the number of requests per second during peak times. This will help determine infrastructure needs.    - **Relevance (相關性)**: Ensure the suggestions are relevant to the users. 2. **Data Collection (數據收集)**    - Gather a list of commonly searched queries from the search logs.    - Monitor user interactions with the autocomplete feature to refine and improve over time. 3. **Trie Data Structure (Trie數據結構)**    - Use a Trie (or Prefix Tree) which is especially...

[System Design] How would you design a video streaming server

Designing a video streaming server involves multiple technical aspects and intricate architectural decisions. Here's a high-level consideration and recommended steps from a system design perspective: 1. **Define Requirements (確定需求)**:    - **Throughput (吞吐量)**: How many client connections does your server need to support simultaneously?    - **Latency (延遲)**: How quickly should the streaming begin to play?    - **Video Quality (視頻質量)**: Are you supporting resolutions like 4K, 1080p, 720p, etc.?    - **Streaming Type (串流類型)**: Do you need to support live streaming or VOD (Video on Demand)? 2. **Choose Appropriate Protocols (選擇適當的協議)**:    - **HLS (HTTP Live Streaming)** and **DASH (Dynamic Adaptive Streaming over HTTP)** are popular streaming protocols today. Both support Adaptive Bitrate Streaming (ABR), adjusting video quality dynamically based on a user's network condition.    - **RTMP (Real-Time Messaging Protocol)**: Though...