Thank you for your comment :-)
The example in the demo helps our users to better understand the product and how to work with the APIs. The code for production may be more complex according to the use case, security requirement and other concerns.
You can find more examples on our open-source How-To website: https://github.com/alibabacloud-howto
We encourage our users to share their code in open source community.