Open scottgerring opened 12 months ago
somehow linked to #1479
Investigation Notes
Re-assessing the list of events supported in events v3 I see no events with user-defined payloads we are not already handling.
Modules that use ObjectMapper
directly in v2
:
captureCorrelationId
, 2/ PowertoolsResolver
uses ObjectMapper to check if something is JSON, and if it can be encoded without nested quotation into the logs JsonTransformer<T>
classInternal dependencies on the powertools-serialization module:
Open questions:
powertools-parameters / JsonTransformer
use the serialization ObjectMapper ? (probably yes?)powertools-cloudformation
use the serialization ObjectMapper? (probably not - CF serialization needs different from generic event model)powertools-logging
use the serialization ObjectMapper? (probably not - again, different serialization configuration needs)
Summary
We should use the V2 release as an opportunity to reflect upon the interfaces of our existing modules and identify areas of improvement. This work has been done as part of rewrites for some modules, and in isolation for others - check out #1283 for details.
We should also integrate the v4 of aws-lambda-java-events.
Why is this needed?
Which area does this relate to?
Serialization
Solution
v2
branch showing the high level impact of proposed changesv2
Acknowledgment