Skip to content

Game Server Architecture QA ​

This index covers general game-server knowledge and external engine mechanisms. It does not define Apollo's architecture or claim implemented capabilities. BigWorld/KBEngine pages describe external engines only. See the architecture overview and architecture status for Apollo's target terminology and implementation boundaries.

1. Architecture Design ​

#QuestionStatusLink
1Draw the MMORPG server architecture you know, explaining each component's responsibilities and communicationDoneq1-server-architecture.md
2What do CellApp and BaseApp each do in the BigWorld architecture? Why is it split this way?Doneq2-bigworld-cell-base.md
3What is AOI (Area of Interest)? What implementations exist? What are the pros and cons of each?Doneq3-aoi-implementation.md
4How are gameplay instances created, completed, and destroyed?Doneq4-instance-boundary.md
5How should the server be designed to support dynamic scaling?Doneq5-dynamic-scaling.md
6Single-server architecture vs distributed architecture — how to choose?Doneq6-single-vs-distributed.md
7In-process architecture vs multi-process architecture — what are the respective advantages and disadvantages?Doneq7-process-architecture.md
8How do you design to avoid a single point of failure?Doneq8-avoid-spof.md
9What if CellAppMgr goes down? What solutions exist?Doneq9-cellappmgr-failure.md
10How do you implement cross-server features (cross-server battlefields, cross-server chat)?Doneq10-cross-server.md

2. Network Communication ​

#QuestionStatusLink
11TCP vs UDP vs KCP — what are their respective use cases in MMOs?Doneq11-transport-protocol.md
12How do you handle network jitter and packet loss?Doneq12-network-jitter.md
13What is reliable UDP? How do you implement it?Doneq13-reliable-udp.md
14How do you design a message protocol? Protobuf vs JSON vs a custom protocol?Doneq14-message-protocol.md
15How do you implement message compression?Doneq15-message-compression.md
16What is synchronization? How do client and server states stay in sync?Doneq16-state-sync.md
17How do you handle latency compensation and prediction?Doneq17-latency-compensation.md
18What is the Ghost/Shadow mechanism?Doneq18-ghost-mechanism.md
19How do you prevent message replay attacks?Doneq19-replay-attack.md
20How does a long-lived connection keep its heartbeat? How do you design disconnect and reconnect?Doneq20-heartbeat-reconnect.md
21What application scenarios does WebSocket have in MMOs?Doneq21-websocket-mmo.md
22How do you handle out-of-order network messages?Doneq22-out-of-order.md
23How do you implement RPC calls?Doneq23-rpc-implementation.md
24How do you design a broadcast mechanism? How do you optimize large-scale broadcasts?Doneq24-broadcast-optimization.md
25What determines the connection limit? How do you break the C10K problem?Doneq25-c10k-problem.md
26KBEngine message routing: how are messages efficiently forwarded between Gateway, Proxy, and CellApp?Doneq26-kbengine-message-routing.md
27How do Real, Ghost, and Shadow entities convert between each other? How is synchronization efficient?Doneq27-entity-ghost-shadow-relationship.md
28Does KBEngine have a registry center? How are CellApps deployed and communicated? Is the Actor model applicable?Doneq28-kbengine-registry-actor-transport.md
29How do CellApps communicate with each other? How do they discover their space location?Doneq29-cellapp-communication-space-discovery.md
30What is a KBEngine Space? How does it differ from physical space partitioning?Doneq30-kbengine-space-concept.md
31How does KBEngine broadcast efficiently? How does it ensure messages are not duplicated?Doneq31-kbengine-broadcast-dedup.md
32How do KBEngine CellApps communicate on the same machine vs across machines? Is there source-code evidence?Doneq32-kbengine-cellapp-communication.md
33Why doesn't KBEngine pursue extreme performance optimization? If you were to, how would you improve it?Doneq33-kbengine-performance-optimization.md

3. Data Storage ​

#QuestionStatusLink
26When is player data stored to the database? Full save vs incremental save?Doneq26-data-persistence.md
27How do you design database table structures?Doneq27-database-schema.md
28How do you solve data consistency issues?Doneq28-data-consistency.md
29What application scenarios does Redis have in MMOs?Doneq29-redis-in-mmo.md
30How do you design a leaderboard system?Doneq30-leaderboard-system.md
31How do you design a friend system?Doneq31-friend-system.md
32How do you design a mail system?Doneq32-mail-system.md
33How do you handle hot data?Doneq33-hot-data.md
34How do you design a database connection pool?Doneq34-connection-pool.md
35How do you implement database sharding?Doneq35-database-sharding.md
36How do you handle database transactions?Doneq36-database-transaction.md
37How do you implement a cache eviction strategy for data?Doneq37-cache-eviction.md
38How do you prevent data from being tampered with?Doneq38-data-integrity.md

4. Game Logic ​

#QuestionStatusLink
39How do you design a combat system?Doneq39-combat-system.md
40What is the ECS architecture? What advantages does it have in games?Doneq40-ecs-architecture.md
41How do you design a skill system?Doneq41-skill-system.md
42How do you design a Buff/Debuff system?Doneq42-buff-system.md
43How do you design an attribute system?Doneq43-attribute-system.md
44How do you design an inventory system?Doneq44-inventory-system.md
45How do you design a trading system?Doneq45-trading-system.md
46How do you design an auction house?Doneq46-auction-house.md
47How do you design a guild system?Doneq47-guild-system.md
48How do you design a quest system?Doneq48-quest-system.md
49How do you design an instance system?Doneq49-instance-system.md
50How do you design a matchmaking system?Doneq50-matchmaking.md
51How do you design an AI system?Doneq51-ai-system.md
52How do you design a pathfinding system?Doneq52-pathfinding.md
53How do you design scene management?Doneq53-scene-management.md
54How do you handle multiple players contending for a monster/resource simultaneously?Doneq54-loot-contention.md
55How do you design damage calculation?Doneq55-damage-calculation.md

