Skip to content

Conversation

@indranil-banerjee-aws
Copy link
Contributor

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

vaibhavjainv and others added 13 commits June 17, 2025 22:26
…oducerHandler.java file to take care of correctly passing environment variables and also not have the user type in VPC, Subnets and Security Group
* feat: Implement AVRO code generation and AvroKafkaHandler

- Add Maven AVRO plugin for automatic code generation from schema
- Create contact.avsc schema file with nullable fields and proper namespace
- Generate Contact class from AVRO schema (implements SpecificRecord)
- Add AvroKafkaHandler for proper AVRO deserialization with Lambda Powertools
- Update SAM template to use AvroKafkaHandler instead of HandlerMSK
- Remove manually created Contact POJO in favor of generated AVRO class

This enables proper AVRO message deserialization in the MSK Lambda consumer
using Lambda Powertools with auto-generated SpecificRecord classes.

* feat: Update producer to use AVRO-generated Contact class

- Add AVRO Maven plugin to producer pom.xml
- Remove manual Contact POJO from producer
- Generate Contact class from AVRO schema for producer
- Ensure producer and consumer use identical AVRO-generated Contact class
- Fix payload compatibility between producer and consumer

This ensures both functions use the same SpecificRecord implementation
for consistent AVRO serialization/deserialization.

* updates to producer

* Switched to simple handler

* added power tools log

* Logger updates
…d SchemaRegistryConfig in the Lambda MSK Event Source in the Consumer Lambda
@julianwood julianwood merged commit b5e9624 into aws-samples:main Jun 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants