Skip to main content

Replaying AWS Kinesis Data Firehose

Background​

Amazon Data Firehose, formerly Kinesis Data Firehose, has an HTTPS API, so Speedscale records Firehose calls as ordinary HTTP calls and replays and mocks them like any other API. Firehose delivers the records it receives to destinations such as Amazon S3, Amazon Redshift, Amazon OpenSearch Service and Splunk.

For more information, see the Amazon Data Firehose documentation.

What is recorded​

  • A producer sends PutRecord or PutRecordBatch, with each record's data base64 encoded in the JSON request.

Your app only sends to Firehose; it does not read from it, so there is no consumer side to record.

Record it like any HTTPS dependency. In Kubernetes, the sidecar records the calls once it decrypts outbound TLS, and the eBPF collector reads them without TLS interception. Locally, run your app with proxymock record and set HTTPS_PROXY and the proxymock CA as the language reference shows for your runtime.

Mock and replay​

Your app's calls to the service are outbound, so a replay answers them from the recording, like any other API your app calls. A producer's PutRecord calls get their recorded responses, so it runs with no delivery stream behind it.

Write your own load driver​

To publish the recorded messages to the service yourself, with your own pacing, extract them from a snapshot and send them with a small producer. Write your own load driver has the extraction path and producer code in Go, Java, TypeScript and Python.

Loading search...