Is CURL suitable for api Gateway Development in php?

Source: Internet
Author: User
Is CURL suitable for api Gateway Development in php? Are there other methods? Is CURL suitable for api Gateway Development in php? Are there other methods?

Reply content:

Is CURL suitable for api Gateway Development in php? Are there other methods?

  1. Curl can be used, but the performance is unknown.

  2. PHP supports socket

  3. The best method is nginx and node. js -- highly concurrent asynchronous I/O Server

  4. Other methods such as erlang, golang, and jvm nio (netty vertx) are more suitable and faster than PHP.

In fact, I have never tried it. I have heard a lot about it. I have never seen a pig run. It's not necessarily true. I hope it will help you.

If you think PHP's curl performance is not good enough, you can use the PECL developed by pure C to expand Swoole. With the support of Swoole, you can use PHP to implement high-performance asynchronous multi-thread server.
Http://www.swoole.com/
The live video of huya game is based on PHP + Swoole to implement the TCP persistent connection PUSH Service. With only two machines, 0.5 million people can be connected online at the same time, and 0.1 million messages can be pushed per second at the peak. A complete PUSH Service solution is established, which provides mobile online/offline push, message persistence, online user and device status management, broadcast Task Distribution queue, external call API, and other functions.

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.