Answer the question
In order to leave comments, you need to log in
Can nginx be used as an instant response buffer for outgoing POST requests from a server?
On a PHP server, an application using Seldaek/monolog for logging. Some of the events I want to send outside to the Telegram bot. For this, there is a native TelegramBotHandler (throwing an Exception if it was not possible to send), and other people's similar handlers.
For each event, an HTTP request is sent to the Telegram API server. It takes time.
What you want: configure nginx so that monolog sends requests to a local URL to nginx on the same server, where it immediately receives an unconditional fixed response “OK”. And then nginx steamed and waited, delivering the request to the real cart server. The real answer from api.telegram.org
is no longer important.
How would this be done without additional contributors besides nginx?
Is it possible to get by with modules that are standard for fresh non-commercial nginx?
Answer the question
In order to leave comments, you need to log in
The real response from api.telegram.org is no longer important.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question