# Nginx to recive json and update mysql (im newbe)

**URL:** <https://www.ruby-forum.com/t/nginx-to-recive-json-and-update-mysql-im-newbe/217714>\
**Category:** NGINX\
**Created:** [March 9, 2012, 4:32pm UTC](https://www.ruby-forum.com/t/nginx-to-recive-json-and-update-mysql-im-newbe/217714 "2012-03-09T16:32:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 9, 2012, 4:32pm UTC](https://www.ruby-forum.com/t/nginx-to-recive-json-and-update-mysql-im-newbe/217714/1 "2012-03-09T16:32:12Z")

</div>

Hello all  
im new to nginx , im thinking about testing the server to do the job of  
getting json requests from clients  
extract the json data and update mysql server .  
what shell i do and how should i configure the server? which module  
should i compile into the server to do this job ?  
Thanks for helping

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,223678,223678#msg-223678](http://forum.nginx.org/read.php?2,223678,223678#msg-223678)

---

<div class="post-metadata">

**Author:** ![umen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/ec9cab/32.png) [@umen](https://www.ruby-forum.com/u/umen)\
**Post date:** [March 9, 2012, 5:46pm UTC](https://www.ruby-forum.com/t/nginx-to-recive-json-and-update-mysql-im-newbe/217714/2 "2012-03-09T17:46:12Z")

</div>

On Fri, 2012-03-09 at 10:31 -0500, umen wrote:

> Hello all  
> im new to nginx , im thinking about testing the server to do the job of  
> getting json requests from clients  
> extract the json data and update mysql server .  
> what shell i do and how should i configure the server? which module  
> should i compile into the server to do this job ?  
> Thanks for helping

This can’t be done with plain Nginx. Typically you would utilize a  
backend server such as Tornado, node.js, Ruby on Rails, PHP, etc to  
parse the JSON and store it in MySQL.

However, you may be able to leverage the lua module to do what you want.

> **[GitHub - openresty/lua-nginx-module: Embed the Power of Lua into NGINX HTTP servers](https://github.com/openresty/lua-nginx-module)**
>
> Embed the Power of Lua into NGINX HTTP servers

Regards,  
Cliff
