PHP Development API Gateway, forwarding request with curl appropriate?

Source: Internet
Author: User
PHP Development API Gateway, forwarding request with curl appropriate? Is there any other way?

Reply content:

PHP Development API Gateway, forwarding request with curl appropriate? Is there any other way?

  1. Curl can be used, but the performance is not known.

  2. PHP has socket support.

  3. The best method Nginx, node.js--high Concurrent asynchronous I/O server

  4. Other such as Erlang, Golang, JVM NiO (Netty vertx) are more appropriate and faster than PHP

In fact, I have not tried, listen to more, "see Pig Run" just, not necessarily all right, hope to help you.

If you feel PHP curl performance is not enough, you can use peak Brother with pure C developed pecl extension swoole Well, in Swoole support, you can use PHP language to implement high-performance asynchronous multi-threaded server.
http://www.swoole.com/
Tiger tooth game live streaming based on php+swoole implementation of TCP long connection push service, only 2 machines to support 500,000 people simultaneously connected online, peak per second push 100,000 messages. Set up a complete push service program, providing mobile online/offline push, message persistence, on-line 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.