search

Home  >  Q&A  >  body text

Problems with performance optimization of PHP business interface in SOA?

May I ask if you have any optimization methods or points to pay attention to when calling PHP cross-module interfaces?

女神的闺蜜爱上我女神的闺蜜爱上我2807 days ago939

reply all(2)I'll reply

  • phpcn_u1582

    phpcn_u15822017-06-13 09:23:53

    Use rpc calls between internal applications to support concurrent calls. . . . As for the slow interface call you mentioned, you still need to locate the cause first and record the program running time, so that you can know whether it is caused by internal problems in the program or external factors. . . The development environment is not fast 150ms

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-06-13 09:23:53

    If you use SOA architecture, you must set a timeout for each interface when calling the interface. The interface provided by PHP should be stress tested to see how much concurrency is supported. Look at qps and judge whether the interface response time is normal based on the average response time of the interface. If not, Normally, you need to review the code to analyze the bottleneck

    reply
    0
  • Cancelreply