G
G
Grandmasterr2020-11-20 11:40:46
Nginx
Grandmasterr, 2020-11-20 11:40:46

Which tool to choose?

There is a machine on Ubuntu, on it there are nginx servers.
One of the servers does the following:
-Gives images from the disk for incoming http requests
-For each request logs user data to a text file
Further, this data is processed either manually or by bash scripts. Not very convenient.

How the server should behave:
-Give images from the disk for 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's response does not depend on the script's operation. He gives the picture anyway.
So, you need to make sure that the script does not block the output stream.
Tell me, what tool is better to use for this and how to make friends with nginx?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zohan1993, 2020-11-20
@Grandmasterr

as an option - resolve everything using Lua
https://github.com/openresty/lua-nginx-module
https://github.com/openresty/lua-resty-mysql
https://github.com/mirakui/nginx- lua-mysql-example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question