When I started looking into this for my own use cases it was not obvious what the right approaches were. Hopefully this helps other folks!
Reply on news.ycombinator.com