NKI is the product of the combination of NFT games and social networking sites. It relies on a large SNS network community. The game operation is simple and emphasizes the interaction between friends. It will become the fastest-growing category in the NFT game market in the future and has excellent market vitality. Unlike traditional large-scale online games, NKI is based on Web 3.0 technology and relies on the open platform interface (open API) provided by SNS. It belongs to the DAPP based on the browser kernel and the combination of games and anonymous friends. At present, flash is widely used as the graphics player in the online social game client, and most of the game logic is completed on the server. The server-side includes connection server, game server, global message server, database server, etc. Due to a large amount of logic processed by the server, and social games have the characteristics of supporting multiple social platforms, a large number of users, and high concurrent access when many players are online. At the same time, to ensure the game's speed, the server needs to support high concurrency, high load and requires the ability to respond quickly. First, think about using the database to do. Regardless of what kind of database (MS-SQL, Oracle, Postgres, mys, QL inno dB or others) is used for the time being, the implementation of transactions (acid, atomicity, consistency, isolation and durability) requires much overhead, especially when the hard disk is used, which means that the query may be blocked. When using a database that does not contain transactions (MySQL my ISAM), the above overhead does not exist, but the write thread may block the read thread. Therefore, we must find a solution that never blocks.
Then think about using shared memory. The s