Hi list,

I recently experimented with the Lua API to check out it's capabilities
and wanted to show off the results:

I implemented a very simple short URL service entirely in haproxy with
Redis as it's backend. No backend service needed :-)

Thanks to Thierry for his Redis Connection Pool implementation:
http://blog.arpalert.org/2018/02/haproxy-lua-redis-connection-pool.html

Thierry, note that you made a small typo in your pool: r.release(conn)
in renew should read r:release(conn).

Blog post  : https://bl.duesterhus.eu/20180511/
GitHub     : https://github.com/TimWolla/h-app-roxy
Live Demo  : https://bl.duesterhus.eu/20180511/demo/DWhxJf2Gpt
Hacker News: https://news.ycombinator.com/item?id=17049715

Best regards
Tim Düsterhus

PS: Don't use this at home or at work even :-)

Reply via email to