Geek Building The Bridge Part 2 / 804 posts / 1,947 comments / feed / comments feed

Dear lazy web, does Lua have regex support?

mysql-proxy, being developed by MySQL AB itself, is very powerful tool to have. It can intercept raw mysql packets from authentication to query and query result. Creating a read/write load balancer has never been easier. Instead of filtering query (as seen in sqlrelay), we can use mysql-proxy to defines which back-end should be used for reading (–proxy-read-only-backend-addresses) or writing. No need to mess with each query executed. However, I miss regex in query filter or router of sql-relay. I wonder if we can use regex in Lua so we don’t have to do substr thingy in read_query() hook.

Powered by ScribeFire.

Sphere: Related Content

2 Comments

  1. stwn — 2/14/2008 #

    mainan Lua?

  2. Akhmad Fathonih — 2/14/2008 #

    iya, gara-gara mainan mysql-proxy :D

Leave a comment

« Back to text comment