[フレーム]
BT

InfoQ Software Architects' Newsletter

A monthly overview of things you need to know as an architect or aspiring architect.

View an example

We protect your privacy.

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Unlock the full InfoQ experience

Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources.

Log In
or

Don't have an InfoQ account?

Register
  • Stay updated on topics and peers that matter to youReceive instant alerts on the latest insights and trends.
  • Quickly access free resources for continuous learningMinibooks, videos with transcripts, and training materials.
  • Save articles and read at anytimeBookmark articles to read whenever youre ready.

Topics

Choose your language

InfoQ Homepage News AWS Lambda Gains Native Avro and Protobuf Support for Kafka Events with Schema Registry Integration

AWS Lambda Gains Native Avro and Protobuf Support for Kafka Events with Schema Registry Integration

This item in japanese

Jun 27, 2025 2 min read

Write for InfoQ

Feed your curiosity. Help 550k+ global
senior developers
each month stay ahead.
Get in touch
Listen to this article - 0:00
Audio ready to play
0:00
0:00

AWS has announced native support for Apache Avro and Protocol Buffers (Protobuf) formatted events in AWS Lambda when leveraging Apache Kafka event source mapping (ESM) in Provisioned Mode. According to the company, this enhancement significantly simplifies the processing of efficient binary Kafka events by integrating directly with popular schema registries, including AWS Glue Schema Registry (GSR), Confluent Cloud Schema Registry (CCSR), and self-managed Confluent Schema Registry (SCSR).

Previously, organizations using Avro and Protobuf for their Kafka data, valued for their compact message sizes, fast serialization and deserialization, and robust schema evolution, had to write custom code within their Lambda functions to validate, deserialize, and filter these events. With this new capability, Lambda's ESM now natively handles these complexities, moving the schema registry integration logic from the application layer to the managed service. Rajesh Pandey, a principal engineer at AWS Lambda, emphasized this simplification in a LinkedIn post:

No more wiring up complex deserializers or juggling schema resolution inside your function. Just configure it, and Lambda takes care of the rest - schema fetching, validation, decoding - before your code even runs.

The built-in integration means that incoming JSON Schema, Avro, and Protobuf records are automatically validated against their registered schemas, which allows developers to consume and filter these more efficient binary formats while centralizing and consistently sharing data schemas. In addition, developers can now build their functions using Kafka's open-source ConsumerRecords interface, and, with the help of Powertools for AWS Lambda, directly access Avro or Protobuf-generated business objects without writing custom deserialization code.

Lambda functions can also receive clean, validated JSON data regardless of the original serialization format, further streamlining development. Event filtering rules can also be set up upstream to discard irrelevant events before function invocations, optimizing compute costs. Yan Cui, an AWS Serverless Hero, further highlighted this benefit on LinkedIn, stating:

But the big thing is that it allows you to filter events at the ESM level (instead of inside your code), so it should lead to some cost savings from fewer unnecessary Lambda invocations.

Configuration requires enabling Provisioned Mode for Kafka ESM and specifying schema registry settings (endpoint, authentication, and validation fields) via the AWS Management Console, AWS CLI, SDKs, or Infrastructure as Code (IaC) tools, such as AWS Serverless Application Management (ASM) or AWS Cloud Development Kit (CDK). As Julian Wood and Nihar Sheth wrote in an AWS Compute blog post:

This new capability works with both Amazon Managed Streaming for Apache Kafka (Amazon MSK), Confluent Cloud, and self-managed Kafka clusters. To get started, update your existing Kafka ESM to Provisioned Mode and add schema registry configuration, or create a new ESM in Provisioned Mode with schema registry integration enabled.

A diagram of a functionAI-generated content may be incorrect.

(Source: AWS Compute blog post)

The ESM handles schema evolution automatically by detecting updated schema IDs and fetching the latest definitions. For error handling, events that fail validation or deserialization can be routed to configured failure destinations, such as Amazon SQS, SNS, or S3, for debugging purposes.

The Apache Avro and Protocol Buffers (Protobuf) formatted events in AWS Lambda are generally available in all AWS Commercial Regions where AWS Lambda Kafka ESM is available, except Israel (Tel Aviv), Asia Pacific (Malaysia), and Canada West (Calgary).

About the Author

Steef-Jan Wiggers

Show moreShow less

Rate this Article

Adoption
Style

Related Content

The InfoQ Newsletter

A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example

We protect your privacy.

BT

AltStyle によって変換されたページ (->オリジナル) /