I am very new to Spring XD and using xd-singlenode to run a Spring XD locally. I have created few streams and taps. I would like to know the following: 

1. How can I persist stream and job definitions to a database so I do not need to recreate them whenever I restart the server (for local and distributed mode).
2. How should I implement a pub-sub mechanism to send large volumes of binary/text data to the requester using Spring XD.

Thanks!