5. Performance Optimization ​

#QuestionStatusLink
56How do you do performance analysis? What tools are there?Doneq56-profiling-tools.md
57How do you optimize memory usage?Doneq57-memory-optimization.md
58What is an object pool? How do you design one?Doneq58-object-pool.md
59How do you reduce lock contention?Doneq59-reduce-lock-contention.md
60How do you design a timer system?Doneq60-timer-system.md
61How do you optimize the logging system?Doneq61-log-optimization.md
62How do you do stress testing?Doneq62-stress-testing.md
63How do you optimize database queries?Doneq63-database-optimization.md
64How do you optimize network bandwidth?Doneq64-bandwidth-optimization.md
65How do you reduce CPU cache misses?Doneq65-cache-miss.md
66What applications does SIMD have in games?Doneq66-simd-gaming.md
67How do you optimize hotspot code?Doneq67-hotspot-optimization.md
68How do you design memory monitoring?Doneq68-memory-monitoring.md
69What issues should be considered for a single server hosting 5000 players?Doneq69-5000-ccu.md
70How do you design a high-performance message queue?Doneq70-message-queue.md

6. Concurrency and Multithreading ​

#QuestionStatusLink
71Multithreading vs multiprocessing — how to choose?Doneq71-thread-vs-process.md
72How do you avoid deadlocks?Doneq72-avoid-deadlock.md
73What is the Actor model? What advantages does it have?Doneq73-actor-model.md
74How do you design lock-free data structures?Doneq74-lock-free.md
75How do you design a thread pool? How are tasks scheduled?Doneq75-thread-pool.md
76How do you implement asynchronous I/O?Doneq76-async-io.md
77What are the differences between IOCP and Epoll?Doneq77-iocp-epoll.md
78How do you handle race conditions?Doneq78-race-condition.md
79How do you design thread-safe containers?Doneq79-thread-safe-container.md
80What are the application scenarios for coroutines in a game server?Doneq80-coroutine.md

7. Security ​

#QuestionStatusLink
81How do you prevent cheating tools?Doneq81-anti-cheat.md
82How do you prevent item duplication?Doneq82-item-duping.md
83How do you prevent speed hacks?Doneq83-speed-hack.md
84How do you prevent memory modification?Doneq84-memory-hack.md
85How do you prevent packet forgery?Doneq85-packet-forgery.md
86How do you design a permission system?Doneq86-permission-system.md
87How is sensitive data encrypted in transit?Doneq87-encryption.md
88How do you prevent SQL injection?Doneq88-sql-injection.md
89How do you design rate limiting and anti-abuse mechanisms?Doneq89-rate-limiting.md
90How do you counter DDoS attacks?Doneq90-ddos-protection.md

8. Operations and Monitoring ​

#QuestionStatusLink
91How do you monitor server state?Doneq91-server-monitoring.md
92How do you design a logging system?Doneq92-log-system.md
93How do you quickly locate production issues?Doneq93-troubleshooting.md
94How do you implement hot updates?Doneq94-hot-reload.md
95How do you implement canary deployment?Doneq95-canary-deployment.md
96How do you design configuration management?Doneq96-config-management.md
97How do you implement server restart without losing data?Doneq97-graceful-shutdown.md
98How do you design a GM command system?Doneq98-gm-command-system.md
99How do you implement server cluster management?Doneq99-cluster-management.md
100How do you do capacity planning?Doneq100-capacity-planning.md

9. Scripting Systems ​

#QuestionStatusLink
101Why embed a scripting language? Lua vs Python — how to choose?Doneq101-script-language.md
102How does C++ call Lua? How does Lua call C++?Doneq102-cpp-lua-binding.md
103How do you implement hot updates for scripts?Doneq103-script-hot-reload.md
104How do you limit script execution time?Doneq104-script-timeout.md
105How do you debug scripts?Doneq105-script-debug.md

10. Field Experience ​

#QuestionStatusLink
106What has been the hardest technical problem you have faced? How did you solve it?Doneq106-toughest-problem.md
107What severe production incidents have you seen? How were they handled?Doneq107-production-incident.md
108Building an MMO server from 0 to 1 — what is your approach?Doneq108-mmo-from-scratch.md
109How do you assess a server's hosting capacity?Doneq109-capacity-assessment.md
110What do you consider the hardest part of an MMORPG server?Doneq110-hardest-part.md
111How do you collaborate with client-side engineers?Doneq111-client-collab.md
112How do you communicate technical plans with game designers?Doneq112-designer-comm.md
113How do you balance code quality and development speed?Doneq113-quality-vs-speed.md
114Which open-source game server frameworks are you familiar with? What are the features of each?Doneq114-open-source-frameworks.md
115If you were to redesign it, how would you improve the current framework?Doneq115-framework-redesign.md
116What C++ design pattern practices exist in KBEngine? Why designed this way?Doneq116-cpp-design-patterns-in-kbengine.md

11. Deep-Dive Questions ​

#QuestionStatusLink
117If you have already answered the MMO fundamentals, what deeper questions should you continue thinking about?Doneq117-interviewer-follow-up.md

Progress: 117/117 done

117 questions in total, covering the core areas of MMO framework development

Released under the MIT License