Serializer
A serializer is a software component that converts structured in-memory data into a representation suitable for storage or transmission, typically bytes.
Kafka Streams in Action, Second Edition
The Kafka Serializer interface defines the API that a serializer implementation uses to convert data into bytes.
- How it is used
- Converts producer-side event objects into Kafka transport bytes while preserving a producer-consumer event contract.
- How deep it goes
- Defines serialize, explains client configuration, and demonstrates Schema Registry and custom Jackson implementations without producer-client internals.
- Examples
- Demonstrates Avro-generated Avenger objects, KafkaAvroSerializer configuration, custom Jackson serialization, and Avro unions for multiple event types.
- What you can do after
- Build it from scratch by implementing serialize, or apply it via Schema Registry serializer classes in Kafka producer configuration.
Read how Kafka Streams in Action, Second Edition explains serializer →
Django in Action
A serializer is a component that converts application objects or data into a transport representation and may reconstruct objects from that representation.
- How it is used
- Shapes Venue API responses and creation payloads for CRUD endpoints.
- How deep it goes
- Explains ModelSchema fields, resolver methods, nesting, aliases, and .dict()-based creation without detailing serializer internals.
- Examples
- Demonstrates VenueOut with slug and URL, RoomSchema nesting, and VenueIn in an authenticated POST endpoint.
- What you can do after
- Build it from scratch by defining input, output, computed, and nested schemas for Venue endpoints.
Pro ASP.NET Core 7, Tenth Edition
A serialization component that converts application values into JSON representations and can reconstruct values from JSON.
- How it is used
- Shapes ASP.NET Core JSON responses by selecting properties, suppressing nulls, and exposing serialization failures caused by object cycles.
- How deep it goes
- Explains projection, property attributes, global options, and cycle failures, but does not detail deserialization.
- Examples
- Uses Product and Supplier responses, null-property omission, anonymous projections, and an Include query that creates a circular reference.
- What you can do after
- Operate/configure it via model attributes or Program.cs options, and diagnose object-cycle errors in related-data responses.
Read how Pro ASP.NET Core 7, Tenth Edition explains serializer →
Kafka for Architects
A serializer is a component that converts structured data into a serialized representation such as bytes for transmission or storage.
- How it is used
- Configures how Kafka producers encode keys and values before transmission, while consumers select corresponding deserializers.
- How deep it goes
- Explains client configuration, matching, runtime failure, custom implementations, and placement within producer batching.
- Examples
- Uses integer keys with string values, primitive serializers, custom implementations, and Avro, JSON, or Protobuf converter formats.
- What you can do after
- Operate/configure Kafka clients with compatible key and value serializers and deserializers.
Related concepts
- bytesproduces · Bytes are an ordered sequence of values, each conventionally eight bits, used to represent binary data.
- use.latest.versionconfigured by · use.latest.version is a Confluent serialization and deserialization setting that makes a client use the latest schema version registered for a subject.
- schema registryuses · A schema registry is a service that stores, versions, and provides schemas for structured data, often validating compatibility between schema versions.
- Serdepart of · A Serde is a component that provides serialization and deserialization for a particular data type.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



