Nginx plus: sticky session with dynamic upstreams?

Wonder what my options are in nginx plus to have sticky requests when
upstream are dynamic. As I understand there are 2 ways to have dynamic
upstreams in nginx plus: dns lookup with resolve/resolver or using
ngx_http_upstream_conf_module. Will any/both work ?

Posted at Nginx Forum: