Linux C++ Socket in Action

This article primarily introduces the basics of Linux C++ Socket network programming. Most of the knowledge is sourced from the website: https://www.geeksforgeeks.org/socket-programming-cc/ Socket Programming State Diagram From the diagram, we can see that the server side needs to go through four steps to enter the “waiting for connection” state, while the client side only requires two. Brief Analysis of Socket Programming Functions This analysis is for personal understanding and may have some omissions....

April 30, 2022 · JohnathanLin

Traditional Software Server vs. Game Server Architecture Differences

Project Intelligent Customer Service Web Crawler SLG Game Language Java Python Kotlin Model Asynchronous Event Driven There may not be a discernible model Actor Model Transmission Protocol HTTP HTTP TCP + Netty Transmission Structure JSON JSON Protobuf Database Oracle, Redis MongoDB MySQL, Redis Database Framework MyBatis Python Library (similar to JDBC) Hibernate Cache Architecture Redis for Admin Login Status Possibly only caching page numbers All game data is cached, periodically written to the database Configuration Information Only application....

April 16, 2022 · JohnathanLin