我读了大约AWS Kinesis
本.在下面的程序中,我将数据写入名为TestStream
的流中.我将这段代码运行了10次,在流中插入了10条记录.
var params = {
Data: 'More Sample data into the test stream ...',
PartitionKey: 'TestKey_1',
StreamName: 'TestStream'
};
kinesis.putRecord(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
所有记录都已成功插入.partition key
在这里到底意味着什么?它在后台做什么?我读了它的documentation页,但不明白它的意思.