Meme Game server Development Diary (i) target

Source: Internet
Author: User

In the new environment, the boss gave me time to study next-generation server technology as a long-term task.


The new server wants to achieve the goal:

1, distributed system, the relationship between objects (Entity) is similar to the Actor model.

2, the logic service, is single process, multi-threaded, the object sends the message to communicate, but the simple reading attribute is as direct as possible.

3. You must use the Python language. The development method is similar to the BigWorld engine.


This goal is still very grand, can only be conquered from the bottom step. Here is a record of the process of solving the problem, not only sharing, but also urging themselves not to give up halfway.


I personally love the Skynet framework, and for many reasons the Skynet framework is almost impossible to modify as a Python script.

The reason, in addition to the well-known Gil (Python global Lock) problem, is that Python's interpreter is extremely heavyweight, and if used like Skynet's standalone lua_state, even if you do nothing, you can run out of memory. Therefore, it is still possible to represent each entity with an ordinary object, to save all objects within the process, within the logical process, and there is no concept of "independent service".

However, after studying the Skynet, I think the future will be a lot of reference skynet mature practices, and even copy a lot of C language layer code. After all, and the master of the understanding of the architecture, and C language experience, is really bad too much.



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Meme Game server Development Diary (i) target

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.