Welcome! Log In Create A New Profile

Advanced

Show: h-app-proxy – Application server inside haproxy

Posted by Tim Düsterhus 
Tim Düsterhus
Show: h-app-proxy – Application server inside haproxy
May 11, 2018 09:10PM
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 :-)
Aleksandar Lazic
Re: Show: h-app-proxy – Application server inside haproxy
May 12, 2018 11:30AM
Hi Tim.

Am 11.05.2018 um 20:57 schrieb Tim Düsterhus:
> 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 :-)

Cool stuff ;-)
Thanks for sharing.

> 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 :-)

;-)

Best regards
Aleks
Thierry FOURNIER
Re: Show: h-app-proxy – Application server inside haproxy
May 18, 2018 12:50PM
Hi,

This is a great usage of Lua. I add a link on my own blog:

http://blog.arpalert.org/p/interesting-links.html

Thierry


On Sat, 12 May 2018 11:23:31 +0200
Aleksandar Lazic <[email protected]> wrote:

> Hi Tim.
>
> Am 11.05.2018 um 20:57 schrieb Tim Düsterhus:
> > 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 :-)
>
> Cool stuff ;-)
> Thanks for sharing.
>
> > 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 :-)
>
> ;-)
>
> Best regards
> Aleks
>
Thierry,

Am 18.05.2018 um 12:47 schrieb Thierry FOURNIER:
> Hi,
>
> This is a great usage of Lua. I add a link on my own blog:
>
> http://blog.arpalert.org/p/interesting-links.html

Thank you! Don't forget to fix the typo in your redis connection pool I
mentioned in my mail.

Best regards
Tim Düsterhus
Thierry FOURNIER
Re: Show: h-app-proxy – Application server inside haproxy
May 18, 2018 04:50PM
On Fri, 18 May 2018 16:30:46 +0200
Tim Düsterhus <[email protected]> wrote:

> Thierry,
>
> Am 18.05.2018 um 12:47 schrieb Thierry FOURNIER:
> > Hi,
> >
> > This is a great usage of Lua. I add a link on my own blog:
> >
> > http://blog.arpalert.org/p/interesting-links.html
>
> Thank you! Don't forget to fix the typo in your redis connection pool I
> mentioned in my mail.


Thanks, I missed it. Done.

>
> Best regards
> Tim Düsterhus
Sorry, only registered users may post in this forum.

Click here to login