Joke Collection Website - Public benefit messages - How to judge the timeout of front-end calling back-end interface
How to judge the timeout of front-end calling back-end interface
Record the request time (start time) when the front end requests, and record the curl status value (end time) when the interface returns to the data interface.
The acquisition method of status value: $ httpcode = curl _ getinfo ($ ch, curl info _ http _ code);
For example, set 10s to timeout.
When the end time-start time is 10s, it is recorded in the redis queue.
When the state value! = 200, recorded in redis queue.
Then the back end consumes queues, such as writing data, or sending text messages, emails and so on.
- Previous article:Will you call before renting and delivering?
- Next article:How to cancel the automatic renewal of oral English
- Related articles
- How to remove QQ protection mode?
- Where are the details of Xiaomi headset equipment?
- The most wonderful May Day blessing message
- Under what circumstances will I receive SOS messages?
If you receive SOS emergency help information from your family, you need to call the police immediately, show the contents of the message to
- How to cancel SMS notification service in mobile banking?
- How to turn up the sound of the old machine?
- How to treat an unreasonable old man?
- A model letter of condolence from a friend's father.
- The mobile phone suddenly received a lot of online loan registration verification codes?
- An elusive circle of friends.