Which tool should you choose?
I have an Ubuntu machine with nginx servers.
One of the servers does the following:
-Serves pictures from disk for incoming http requests
-For each request logs user data into a text file
Further, this data is processed either manually or by bash scripts. Not very convenient.
How the server should behave:
-Serve pictures from disk on incoming http requests
-Send user data to a script that would make several requests to web services and write some result to the database (ideally to mysql).
The server response does not depend on the script operation. He gives the picture anyway.
This means that you need to make sure that the script does not block the output stream.
Tell me which tool is better to use for this and how to make friends with nginx?Nginx Conner Reese, Aug 30, 2019
as an option - resolve everything using Lua
To place the code, please use CodePen or similar tool. Thanks you!