Create a Sink that accepts ProducerEvents, which get published to Kinesis.
Create a Sink that accepts ProducerEvents, which get published to Kinesis.
The sink itself sends all events to an KinesisProducerActor which is configured from the system configuration for given producer name. Every message send needs to be acknowledged by the underlying producer actor.
This sink signals back pressure, if more messages than configured in throttling conf are not acknowledged. If throttling is not configured, a default value (= 1000 messages) is applied.
The sink produces a materialized value Future[Done]
, which is finished if all messages of the stream are send to the producer actor _and_ got acknowledged.
The future fails, if the sending an event fails or upstream has failed the stream.
A minimal application conf file should look like this:
kinesis { application-name = "SampleService" producer-name { stream-name = "sample-stream" akka.max-outstanding-requests = 100 } }
See kinesis reference.conf for a list of all available config options.
the name of the producer in the system configuration.
the configuration object that holds the producer config (usually kinesis).
the AWS credentials provider to use to connect.
the actor system.
A sink that accepts ProducerEvents.
Create a Sink that accepts ProducerEvents, which get published to Kinesis.
Create a Sink that accepts ProducerEvents, which get published to Kinesis.
The sink itself sends all events to an KinesisProducerActor which is configured from the system configuration for given producer name. Every message send needs to be acknowledged by the underlying producer actor.
This sink signals back pressure, if more messages than configured in throttling conf are not acknowledged. If throttling is not configured, a default value (= 1000 messages) is applied.
The sink produces a materialized value Future[Done]
, which is finished if all messages of the stream are send to the producer actor _and_ got acknowledged.
The future fails, if the sending an event fails or upstream has failed the stream.
the configuration object that holds the producer config.
the name of the producer in the system configuration.
the AWS credentials provider to use to connect.
the actor system.
A sink that accepts ProducerEvents.
Create a Sink that accepts ProducerEvents, which get published to Kinesis.
Create a Sink that accepts ProducerEvents, which get published to Kinesis.
The sink itself sends all events to an KinesisProducerActor which is configured with given config object. Every message send needs to be acknowledged by the underlying producer actor.
This sink signals back pressure, if more messages than configured in throttling conf are not acknowledged. If throttling is not configured, a default value (= 1000 messages) is applied.
The sink produces a materialized value Future[Done]
, which is finished if all messages of the stream are send to the producer actor _and_ got acknowledged.
The future fails, if the sending an event fails or upstream has failed the stream.
the configuration to create KinesisProducerActor
the actor system.
A sink that accepts ProducerEvents.
Create a Sink that accepts ProducerEvents, which get published to Kinesis.
Create a Sink that accepts ProducerEvents, which get published to Kinesis.
The sink itself sends all events to an actor, which is created with the given Props. Every message send needs to be acknowledged by the underlying producer actor.
This sink signals back pressure, if more than maxOutstanding messages are not acknowledged.
The sink produces a materialized value Future[Done]
, which is finished if all messages of the stream are send to the producer actor _and_ got acknowledged.
The future fails, if the sending an event fails or upstream has failed the stream.
the props to create a producer actor. This is a function to work around #48.
the number of messages to send to the actor unacknowledged before back pressure is applied.
the actor system.
A sink that accepts ProducerEvents.
Create a source by using the actor system configuration, that provides KinesisEvents.
Create a source by using the actor system configuration, that provides KinesisEvents. Please note: every KinesisEvent has to be committed during the user flow! Uncommitted events will be retransmitted after a timeout.
A minimal application conf file should look like this:
kinesis { application-name = "SampleService" consumer-name { stream-name = "sample-stream" } }
See kinesis reference.conf for a list of all available config options.
the name of the consumer in the application.conf.
factory function to create ConsumerService from eventProcessor ActorRef.
the name of the sub-config for kinesis.
the actor system to use.
A source of KinesisEvent objects.
Create a source by using the actor system configuration, that provides KinesisEvents.
Create a source by using the actor system configuration, that provides KinesisEvents. Please note: every KinesisEvent has to be committed during the user flow! Uncommitted events will be retransmitted after a timeout.
A minimal application conf file should look like this:
kinesis { application-name = "SampleService" consumer-name { stream-name = "sample-stream" } }
See kinesis reference.conf for a list of all available config options.
the name of the consumer in the application.conf.
the actor system to use.
A source of KinesisEvent objects.
Create a source by using the actor system configuration, that provides KinesisEvents.
Create a source by using the actor system configuration, that provides KinesisEvents. Please note: every KinesisEvent has to be committed during the user flow! Uncommitted events will be retransmitted after a timeout.
A minimal application conf file should look like this:
kinesis { application-name = "SampleService" consumer-name { stream-name = "sample-stream" } }
See kinesis reference.conf for a list of all available config options.
the name of the consumer in the application.conf.
the name of the sub-config for kinesis.
the actor system to use.
A source of KinesisEvent objects.
Create a source, that provides KinesisEvents.
Create a source, that provides KinesisEvents. Please note: every KinesisEvent has to be committed during the user flow! Uncommitted events will be retransmitted after a timeout.
the configuration to connect to Kinesis.
the actor system.
A source of KinesisEvent objects.
Create a source, that provides KinesisEvents.
Create a source, that provides KinesisEvents. Please note: every KinesisEvent has to be committed during the user flow! Uncommitted events will be retransmitted after a timeout.
the configuration to connect to Kinesis.
factory function to create ConsumerService from eventProcessor ActorRef.
the actor system.
A source of KinesisEvent objects.
Main entry point for creating a Kinesis source and sink.