How best to engage Discourse for a larger WordPress magazine?

It would be simpler to not automatically redirect the user, but yes what you have outlined is correct. After the user clicks the link to generate the topic, the script would make periodic requests to get the topic URL from the WordPress server. Once it had the URL, it would redirect the user to the Discourse topic.