How Do I Send and Retrieve Data Using DIS?
- Create a DIS stream. Obtain your Access Key ID/Secret Access Key (AK/SK) pair from the Identity and Access Management (IAM) service.
- Download dis-sdk-X.X.X.zip from https://dis-publish.obs-website.cn-north-1.myhwclouds.com/. Decompress your SDK package and sample project from dis-sdk-X.X.X.zip.
- Create a producer project and configure the user AK/SK, endpoint, project ID, region, stream name, and the number of partitions.
- Run the producer application to send data.
- Create a consumer project and configure the user AK/SK, endpoint, project, region, stream name, partition ID, and startingSequenceNumber.
- Run the consumer application to retrieve data.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.