Working with Parameter Serializers
Learn how to work with parameter serialization in AWS Lambda.
We'll cover the following...
How and why to use a serializer
We want to use a JSON serializer inside our .NET AWS Lambda project because it makes the development experience a lot more convenient. With a serializer, we can use any JSON-serializable data type as an input and output in our function handler. These include primitive data types, such as string
and int
, and Plain Old CLR Object (POCO) classes and records that are used purely for storing data.
Without a serializer, both the input and output of a function handler method have to be Stream
. We’d have to extract data from the stream, do something with it, and place the response on another stream. This is much more difficult to implement and makes ...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy