WeChat public platform background slow response how to reply to empty strings and then call the Customer Service Interface

Source: Internet
Author: User
What is the format of this empty string? Is it in the format of publicfunctionresponseTextcs () {echo & quot; return & quot;}? Why is the format of the empty string repeatedly sent? Is public function responseTextcs ()
{
Echo "";
Return "";
}
In this format? Why do I send repeated requests?

Reply content:

What is the format of this empty string? Is public function responseTextcs ()
{
Echo "";
Return "";
}
In this format? Why do I send repeated requests?

It should be written like this... For more information about calling the customer service interface, see customer service ..

No one answered this question.
This is also the problem I encountered.
After echo "", there are other business processes, such as DB operations, which may lead to latency. My understanding is that Php is a single thread. Therefore, the solution is to use an asynchronous solution. However, php does not seem to have a good asynchronous solution to handle such a problem.

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.