Problems encountered
Connection pool. Because PHP does not have a connection pool, when high concurrency there will be a large number of database connections directly impact on MySQL, eventually causing the database to hang out. Although Swoole has a connection pool, but Swoole is just an extension of PHP, before using the Swoole process has stepped a lot of pits. After our discussion, we still feel that using Golang is more controllable.
Selection of Frames
YAF is always used in PHP, so it's natural to choose gin in go. Because we have always been the principle: as close as possible to the underlying code.
An overly well-packaged framework is not conducive to mastering and understanding the entire system. I don't need you to tell me what this directory is for, how to write this configuration, how to use this function, and so on.
>>> Read the full text