Skip to content

Feature request: Event parser envelope (for Kinesis) with sequence number #2850

@jarikujansuu

Description

@jarikujansuu

Use case

We want to handle Kinesis streaming events and use Pydantic models with event_parser, AND be able to do partial failures.

If use KinesisDataStreamEnvelope you just get list of model so you can't do partial failures.

Solution/User Experience

Envelope that would return for example List[Tuple[str, Optional[Model]]] which would allow similar easy handling of the actual model data but also make it possible to easily implement partial batch failures. Similar would probably be useful for other similar envelopes for services that support partial batch failures.

Alternative solutions

Make Powertools batch processing able to work with batches, not single items, in custom code side. And support for failing instantly when first processing fails instead of processing all regardless of errors.

Acknowledgment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions